shish 1 год назад
Родитель
Сommit
8a2c7dfb58
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      app-ghs/controllers/CustomController.php

+ 6 - 0
app-ghs/controllers/CustomController.php

@@ -29,6 +29,12 @@ class CustomController extends BaseController
     //客户设置相关 ssh 20250310
     public function actionSetChange()
     {
+
+        $staff = $this->shopAdmin;
+        if ($staff->founder != 2 && $staff->mobile != 15280215347) {
+            util::fail('老板才能修改');
+        }
+
         $post = Yii::$app->request->post();
         $shopId = $this->shopId;
         ShopClass::updateById($shopId, $post);