shish hai 10 meses
pai
achega
bfa4bfce88
Modificáronse 1 ficheiros con 21 adicións e 0 borrados
  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 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()
     {
         $shopId = $this->shopId;