|
|
@@ -190,12 +190,14 @@ class CustomController extends BaseController
|
|
|
$custom = CustomClass::getById($customId, true);
|
|
|
CustomClass::valid($custom, $this->shopId);
|
|
|
$custom->black = $black;
|
|
|
+ $custom->save();
|
|
|
$ghsId = $custom->ghsId ?? 0;
|
|
|
$ghs = GhsClass::getById($ghsId, true);
|
|
|
if (empty($ghs)) {
|
|
|
util::fail('出错了');
|
|
|
}
|
|
|
$ghs->black = $black;
|
|
|
+ $ghs->save();
|
|
|
util::complete();
|
|
|
}
|
|
|
|