yingzi 1 rok temu
rodzic
commit
b3c89b3b1c

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

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