记得上下班打卡 | git大法好,push需谨慎

Commit a73f9ed8 authored by zhoujianping's avatar zhoujianping

1.支付小程序支付接口联调

parent f73172aa
......@@ -50,7 +50,7 @@ public class AlipayStrategyAppletImpl extends AbstractAlipayStrategy {
@Override
DragonPayBaseRespDto buildResponseDto(DragonPayBaseRespDto payBaseRespDto, Map<String, Object> respResult) {
payBaseRespDto.getPayData().setTradeNo(respResult.get("trade_no").toString());
payBaseRespDto.getPayData().setTradeNo(respResult.get("tradeNo")!=null?respResult.get("tradeNo").toString():"");
return payBaseRespDto;
}
}
......@@ -61,8 +61,8 @@ public class DragonOrdersServiceImpl implements IDragonOrdersService {
@Override
public ResponseDto<DragonPayBaseRespDto> dragonPay(DragonPayBaseReqDto dragonPayBaseReqDto) {
/* dragonPayBaseReqDto.setOpenId("049ZwqRY-zunlLWsZLPu1VF1uVvh0XzxcsYCDZlIMuEuoE5");
dragonPayBaseReqDto.setDeviceFrom("applet");*/
dragonPayBaseReqDto.setOpenId("049ZwqRY-zunlLWsZLPu1VF1uVvh0XzxcsYCDZlIMuEuoE5");
dragonPayBaseReqDto.setDeviceFrom("applet");
//service层进行效验
Map map = validateDragonPay(dragonPayBaseReqDto);
if(!(boolean)map.get("resultStatus")){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment