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
f49a1289
Commit
f49a1289
authored
Oct 12, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号
parent
ea33be02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountController.java
...in/java/com/wwdz/ch/wx/api/OfficialAccountController.java
+6
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountController.java
View file @
f49a1289
...
@@ -88,8 +88,9 @@ public class OfficialAccountController {
...
@@ -88,8 +88,9 @@ public class OfficialAccountController {
@RequestParam
(
required
=
false
,
name
=
"timestamp"
)
String
timestamp
,
@RequestParam
(
required
=
false
,
name
=
"timestamp"
)
String
timestamp
,
@RequestParam
(
required
=
false
,
name
=
"nonce"
)
String
nonce
,
@RequestParam
(
required
=
false
,
name
=
"nonce"
)
String
nonce
,
@RequestParam
(
required
=
false
,
name
=
"echostr"
)
String
echostr
,
@RequestParam
(
required
=
false
,
name
=
"echostr"
)
String
echostr
,
@RequestBody
(
required
=
false
)
String
xmlInfo
)
{
@RequestBody
(
required
=
false
)
String
xmlInfo
,
logger
.
info
(
"222222222222222"
);
HttpServletResponse
response
)
throws
IOException
{
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"
);
...
@@ -104,6 +105,9 @@ public class OfficialAccountController {
...
@@ -104,6 +105,9 @@ public class OfficialAccountController {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"视频号回调推送error : {}"
,
e
);
logger
.
error
(
"视频号回调推送error : {}"
,
e
);
}
}
response
.
setContentType
(
"text/plain"
);
// 设置响应的内容类型为HTML
response
.
setCharacterEncoding
(
"UTF-8"
);
// 设置响应的字符编码为UTF-8
response
.
getWriter
().
write
(
echostr
);
return
echostr
;
return
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