Browse Source

代码优化开发20211128_3

MSY 3 years ago
parent
commit
f19e4a244c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/jkcredit/invoice/credit/SimpleCORSFilter.java

+ 1 - 1
src/main/java/com/jkcredit/invoice/credit/SimpleCORSFilter.java

@@ -386,7 +386,7 @@ public class SimpleCORSFilter implements Filter {
             if(null != customer1 && ! appSecret.equals(customer1.getAppSecret())){
                 return ResponseCode.SIGN_ERROR;
             }
-            if (0 == new BigDecimal(customer1.getAccountBalance()).compareTo(new BigDecimal(0.0))) {
+            if (0 >= new BigDecimal(customer1.getAccountBalance()).compareTo(new BigDecimal(0.0))) {
                 return ResponseCode.BALANCE_QUERY_ERROR;
             }
             if(!apiMaps.containsKey(api)){