shish před 2 roky
rodič
revize
33e33ec48e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)) {
         if (empty($custom)) {
             util::fail('没有找到客户');
             util::fail('没有找到客户');
         }
         }
-        if ($custom->mainId != $this->mainId) {
+        if ($custom->ownMainId != $this->mainId) {
             util::fail('不是你的客户哈');
             util::fail('不是你的客户哈');
         }
         }
         $ghsId = $custom->ghsId ?? 0;
         $ghsId = $custom->ghsId ?? 0;