|
|
@ -44,7 +44,7 @@ import java.util.*; |
|
|
|
*/ |
|
|
|
@Api(tags = "用户表") |
|
|
|
@RestController |
|
|
|
@RequestMapping("v1/sysuser") |
|
|
|
@RequestMapping("apiadmin/sysuser") |
|
|
|
public class SysUserRest { |
|
|
|
@Autowired |
|
|
|
private RedisUtil redisUtil; |
|
|
@ -398,9 +398,9 @@ public class SysUserRest { |
|
|
|
if (StringUtils.isBlank(mobile)) { |
|
|
|
return new ResultBean<SysUserVo>().fail().setMsg("手机号不能为空"); |
|
|
|
} |
|
|
|
if (userType == 0) { |
|
|
|
return new ResultBean<SysUserVo>().fail().setMsg("用户类型不能为空"); |
|
|
|
} |
|
|
|
// if (userType == 0) {
|
|
|
|
// return new ResultBean<SysUserVo>().fail().setMsg("用户类型不能为空");
|
|
|
|
// }
|
|
|
|
if (StringUtils.isBlank(verificationCode)) { |
|
|
|
return new ResultBean<SysUserVo>().fail().setMsg("验证码不能为空"); |
|
|
|
} else { |
|
|
@ -514,7 +514,7 @@ public class SysUserRest { |
|
|
|
// systemLog.setUserName(user.getUserName());
|
|
|
|
// String ip = WebUtil.getIpAddr(httpServletRequest);
|
|
|
|
// systemLog.setUserIp(ip);
|
|
|
|
// systemLog.setEventUrl("portal/v1/sysuser/login");
|
|
|
|
// systemLog.setEventUrl("portal/apiadmin/sysuser/login");
|
|
|
|
// systemLog.setEventContent("用户登录");
|
|
|
|
// systemLog.setEventName("用户登录");
|
|
|
|
// systemLogService.save(systemLog);
|
|
|
@ -589,7 +589,10 @@ public class SysUserRest { |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/loginDetails") |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "获取登录人") |
|
|
|
@ApiOperationSupport(order = 30) |
|
|
|
public ResultBean<SysUserVo> loginDetails(HttpServletRequest httpServletRequest) { |
|
|
|
String token = httpServletRequest.getHeader("token"); |
|
|
|
if (StringUtils.isBlank(token)) { |
|
|
|