Przeglądaj źródła

客户相关设置

shish 1 rok temu
rodzic
commit
48ebb781f2
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      app-ghs/controllers/CustomController.php

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

@@ -37,6 +37,10 @@ class CustomController extends BaseController
 
         $post = Yii::$app->request->post();
         $shopId = $this->shopId;
+        $home = $post['home'] ?? 1;
+        if ($home == 0) {
+            $post['homeAmount'] = 0;
+        }
         ShopClass::updateById($shopId, $post);
 
         $showStock = $post['showStock'] ?? 0;
@@ -160,7 +164,7 @@ class CustomController extends BaseController
             }
             //小齐鲜花总店和出车,多处请搜索关键词 xq_clear_control
             if (in_array($this->shopId, [41467, 42946])) {
-                if (!in_array($this->adminId, [40144,42912,42023])) {
+                if (!in_array($this->adminId, [40144, 42912, 42023])) {
                     util::fail('您不能充值销单哦。');
                 }
             }