shish 3 лет назад
Родитель
Сommit
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]);
     }