update 支付宝小程序

This commit is contained in:
Guoqs
2024-06-17 15:08:13 +08:00
parent 22d9d15507
commit 8bde6e1eb7
10 changed files with 153 additions and 8 deletions

View File

@@ -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) {