消息推送增加邮箱&&增加终版保存功能

This commit is contained in:
mzl
2025-09-15 15:01:19 +08:00
parent 3208fbd501
commit f152529364
14 changed files with 209 additions and 24 deletions
+28
View File
@@ -359,4 +359,32 @@ if (!function_exists('generateStockNo')) {
return $prefix . $date . $paddedSerial;
}
}
/**
* 发送通知
*
* @param string $title
* @param string $content
* @param string $url
* @param string $type
* @return void
*/
if (!function_exists('noticePush')) {
function noticePush(array $notice = [])
{
/*
消息字段:
'sender_id' //发送人
'sender_type' //发送人类型
'title' //标题
'content' //内容
'scene' //场景
'recipient' //接收人
'push_method' //推送方式
// 如果需要同时 邮箱推送 增加推送邮箱字段
'email' //邮箱
*/
\Webman\RedisQueue\Redis::send('notice', $notice);
}
}