From 120be5d526d3391bf61b2fbefdaae509177839e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E4=BA=AE?= <1044099507@qq.com> Date: Thu, 6 Aug 2026 13:46:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(cash):=20=E4=BF=AE=E5=A4=8D=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E6=8B=92=E7=BB=9D=E5=8E=9F=E5=9B=A0=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将退款原因从路径参数改为查询参数接收,避免中文 URL 路径在 Tomcat 解析阶段返回 400;退款业务处理逻辑保持不变。 --- .../java/com/sqx/modules/pay/controller/CashController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sqx/modules/pay/controller/CashController.java b/src/main/java/com/sqx/modules/pay/controller/CashController.java index 4db2839..d33a232 100644 --- a/src/main/java/com/sqx/modules/pay/controller/CashController.java +++ b/src/main/java/com/sqx/modules/pay/controller/CashController.java @@ -490,10 +490,10 @@ public class CashController { } - @RequestMapping(value = "/refund/{cashId}/{content}", method = RequestMethod.POST) + @RequestMapping(value = "/refund/{cashId}", method = RequestMethod.POST) @ApiOperation("管理平台退款") @ResponseBody - public Result refund(@PathVariable("cashId") Long cashId, @PathVariable("content") String content) { + public Result refund(@PathVariable("cashId") Long cashId, @RequestParam("content") String content) { CashOut one = cashOutService.selectById(cashId); if (one == null) { return Result.error("提现信息不存在"); @@ -540,4 +540,4 @@ public class CashController { return Result.success().put("data", payDetailsService.getBucketBuyList(page, limit, userId, type, phone, userName, tradeNo)); } -} \ No newline at end of file +}