shish 1 rok temu
rodzic
commit
0e1dd6aef8
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      console/controllers/LsCustomController.php

+ 7 - 1
console/controllers/LsCustomController.php

@@ -71,8 +71,14 @@ class LsCustomController extends Controller
                                 }
                                 $newBalance = bcsub($balance, $debtAmount, 2);
                                 $c->balance = $newBalance;
+                                $c->debtAmount = 0;
+                                $h->isDebt =0;
+                                $h->debtNum = 0;
                                 $c->save();
                                 $h->balance = $newBalance;
+                                $h->debtAmount = 0;
+                                $h->debt =1;
+                                $h->debtNum = 0;
                                 $h->save();
 
                                 $hdName = $h->name ?? '';
@@ -103,7 +109,7 @@ class LsCustomController extends Controller
 
 
                             }else{
-                                echo "shopId:".$shopId." | ".$customName . " customId:" . $customId . " hdId:" . $hdId . " 没有欠款 ok ok \n";
+                                //echo "shopId:".$shopId." | ".$customName . " customId:" . $customId . " hdId:" . $hdId . " 没有欠款 ok ok \n";
                             }
                         }
                     }