shish преди 1 година
родител
ревизия
eec07765fa
променени са 3 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 2 2
      app-mall/controllers/HdController.php
  2. 1 1
      app-mall/controllers/OrderController.php
  3. 1 0
      app-mall/controllers/SettleController.php

+ 2 - 2
app-mall/controllers/HdController.php

@@ -20,8 +20,8 @@ class HdController extends BaseController
         if (empty($hd)) {
             util::fail('没有花店信息');
         }
-        if ($hd['shopId'] != $this->shopId) {
-            util::fail('花店信息缺失');
+        if ($hd['userId'] != $this->userId) {
+            util::fail('不是你的店');
         }
         $shortAvatar = !empty($val['avatar']) ? $val['avatar'] : 'hhb_small.png';
         $smallAvatar = imgUtil::groupImg($shortAvatar) . "?x-oss-process=image/resize,m_fill,h_130,w_130";

+ 1 - 1
app-mall/controllers/OrderController.php

@@ -40,7 +40,7 @@ class OrderController extends BaseController
             if (empty($hd)) {
                 util::fail('无效的花店');
             }
-            if ($hd->shopId != $this->shopId) {
+            if ($hd->userId != $this->userId) {
                 util::fail('不是你的店铺');
             }
             $where['hdId'] = $id;

+ 1 - 0
app-mall/controllers/SettleController.php

@@ -13,6 +13,7 @@ class SettleController extends BaseController
     //创建新的结账单 ssh 202
     public function actionCreateOrder()
     {
+        $post = Yii::$app->request->post();
         util::complete('操作成功');
     }