Commit e4c6280d authored by zhuxiao's avatar zhuxiao
Browse files

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

parent d5b864bf
......@@ -148,10 +148,6 @@ public class WxpayChannelNoticeService extends AbstractChannelNoticeService {
channelResult.setChannelUserId(payer.getOpenid()); //支付用户ID
}
}else {
throw ResponseException.buildText("API_VERSION ERROR");
}
JSONObject resJSON = new JSONObject();
resJSON.put("code", "SUCCESS");
resJSON.put("message", "成功");
......@@ -159,6 +155,10 @@ public class WxpayChannelNoticeService extends AbstractChannelNoticeService {
ResponseEntity okResponse = jsonResp(resJSON);
channelResult.setResponseEntity(okResponse); //响应数据
}else {
throw ResponseException.buildText("API_VERSION ERROR");
}
return channelResult;
} catch (Exception e) {
......
Supports Markdown
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