|
|
@@ -196,7 +196,7 @@ class ProductController extends BaseController
|
|
|
$ghs = GhsClass::getById($ghsId, true);
|
|
|
GhsClass::valid($ghs, $this->shopId);
|
|
|
$shopId = $ghs->shopId ?? 0;
|
|
|
- $product = ProductClass::getItemInfo($id);
|
|
|
+ $product = ProductClass::getItemInfo($id, $ghs);
|
|
|
if (isset($product['shopId']) == false || $product['shopId'] != $shopId) {
|
|
|
util::fail('没有权限访问');
|
|
|
}
|