shish 4 tahun lalu
induk
melakukan
518ad4e3a6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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();
         $get = Yii::$app->request->get();
         $id = $get['id'] ?? 0;
         $id = $get['id'] ?? 0;
         $info = PurchaseService::getInfo($id, true, true);
         $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('没有权限访问');
             util::fail('没有权限访问');
         }
         }