Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
b53ca1c5
Commit
b53ca1c5
authored
Oct 12, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号
parent
f49a1289
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountController.java
...in/java/com/wwdz/ch/wx/api/OfficialAccountController.java
+2
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountController.java
View file @
b53ca1c5
...
@@ -91,7 +91,7 @@ public class OfficialAccountController {
...
@@ -91,7 +91,7 @@ public class OfficialAccountController {
@RequestBody
(
required
=
false
)
String
xmlInfo
,
@RequestBody
(
required
=
false
)
String
xmlInfo
,
HttpServletResponse
response
)
throws
IOException
{
HttpServletResponse
response
)
throws
IOException
{
logger
.
info
(
"222222222222222 :{}"
,
echostr
);
logger
.
info
(
"222222222222222 :{}"
,
echostr
);
try
{
/*
try {
logger.info("微信通知回调接口原文:{}", xmlInfo);
logger.info("微信通知回调接口原文:{}", xmlInfo);
List<Map<String, String>> list = XmlUtils.fromXml(xmlInfo, "xml");
List<Map<String, String>> list = XmlUtils.fromXml(xmlInfo, "xml");
Map<String, String> contentMap = list.get(0);
Map<String, String> contentMap = list.get(0);
...
@@ -104,7 +104,7 @@ public class OfficialAccountController {
...
@@ -104,7 +104,7 @@ public class OfficialAccountController {
}
}
} catch (Exception e) {
} catch (Exception e) {
logger.error("视频号回调推送error : {}", e);
logger.error("视频号回调推送error : {}", e);
}
}
*/
response
.
setContentType
(
"text/plain"
);
// 设置响应的内容类型为HTML
response
.
setContentType
(
"text/plain"
);
// 设置响应的内容类型为HTML
response
.
setCharacterEncoding
(
"UTF-8"
);
// 设置响应的字符编码为UTF-8
response
.
setCharacterEncoding
(
"UTF-8"
);
// 设置响应的字符编码为UTF-8
response
.
getWriter
().
write
(
echostr
);
response
.
getWriter
().
write
(
echostr
);
...
...
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