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
1c61d217
Commit
1c61d217
authored
Jan 22, 2025
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安全识别4
parent
f534bbdf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/QdAppletCallbackController.java
...n/java/com/wwdz/ch/wx/api/QdAppletCallbackController.java
+6
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInServiceImpl.java
.../com/wwdz/ch/wx/impl/qiandao/QdUserSignInServiceImpl.java
+0
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/QdAppletCallbackController.java
View file @
1c61d217
...
@@ -93,8 +93,12 @@ public class QdAppletCallbackController {
...
@@ -93,8 +93,12 @@ public class QdAppletCallbackController {
while
((
length
=
input
.
read
(
by
))
!=
-
1
)
{
while
((
length
=
input
.
read
(
by
))
!=
-
1
)
{
output
.
write
(
by
,
0
,
length
);
output
.
write
(
by
,
0
,
length
);
}
}
String
noticeStr
=
new
String
(
output
.
toByteArray
(),
"UTF-8"
);
String
jsonInfo
=
new
String
(
output
.
toByteArray
(),
"UTF-8"
);
logger
.
info
(
"微信内容安全审核异步通知原文:{}"
,
noticeStr
);
logger
.
info
(
"微信内容安全审核异步通知原文:{}"
,
jsonInfo
);
WXBizMsgCrypt
wxBizMsgCrypt
=
new
WXBizMsgCrypt
(
"aabbcceeffqqtt"
,
"lkPUPk84L0EfqdUjTepT7p9TFWVxcfln3chgr8ywSV6"
,
APPID
);
String
noticeStr
=
wxBizMsgCrypt
.
decryptJsonMsg
(
signature
,
timestamp
,
nonce
,
jsonInfo
);
logger
.
info
(
"微信公众号通知回调接口解密后内容:{}"
,
noticeStr
);
String
result
=
JsonUtils
.
getValueByPath
(
noticeStr
,
"result/suggest"
);
String
result
=
JsonUtils
.
getValueByPath
(
noticeStr
,
"result/suggest"
);
String
traceId
=
JsonUtils
.
getValueByPath
(
noticeStr
,
"trace_id"
);
String
traceId
=
JsonUtils
.
getValueByPath
(
noticeStr
,
"trace_id"
);
WxCheckRecord
wxCheckRecord
=
wxCheckRecordDao
.
findByTraceId
(
traceId
);
WxCheckRecord
wxCheckRecord
=
wxCheckRecordDao
.
findByTraceId
(
traceId
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
1c61d217
...
@@ -41,7 +41,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -41,7 +41,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
// 放行路径
// 放行路径
.
excludePathPatterns
(
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/wx/qdUser/login"
.
excludePathPatterns
(
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/wx/qdUser/login"
,
"/wx/user/loginByWx"
,
"/wx/user/finishLogin"
,
"/wx/user/loginByMobile"
,
"/wx/user/loginRegCaptcha"
,
"/wx/user/updateRegCaptcha"
,
"/wx/user/login"
,
"/wx/user/fillCode"
,
,
"/wx/user/loginByWx"
,
"/wx/user/finishLogin"
,
"/wx/user/loginByMobile"
,
"/wx/user/loginRegCaptcha"
,
"/wx/user/updateRegCaptcha"
,
"/wx/user/login"
,
"/wx/user/fillCode"
,
"/officialAccountCallback/**"
,
"/wxPayCallback/**"
,
"/QdOfficialAccountCallback/**"
,
"/officialAccountCallback/**"
,
"/wxPayCallback/**"
,
"/QdOfficialAccountCallback/**"
,
"/QdAppletCallback/**"
,
"/imCallback/**"
,
"/wx/category/**"
,
"/imCallback/**"
,
"/wx/category/**"
,
"/wx/consignSale/**"
,
"/wx/item/**"
,
"/wx/consignSale/**"
,
"/wx/item/**"
,
"/wx/returnOrder/**"
,
"/wx/distributionOrder/confirmSigned"
,
"/wx/distributionOrder/delivery"
,
"/wx/distributionOrder/cancel"
,
"/wx/returnOrder/**"
,
"/wx/distributionOrder/confirmSigned"
,
"/wx/distributionOrder/delivery"
,
"/wx/distributionOrder/cancel"
,
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInServiceImpl.java
View file @
1c61d217
...
@@ -145,7 +145,6 @@ public class QdUserSignInServiceImpl implements QdUserSignInService {
...
@@ -145,7 +145,6 @@ public class QdUserSignInServiceImpl implements QdUserSignInService {
//查询用户openid
//查询用户openid
QdUser
user
=
qdUserDao
.
queryById
(
dto
.
getUserId
());
QdUser
user
=
qdUserDao
.
queryById
(
dto
.
getUserId
());
wxCheckMediaRequestDto
.
setWxOpenId
(
user
.
getWxOpenid
());
wxCheckMediaRequestDto
.
setWxOpenId
(
user
.
getWxOpenid
());
if
(
StringUtils
.
hasLength
(
dto
.
getContent
()))
{
if
(
StringUtils
.
hasLength
(
dto
.
getContent
()))
{
wxCheckMediaRequestDto
.
setWordStr
(
dto
.
getContent
());
wxCheckMediaRequestDto
.
setWordStr
(
dto
.
getContent
());
boolean
result
=
qdWxAppletApi
.
checkWord
(
wxCheckMediaRequestDto
);
boolean
result
=
qdWxAppletApi
.
checkWord
(
wxCheckMediaRequestDto
);
...
...
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