解决微信V2接口支付成功重复通知问题
This commit is contained in:
parent
d5b864bf7e
commit
e4c6280d4f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue