@@ -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)) {