shish il y a 2 ans
Parent
commit
33e33ec48e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app-ghs/controllers/CustomController.php

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

@@ -35,7 +35,7 @@ class CustomController extends BaseController
         if (empty($custom)) {
             util::fail('没有找到客户');
         }
-        if ($custom->mainId != $this->mainId) {
+        if ($custom->ownMainId != $this->mainId) {
             util::fail('不是你的客户哈');
         }
         $ghsId = $custom->ghsId ?? 0;