mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 支付宝小程序
This commit is contained in:
@@ -166,8 +166,13 @@ public class OrderService {
|
||||
* @return
|
||||
*/
|
||||
public String generateOrderV2(GenerateOrderDTO dto) throws ParseException {
|
||||
String delayMode = null;
|
||||
if (StringUtils.equals(dto.getRequestSource(), AdapayPayChannelEnum.WX_LITE.getValue())) {
|
||||
delayMode = pileMerchantInfoService.getDelayModeByWechatAppId(dto.getAppId());
|
||||
} else if (StringUtils.equals(dto.getRequestSource(), AdapayPayChannelEnum.ALIPAY_LITE.getValue())) {
|
||||
delayMode = pileMerchantInfoService.getDelayModeByAlipayAppId(dto.getAppId());
|
||||
}
|
||||
// 新逻辑
|
||||
String delayMode = pileMerchantInfoService.getDelayModeByWechatAppId(dto.getAppId());
|
||||
AbstractProgramLogic orderLogic = ProgramLogicFactory.getProgramLogic(delayMode);
|
||||
OrderBasicInfo orderBasicInfo = orderLogic.generateOrder(dto);
|
||||
if (orderBasicInfo != null) {
|
||||
|
||||
Reference in New Issue
Block a user