Browse Source

欠款设置

shish 7 months ago
parent
commit
4c5f720e5a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app-hd/controllers/PurchaseController.php

+ 3 - 3
app-hd/controllers/PurchaseController.php

@@ -276,11 +276,11 @@ class PurchaseController extends BaseController
                 if ($debtAmount > $debtLimit && $debtLimit > 0) {
                     if (getenv('YII_ENV') == 'production') {
                         //福清辉煌鲜花
-                        $myMainId = 45984;
+                        $myMainId = [45984, 50];
                     } else {
-                        $myMainId = 644;
+                        $myMainId = [644];
                     }
-                    if ($ghsInfo['mainId'] == $myMainId) {
+                    if (in_array($ghsInfo['mainId'], $myMainId)) {
                         util::fail('请先结清欠款再下单');
                     }
                 }