Commit 4975bee1 authored by luoboss's avatar luoboss
Browse files

修复小程序订阅消息异常的问题。

parent 133366d2
Showing with 4 additions and 4 deletions
+4 -4
......@@ -96,7 +96,7 @@ class MailTemplate extends \Core\Model\Model {
'1' => $title,
'2' => $title,
'3' => $template['mail_template_weixin_template_id'],
'4' => $template['mail_template_wxapp_template_id'],
'6' => $template['mail_template_wxapp_template_id'],
];
return $data;
}
......@@ -123,7 +123,7 @@ class MailTemplate extends \Core\Model\Model {
'1' => 'mail_template_content',
'2' => 'mail_template_sms',
'3' => 'mail_template_weixin_template',
'4' => 'mail_template_wxapp_template',
'6' => 'mail_template_wxapp_template',
] as $key => $item){
if($key == 1){
......@@ -131,7 +131,7 @@ class MailTemplate extends \Core\Model\Model {
}
//短信和微信需要将超链接的HTML代码移除
if(in_array($key, [2, 3, 4])){
if(in_array($key, [2, 3, 6])){
$param['view'] = strip_tags(self::getViewLink($number, $key));
}
......@@ -145,7 +145,7 @@ class MailTemplate extends \Core\Model\Model {
}
//微信通知需要先将内容格式化,补充通知的超链接。
if(in_array($key, ['3', '4'])){
if(in_array($key, ['3', '6'])){
$newFormat = [
'data' => json_decode(htmlspecialchars_decode($template[$item]), true),
'link' => strip_tags($param['view'])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment