fix(cash): 修复中文拒绝原因请求失败

将退款原因从路径参数改为查询参数接收,避免中文 URL 路径在 Tomcat 解析阶段返回 400;退款业务处理逻辑保持不变。
This commit is contained in:
钟亮 2026-08-06 13:46:45 +08:00
parent 469ff37b8e
commit 120be5d526

View file

@ -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("提现信息不存在");