Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
PESCMS Ticket
Commits
4975bee1
Commit
4975bee1
authored
4 years ago
by
luoboss
Browse files
Options
Download
Email Patches
Plain Diff
修复小程序订阅消息异常的问题。
parent
133366d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Model/MailTemplate.php
+4
-4
Model/MailTemplate.php
with
4 additions
and
4 deletions
+4
-4
Model/MailTemplate.php
+
4
-
4
View file @
4975bee1
...
...
@@ -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'
])
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help