转账到零钱参数完善

This commit is contained in:
张松
2025-10-29 17:03:00 +08:00
parent 0c3d5a0fcc
commit e19457de26
5 changed files with 54 additions and 4 deletions

View File

@@ -72,6 +72,23 @@ public class NotifyController {
return SUCCESS;
}
@RequestMapping("/native/wx/transfer")
public String nativeTransferNotify(HttpServletRequest request) throws IOException {
log.info("接收到微信转账回调");
JSONObject jsonObject = wxService.verifySignature(request);
log.info("参数信息: {}", jsonObject.toJSONString());
String outBillNo = jsonObject.getString("out_bill_no");
String state = jsonObject.getString("state");
try {
distributionUserService.withdrawNotify(outBillNo, state);
}catch (Exception e) {
log.warn("转账回调失败", e);
}
return "SUCCESS";
}
@RequestMapping("/native/wx/pay/distributionRecharge")
public String nativeNotify(HttpServletRequest request) throws IOException {
String timestamp = request.getHeader("Wechatpay-Timestamp");