瀏覽代碼

修改供货商

shish 4 年之前
父節點
當前提交
978bfd225a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app-ghs/controllers/CustomController.php

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

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