|
|
@@ -382,11 +382,11 @@ class ProductController extends BaseController
|
|
|
$ghsId = Yii::$app->request->get('ghsId', 0);
|
|
|
$ghs = GhsClass::getById($ghsId, true);
|
|
|
GhsClass::valid($ghs, $this->shopId);
|
|
|
- $shopId = $ghs->shopId ?? 0;
|
|
|
+ $mainId = $ghs->mainId ?? 0;
|
|
|
$product = ProductClass::getItemInfo($id, $ghs);
|
|
|
- if (isset($product['shopId']) == false || $product['shopId'] != $shopId) {
|
|
|
+ if (isset($product['mainId']) == false || $product['mainId'] != $mainId) {
|
|
|
Yii::info(json_encode($product));
|
|
|
- Yii::info('shopId: ' . $shopId);
|
|
|
+ Yii::info('mainId: ' . $mainId);
|
|
|
util::fail('没有权限访问');
|
|
|
}
|
|
|
$original = ProductClass::getById($id);
|