文件1:app\services\message\NoticeService.php
方法:setEvent
public function setEvent(string $event)
{
if ($this->event != $event) {
$this->notceinfo = CacheService::redisHandler('NOTCEINFO')->remember('NOTCE_' . $event, function () use ($event) {
/** @var SystemNotificationServices $services */
$services = app()->make(SystemNotificationServices::class);
$notceinfo = $services->getOneNotce(['mark' => $event]);
return $notceinfo->toArray();
});
$this->event = $event;
}
return $this;
}
替换这个方法,替换后如下效果
文件2:app\jobs\order\SpliteStoreOrderJob.php
方法:doJob
$storeId = 0;
替换的效果如下:
如不动代码,也可以对应目录替换这两个文件
这两个文件的压缩包
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}