shish пре 4 година
родитељ
комит
77cd9d0070
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      app-ghs/controllers/ShopController.php

+ 4 - 1
app-ghs/controllers/ShopController.php

@@ -301,7 +301,10 @@ class ShopController extends BaseController
         if (empty($shopId)) {
             $shopId = $this->shopId;
         }
-        $shop = ShopClass::getShopInfo($shopId);
+        $shop = ShopClass::getById($shopId, true);
+        if ($shop->mainId != $this->mainId) {
+            util::fail('没有权限查看');
+        }
         util::success(['info' => $shop]);
     }