shish 4 жил өмнө
parent
commit
978bfd225a

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

@@ -269,7 +269,9 @@ class CustomController extends BaseController
         $custom->save();
         $custom->save();
         $ghsId = $custom->ghsId ?? 0;
         $ghsId = $custom->ghsId ?? 0;
         $ghs = GhsClass::getById($ghsId, true);
         $ghs = GhsClass::getById($ghsId, true);
-        GhsClass::valid($ghs, $this->shopId);
+        if (empty($ghs)) {
+            util::fail('出错了');
+        }
         $ghs->giveLevel = $level;
         $ghs->giveLevel = $level;
         $ghs->save();
         $ghs->save();
         util::complete('修改成功');
         util::complete('修改成功');