shish 1 ano atrás
pai
commit
39037902e2

+ 1 - 1
app-ghs/controllers/CustomController.php

@@ -536,7 +536,7 @@ class CustomController extends BaseController
             //客户欠款额度设置
             $debt = isset($post['debt']) && $post['debt'] == CustomClass::IS_DEBT_YES ? CustomClass::IS_DEBT_YES : CustomClass::IS_DEBT_NO;
             $customId = $custom['id'] ?? 0;
-            $debtLimit = isset($post['debtLimit']) && is_numeric($post['debtLimit']) ? $post['debtLimit'] : 5000;
+            $debtLimit = isset($post['debtLimit']) && is_numeric($post['debtLimit']) ? $post['debtLimit'] : 0;
             CustomClass::updateById($customId, ['debtLimit' => $debtLimit, 'debt' => $debt]);
 
             $transaction->commit();

+ 2 - 2
biz/ghs/classes/GhsClass.php

@@ -60,7 +60,7 @@ class GhsClass extends BaseClass
         $live = isset($ghsShop['live']) ? $ghsShop['live'] : 1;
         $isHd = $ghsShop['isHd'] ?? 1;
         $showStock = $ghsShop['showStock'] ?? 0;
-        $allowDebtAmount = $ghsShop['allowDebtAmount'] ?? 5000;
+        $allowDebtAmount = $ghsShop['allowDebtAmount'] ?? 0;
 
         if ($isHd == 1) {
             $giveLevel = 1;
@@ -130,7 +130,7 @@ class GhsClass extends BaseClass
             ShopClass::updateById($hdShopId, ['hasManyGhs' => 1]);
         }
 
-        $debtLimit = 5000;//欠款额度
+        $debtLimit = 0;//欠款额度
         $customData = [
             'sjId' => $hdSjId,
             'ghsId' => $ghsId,