1、发送站内消息
\Phpcmf\Service::L('Notice')->send_notice_user("任务名称", $uid, [
'type' => '站内消息类型',
'url' => '跳转url',
'mark' => '标记代码'
], [
'notice' => [
'tpl_content' => '通知内容',
],
]);2、短信通知
\Phpcmf\Service::L('Notice')->send_notice_user("任务名称", $uid, [], [
'mobile' => [
'tpl_content' => '通知内容',
],
]);3、邮件通知
\Phpcmf\Service::L('Notice')->send_notice_user("任务名称", $uid, [], [
'email' => [
'tpl_content' => '<title>邮件标题</title>邮件内容',
],
]);4、微信模板消息
\Phpcmf\Service::L('Notice')->send_notice_user("任务名称", $uid, [], [
'weixin' => [
'tpl_content' => [
'id' => '模板消息id',
'param' => [
// 模板消息参数数组
],
'url' => '模板消息id',
],
],
]);
上一篇:模板方式-发送通知提醒方法
下一篇:没有了
有站啦CMS®万能建站系统基于 CodeIgniter4 高性能的开发框架,支持接入Laravel、ThinkPHP三种内核可选,基于MIT开源许可协议,免费且不限制商业使用。 提供PC + 手机 + 微信 + 小程序 + APP API + 多终端一体化网站技术解决方案。