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
96eaa92e
Commit
96eaa92e
authored
Aug 27, 2021
by
terrfly
Browse files
微信退款异常需在订单记录错误信息值;
parent
4e0cbb30
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayRefundService.java
View file @
96eaa92e
...
...
@@ -83,7 +83,8 @@ public class WxpayRefundService extends AbstractRefundService {
channelRetMsg
.
setChannelOrderId
(
result
.
getRefundId
());
}
else
{
channelRetMsg
.
setChannelState
(
ChannelRetMsg
.
ChannelState
.
CONFIRM_FAIL
);
channelRetMsg
.
setChannelErrMsg
(
result
.
getReturnMsg
());
channelRetMsg
.
setChannelErrCode
(
result
.
getErrCode
());
channelRetMsg
.
setChannelErrMsg
(
WxpayKit
.
appendErrMsg
(
result
.
getReturnMsg
(),
result
.
getErrCodeDes
()));
}
}
else
if
(
CS
.
PAY_IF_VERSION
.
WX_V3
.
equals
(
mchAppConfigContext
.
getWxServiceWrapper
().
getApiVersion
()))
{
//V3
// 微信统一下单请求对象
...
...
@@ -122,7 +123,10 @@ public class WxpayRefundService extends AbstractRefundService {
}
return
channelRetMsg
;
}
catch
(
WxPayException
e
)
{
return
ChannelRetMsg
.
sysError
(
e
.
getReturnMsg
());
ChannelRetMsg
channelRetMsg
=
ChannelRetMsg
.
confirmFail
();
WxpayKit
.
commonSetErrInfo
(
channelRetMsg
,
e
);
return
channelRetMsg
;
}
catch
(
Exception
e
)
{
return
ChannelRetMsg
.
sysError
(
e
.
getMessage
());
}
...
...
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