|
|
@@ -48,6 +48,7 @@ class NoticeLogic extends BaseLogic
|
|
|
public static function noticeByScene($params)
|
|
|
{
|
|
|
try {
|
|
|
+ outFileLog($params,'noticeLogic','params');
|
|
|
$noticeSetting = NoticeSetting::where('scene_id', $params['scene_id'])->findOrEmpty()->toArray();
|
|
|
if(empty($noticeSetting)) {
|
|
|
throw new \Exception('找不到对应场景的配置');
|
|
|
@@ -57,6 +58,7 @@ class NoticeLogic extends BaseLogic
|
|
|
$res = false;
|
|
|
self::setError('通知功能未开启');
|
|
|
// 系统通知
|
|
|
+ outFileLog($noticeSetting,'noticeLogic','$noticeSetting');
|
|
|
if(isset($noticeSetting['system_notice']['status']) && $noticeSetting['system_notice']['status'] == YesNoEnum::YES) {
|
|
|
$content = self::contentFormat($noticeSetting['system_notice']['content'], $params);
|
|
|
$notice = self::addNotice($params, $noticeSetting, NoticeEnum::SYSTEM, $content);
|