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
ece03a83
Commit
ece03a83
authored
Dec 17, 2021
by
zhuxiao
Browse files
修复判断错误
parent
445b5544
Changes
2
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/payway/WxJsapi.java
View file @
ece03a83
...
...
@@ -67,7 +67,7 @@ public class WxJsapi extends WxpayPaymentService {
WxPayUnifiedOrderRequest
req
=
buildUnifiedOrderRequest
(
payOrder
,
mchAppConfigContext
);
req
.
setTradeType
(
WxPayConstants
.
TradeType
.
JSAPI
);
if
(
mchAppConfigContext
.
isIsvsubMch
()
&&
StringUtils
.
isBlank
(
req
.
getSubAppId
())){
// 特约商户 && 传了子商户appId
if
(
mchAppConfigContext
.
isIsvsubMch
()
&&
StringUtils
.
is
Not
Blank
(
req
.
getSubAppId
())){
// 特约商户 && 传了子商户appId
req
.
setSubOpenid
(
bizRQ
.
getOpenid
());
// 用户在子商户appid下的唯一标识
}
else
{
req
.
setOpenid
(
bizRQ
.
getOpenid
());
...
...
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/payway/WxLite.java
View file @
ece03a83
...
...
@@ -67,7 +67,7 @@ public class WxLite extends WxpayPaymentService {
WxPayUnifiedOrderRequest
req
=
buildUnifiedOrderRequest
(
payOrder
,
mchAppConfigContext
);
req
.
setTradeType
(
WxPayConstants
.
TradeType
.
JSAPI
);
if
(
mchAppConfigContext
.
isIsvsubMch
()
&&
StringUtils
.
isBlank
(
req
.
getSubAppId
())){
// 特约商户 && 传了子商户appId
if
(
mchAppConfigContext
.
isIsvsubMch
()
&&
StringUtils
.
is
Not
Blank
(
req
.
getSubAppId
())){
// 特约商户 && 传了子商户appId
req
.
setSubOpenid
(
bizRQ
.
getOpenid
());
// 用户在子商户appid下的唯一标识
}
else
{
req
.
setOpenid
(
bizRQ
.
getOpenid
());
...
...
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