Parcourir la source

修改收款码问题

shish il y a 11 mois
Parent
commit
09a3eb6a2d
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      app-hd/controllers/ShopExtController.php

+ 13 - 0
app-hd/controllers/ShopExtController.php

@@ -294,4 +294,17 @@ class ShopExtController extends BaseController
         util::success(['ext' => $ext]);
     }
 
+    public function actionModifyGatherRepeat()
+    {
+        $staff = $this->shopAdmin;
+        if ($staff->founder != 2) {
+            util::fail('超超管才能修改');
+        }
+        $get = Yii::$app->request->get();
+        $gatherRepeat = $get['gatherRepeat'] ?? 0;
+        $shopId = $this->shopId;
+        ShopExtClass::updateByCondition(['shopId' => $shopId], ['gatherRepeat' => $gatherRepeat]);
+        util::complete('修改成功');
+    }
+
 }