|
|
@@ -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('修改成功');
|