yingzi 1 年之前
父節點
當前提交
b3c89b3b1c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Util/Common/AgentTools.Class.php
  2. 1 1
      Util/Common/PartnerTools.Class.php

+ 1 - 1
Util/Common/AgentTools.Class.php

@@ -1069,7 +1069,7 @@ class AgentTools{
                 'withdraw'   => bcadd($agentData["withdraw"], $save["money"],2),//已提现金额
                 'updateTime' => $nowTime,
             ];
-            if($update["balance"]<=0){
+            if($update["balance"]<0){
                 $this->dbNewAgent->rollBack();
                 return ["code"=>-1,"msg"=>"数据提交失败002"];
             }

+ 1 - 1
Util/Common/PartnerTools.Class.php

@@ -856,7 +856,7 @@ class PartnerTools{
                 'withdraw'   => bcadd($partnerData["withdraw"], $save["money"],2),//已提现金额
                 'updateTime' => $nowTime,
             ];
-            if($update["balance"]<=0){
+            if($update["balance"]<0){
                 $this->dbNewCommissionPartner->rollBack();
                 return ["code"=>-1,"msg"=>"数据提交失败002"];
             }