Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
e4c6280d
Commit
e4c6280d
authored
Jul 08, 2021
by
zhuxiao
Browse files
解决微信V2接口支付成功重复通知问题
parent
d5b864bf
Changes
1
Show whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayChannelNoticeService.java
View file @
e4c6280d
...
...
@@ -148,10 +148,6 @@ public class WxpayChannelNoticeService extends AbstractChannelNoticeService {
channelResult
.
setChannelUserId
(
payer
.
getOpenid
());
//支付用户ID
}
}
else
{
throw
ResponseException
.
buildText
(
"API_VERSION ERROR"
);
}
JSONObject
resJSON
=
new
JSONObject
();
resJSON
.
put
(
"code"
,
"SUCCESS"
);
resJSON
.
put
(
"message"
,
"成功"
);
...
...
@@ -159,6 +155,10 @@ public class WxpayChannelNoticeService extends AbstractChannelNoticeService {
ResponseEntity
okResponse
=
jsonResp
(
resJSON
);
channelResult
.
setResponseEntity
(
okResponse
);
//响应数据
}
else
{
throw
ResponseException
.
buildText
(
"API_VERSION ERROR"
);
}
return
channelResult
;
}
catch
(
Exception
e
)
{
...
...
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