修复判断错误
This commit is contained in:
parent
445b55449c
commit
ece03a8343
|
|
@ -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.isNotBlank(req.getSubAppId())){ // 特约商户 && 传了子商户appId
|
||||
req.setSubOpenid(bizRQ.getOpenid()); // 用户在子商户appid下的唯一标识
|
||||
}else {
|
||||
req.setOpenid(bizRQ.getOpenid());
|
||||
|
|
|
|||
|
|
@ -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.isNotBlank(req.getSubAppId())){ // 特约商户 && 传了子商户appId
|
||||
req.setSubOpenid(bizRQ.getOpenid()); // 用户在子商户appid下的唯一标识
|
||||
}else {
|
||||
req.setOpenid(bizRQ.getOpenid());
|
||||
|
|
|
|||
Loading…
Reference in New Issue