@@ -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]);