|
|
@@ -1129,7 +1129,9 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
|
|
|
FsPayConfig payConfig=new FsPayConfig();
|
|
|
//支付宝可以不需要appid(在没有appid的情况下)【ps:小程序的支付宝没传appid 就G】
|
|
|
- if (PaymentMethodEnum.ALIPAY==payOrderParam.getPaymentMethod() && StringUtils.isBlank(payOrderParam.getAppId())){
|
|
|
+ if ((PaymentMethodEnum.ALIPAY==payOrderParam.getPaymentMethod()
|
|
|
+ ||PaymentMethodEnum.T_NATIVE==payOrderParam.getPaymentMethod())
|
|
|
+ && StringUtils.isBlank(payOrderParam.getAppId())){
|
|
|
String json = configService.selectConfigByKey("his.pay");
|
|
|
PayConfigDTO payConfigDTO = JSONUtil.toBean(json, PayConfigDTO.class);
|
|
|
payConfig.setType(payConfigDTO.getType());
|
|
|
@@ -1260,6 +1262,9 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
case ALIPAY:
|
|
|
case H5_ALIPAY:
|
|
|
return "A_NATIVE";
|
|
|
+ case T_APP:
|
|
|
+ case T_NATIVE:
|
|
|
+ return "T_NATIVE";
|
|
|
default:
|
|
|
throw new CustomException("不支持的支付方式");
|
|
|
}
|