|
|
@@ -103,7 +103,7 @@ class NoticeLogic extends BaseLogic
|
|
|
// 拼装更新数据
|
|
|
$updateData = [];
|
|
|
foreach ($params['template'] as $item) {
|
|
|
- $item['type']??0 && $updateData[$item['type'] . '_notice'] = json_encode($item, JSON_UNESCAPED_UNICODE);
|
|
|
+ if($item['type']??0) $updateData[$item['type'] . '_notice'] = json_encode($item, JSON_UNESCAPED_UNICODE);
|
|
|
}
|
|
|
// 更新通知设置
|
|
|
NoticeSetting::where('id', $params['id'])->update($updateData);
|