1
dd
2026-01-27 0ebdfd97b5400c864584147bd72a0de768172d6e
src/main/java/com/nq/controller/protol/UserController.java
@@ -356,10 +356,14 @@
    @ResponseBody
    public ServerResponse transfer(@RequestParam("fromType") String fromType, @RequestParam("toType") String toType,
                                   @RequestParam("amt") String amt,  HttpServletRequest request) {
        if (fromType.equals(toType)) {
            return ServerResponse.createByErrorMsg("货币类型不能相同", request);
        try {
            if (fromType.equals(toType)) {
                return ServerResponse.createByErrorMsg("货币类型不能相同", request);
            }
            return  iUserService.transfer(fromType, toType, amt,request);
        } catch (Exception e) {
            return ServerResponse.createByErrorMsg(e.getMessage());
        }
        return  iUserService.transfer(fromType, toType, amt,request);
    }