yingzi 1 year ago
parent
commit
cf277a8cc5
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Model/Merchant/MMerchantSettlement.Class.php

+ 1 - 3
Model/Merchant/MMerchantSettlement.Class.php

@@ -109,9 +109,7 @@ class MMerchantSettlement
                 $this->objDMerchantSettlement->rollBack();
                 return ResultWrapper::fail($this->objDMerchantApply->error(), ErrorCode::$dberror);
             }
-            var_dump("xxxx");
-            var_dump($merchant);
-            $afterMoney = $merchant['balance'];
+            $afterMoney = empty($merchant['balance'])?0:$merchant['balance'];
             foreach($orderData as $orderId => $value){
                 $afterMoney = bcadd($afterMoney, $value['goodsMoney'], 2);
                 //组装流水数据