Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
ms
soss
Commits
1f802778
Commit
1f802778
authored
Sep 13, 2023
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch订阅消息发送失败
parent
7887fd98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
soss-system/src/main/java/com/soss/system/weixin/util/SendMessageUtils.java
+4
-4
No files found.
soss-system/src/main/java/com/soss/system/weixin/util/SendMessageUtils.java
View file @
1f802778
...
@@ -13,7 +13,6 @@ import me.chanjar.weixin.common.error.WxErrorException;
...
@@ -13,7 +13,6 @@ import me.chanjar.weixin.common.error.WxErrorException;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -130,9 +129,10 @@ public class SendMessageUtils {
...
@@ -130,9 +129,10 @@ public class SendMessageUtils {
try
{
try
{
wxMaService
.
getMsgService
().
sendSubscribeMsg
(
msg
);
wxMaService
.
getMsgService
().
sendSubscribeMsg
(
msg
);
}
catch
(
WxErrorException
e
)
{
}
catch
(
WxErrorException
e
)
{
log
.
error
(
"订阅消息发送失败,用户openId:{}, 错误码:{},错误信息:{}"
,
log
.
error
(
"订阅消息发送失败,用户openId:{}, 错误码:{},错误信息:{}"
,
order
.
getUserId
(),
e
.
getError
().
getErrorCode
(),
e
.
getError
().
getErrorMsg
());
order
.
getUserId
(),
e
.
getError
().
getErrorCode
(),
e
.
getError
().
getErrorMsg
());
}
catch
(
Exception
e
)
{
//发送失败就发送短信
log
.
error
(
"订阅消息发送失败"
,
e
);
e
.
printStackTrace
();
}
}
}
}
}
}
Write
Preview
Markdown
is supported
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