|
|
@@ -178,7 +178,7 @@ class PurchaseController extends BaseController
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
|
$info = PurchaseService::getInfo($id, true, true);
|
|
|
- if (isset($info['shopId']) == false || $info['shopId'] != $this->shopId) {
|
|
|
+ if (isset($info['mainId']) == false || $info['mainId'] != $this->mainId) {
|
|
|
util::fail('没有权限访问');
|
|
|
}
|
|
|
|