Explorar el Código

额度入库判断未使用额度是否为负数,是就不继续执行程序

lcl hace 1 año
padre
commit
88eeaa9db6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Util/Utils.cs

+ 1 - 0
Util/Utils.cs

@@ -257,6 +257,7 @@ namespace MySystem
                     }
                 }
             }
+            if(account.TotalAmt < 0) return;
             function.WriteLog("1", "运营中心额度变更测试");
             decimal AfterAmount = account.ValidForGetAmount + account.TotalAmt + account.ValidAmount;
             OpModels.AmountRecordNew add = db.AmountRecordNew.Add(new OpModels.AmountRecordNew()