shish 4 yıl önce
ebeveyn
işleme
518ad4e3a6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -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('没有权限访问');
         }