1
zj
2024-05-21 0e20a4ee1fb4f46598948e9a42c350e7486f73b4
src/main/java/com/nq/controller/UserApiController.java
@@ -54,13 +54,24 @@
    @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);
}
    public ServerResponse reg(@RequestParam("agentCode") String agentCode,
                              @RequestParam("phone") String phone,
                              @RequestParam(value = "yzmCode", defaultValue = "") String yzmCode,
                              @RequestParam("userPwd") String userPwd,
                              @RequestParam("email") String email,
                              HttpServletRequest httpServletRequest) {
        return this.iUserService.reg(yzmCode, agentCode, phone, userPwd, email,httpServletRequest);
    }
    @RequestMapping(value = {"sendMailCode.do"}, method = {RequestMethod.POST})
    @ResponseBody
    public ServerResponse sendMailCode(@RequestParam("email") String email) {
        return this.iUserService.sendMailCode(email);
    }
    //登录
    @RequestMapping(value = {"login.do"}, method = {RequestMethod.POST})
@@ -76,7 +87,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;
    }