|
|
@@ -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('修改成功');
|
|
|
+ }
|
|
|
+
|
|
|
}
|