浏览代码

修改续期要求

shish 2 年之前
父节点
当前提交
15fc1e99e9
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      app-pt/controllers/ShopController.php

+ 16 - 0
app-pt/controllers/ShopController.php

@@ -15,6 +15,22 @@ use Yii;
 class ShopController extends BaseController
 {
 
+    //续期要求变更 ssh 20240427
+    public function actionNeedRenewChange()
+    {
+        $get = Yii::$app->request->get();
+        $shopId = $get['id'] ?? 0;
+        $shop = ShopClass::getById($shopId, true);
+        if (empty($shop)) {
+            util::fail('没有找到门店');
+        }
+        $old = $shop->needRenew;
+        $new = $old == 0 ? 1 : 0;
+        $shop->needRenew = $new;
+        $shop->save();
+        util::complete('修改成功');
+    }
+
     //添加员工 ssh 2023429
     public function actionAddStaff()
     {