1
zj
2024-09-10 1c6748cbef6bf2348106b27fb47a74efff8a8b2e
src/main/java/com/nq/controller/UserApiController.java
@@ -54,13 +54,12 @@
    @Autowired
    ISiteSpreadService iSiteSpreadService;
    //注册
    @RequestMapping(value = {"reg.do"}, method = {RequestMethod.POST})
    @ResponseBody
    public ServerResponse reg(@RequestParam("agentCode") String agentCode, @RequestParam("phone") String phone, @RequestParam(value = "yzmCode", defaultValue = "") String yzmCode, @RequestParam("userPwd") String userPwd, HttpServletRequest httpServletRequest) {
        return this.iUserService.reg(yzmCode, agentCode, phone, userPwd, httpServletRequest);
}
    }
    //登录
    @RequestMapping(value = {"login.do"}, method = {RequestMethod.POST})
@@ -76,7 +75,7 @@
            UserLoginResultVO resultVO = new UserLoginResultVO();
            resultVO.setKey(pc_cookie_name);
            resultVO.setToken(token);
            return ServerResponse.createBySuccess("Login Success", resultVO);
            return ServerResponse.createBySuccess("登录成功", resultVO);
        }
        return serverResponse;
    }