消息推送增加邮箱&&增加终版保存功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user