解决微信V2接口支付成功重复通知问题

This commit is contained in:
zhuxiao 2021-07-08 18:00:40 +08:00
parent d5b864bf7e
commit e4c6280d4f
1 changed files with 7 additions and 7 deletions

View File

@ -148,17 +148,17 @@ public class WxpayChannelNoticeService extends AbstractChannelNoticeService {
channelResult.setChannelUserId(payer.getOpenid()); //支付用户ID
}
JSONObject resJSON = new JSONObject();
resJSON.put("code", "SUCCESS");
resJSON.put("message", "成功");
ResponseEntity okResponse = jsonResp(resJSON);
channelResult.setResponseEntity(okResponse); //响应数据
}else {
throw ResponseException.buildText("API_VERSION ERROR");
}
JSONObject resJSON = new JSONObject();
resJSON.put("code", "SUCCESS");
resJSON.put("message", "成功");
ResponseEntity okResponse = jsonResp(resJSON);
channelResult.setResponseEntity(okResponse); //响应数据
return channelResult;
} catch (Exception e) {