Ver código fonte

美团制作单属性状态更新

shish 4 anos atrás
pai
commit
2474d2448a
1 arquivos alterados com 14 adições e 0 exclusões
  1. 14 0
      app-hd/controllers/ShopExtController.php

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

@@ -16,6 +16,20 @@ class ShopExtController extends BaseController
 
     public $guestAccess = [];
 
+    //美团制作单属性状态更新 ssh 20220710
+    public function actionUpdateMtAlone()
+    {
+        $alone = Yii::$app->request->get('alone', 0);
+        $shopId = $this->shopId;
+        $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
+        if (empty($ext)) {
+            util::fail('没有找到门店');
+        }
+        $ext->mtAlone = $alone;
+        $ext->save();
+        util::complete();
+    }
+
     //取出供应商的小菊颜色 ssh 20210907
     public function actionGetGhsXj()
     {