| | |
| | | |
| | | @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}) |
| | |
| | | UserLoginResultVO resultVO = new UserLoginResultVO(); |
| | | resultVO.setKey(pc_cookie_name); |
| | | resultVO.setToken(token); |
| | | return ServerResponse.createBySuccess("Login Success", resultVO); |
| | | return ServerResponse.createBySuccess("登录成功", resultVO); |
| | | } |
| | | return serverResponse; |
| | | } |