shish 2 лет назад
Родитель
Сommit
a33bad699e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/GhsController.php

+ 1 - 1
app-ghs/controllers/GhsController.php

@@ -26,7 +26,7 @@ class GhsController extends BaseController
         if (empty($ghs)) {
             util::fail('没有找到供货商');
         }
-        if ($ghs->mainId != $this->mainId) {
+        if ($ghs->ownMainId != $this->mainId) {
             util::fail('不是你的供货商');
         }
         if (empty($name)) {