shish 2 سال پیش
والد
کامیت
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)) {
         if (empty($ghs)) {
             util::fail('没有找到供货商');
             util::fail('没有找到供货商');
         }
         }
-        if ($ghs->mainId != $this->mainId) {
+        if ($ghs->ownMainId != $this->mainId) {
             util::fail('不是你的供货商');
             util::fail('不是你的供货商');
         }
         }
         if (empty($name)) {
         if (empty($name)) {