fix(cash): 修复中文拒绝原因请求失败
将退款原因从路径参数改为查询参数接收,避免中文 URL 路径在 Tomcat 解析阶段返回 400;退款业务处理逻辑保持不变。
This commit is contained in:
parent
469ff37b8e
commit
120be5d526
1 changed files with 3 additions and 3 deletions
|
|
@ -490,10 +490,10 @@ public class CashController {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/refund/{cashId}/{content}", method = RequestMethod.POST)
|
@RequestMapping(value = "/refund/{cashId}", method = RequestMethod.POST)
|
||||||
@ApiOperation("管理平台退款")
|
@ApiOperation("管理平台退款")
|
||||||
@ResponseBody
|
@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);
|
CashOut one = cashOutService.selectById(cashId);
|
||||||
if (one == null) {
|
if (one == null) {
|
||||||
return Result.error("提现信息不存在");
|
return Result.error("提现信息不存在");
|
||||||
|
|
@ -540,4 +540,4 @@ public class CashController {
|
||||||
return Result.success().put("data", payDetailsService.getBucketBuyList(page, limit, userId, type, phone, userName, tradeNo));
|
return Result.success().put("data", payDetailsService.getBucketBuyList(page, limit, userId, type, phone, userName, tradeNo));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue