shish 10 ヶ月 前
コミット
bfa4bfce88
1 ファイル変更21 行追加0 行削除
  1. 21 0
      app-hd/controllers/ShopExtController.php

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

@@ -18,6 +18,27 @@ class ShopExtController extends BaseController
 
 
     public $guestAccess = [];
     public $guestAccess = [];
 
 
+    public function actionModifyExt()
+    {
+        $post = Yii::$app->request->post();
+        $arr = [];
+        if (isset($post['orderFlow'])) {
+            $arr['orderFlow'] = $post['orderFlow'];
+        }
+        if (isset($post['thirdSend'])) {
+            $arr['thirdSend'] = $post['thirdSend'];
+        }
+        if (isset($post['thirdSendFee'])) {
+            $arr['thirdSendFee'] = $post['thirdSendFee'];
+        }
+        if (empty($arr)) {
+            util::fail('没有需要修改');
+        }
+        $shopId = $this->shopId;
+        \bizHd\shop\classes\ShopExtClass::updateByCondition(['shopId' => $shopId], $arr);
+        util::complete('修改成功');
+    }
+
     public function actionMyInfo()
     public function actionMyInfo()
     {
     {
         $shopId = $this->shopId;
         $shopId = $this->shopId;