|
@@ -70,21 +70,21 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (0 == company.getSetMeal()) {
|
|
|
//未办理会员
|
|
|
if (company.getExpirationDate().isBefore(LocalDateTime.now())) {
|
|
|
- httpRespMsg.setError("账号试用已到期,请联系公司负责人开通会员套餐");
|
|
|
+ httpRespMsg.setError("账号试用已到期,请联系客服。");
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
} else {
|
|
|
if (company.getExpirationDate().isBefore(LocalDateTime.now())) {
|
|
|
- httpRespMsg.setError("账号会员已到期,请联系公司负责人续费会员套餐");
|
|
|
+ httpRespMsg.setError("账号会员已到期,请联系客服。");
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
//检测密码正确时
|
|
|
- UserVO userVO = new UserVO();
|
|
|
+ UserVO userVO = new UserVO().setCompanyName(company.getCompanyName());
|
|
|
BeanUtils.copyProperties(userList.get(0), userVO);
|
|
|
//还要多返回一个公司名字
|
|
|
- userVO.setCompanyName(company.getCompanyName());
|
|
|
+ userVO.setPassword("");
|
|
|
LocalDateTime remainingTime = company.getExpirationDate() == null ? LocalDateTime.now() : company.getExpirationDate();
|
|
|
userVO.setRemainingTime(remainingTime.toInstant(ZoneOffset.of("+8")).toEpochMilli() - LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli());
|
|
|
httpRespMsg.data = userVO;
|
|
@@ -114,22 +114,23 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (0 == company.getSetMeal()) {
|
|
|
//未办理会员
|
|
|
if (company.getExpirationDate().isBefore(LocalDateTime.now())) {
|
|
|
- httpRespMsg.setError("账号试用已到期,请联系公司负责人开通会员套餐");
|
|
|
+ httpRespMsg.setError("账号试用已到期,请联系客服。");
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
} else {
|
|
|
if (company.getExpirationDate().isBefore(LocalDateTime.now())) {
|
|
|
- httpRespMsg.setError("账号会员已到期,请联系公司负责人续费会员套餐");
|
|
|
+ httpRespMsg.setError("账号会员已到期,请联系客服。");
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
//检测密码正确时
|
|
|
- UserVO userVO = new UserVO();
|
|
|
+ UserVO userVO = new UserVO().setCompanyName(company.getCompanyName());
|
|
|
BeanUtils.copyProperties(userList.get(0), userVO);
|
|
|
//还要多返回一个公司名字
|
|
|
LocalDateTime remainingTime = company.getExpirationDate() == null ? LocalDateTime.now() : company.getExpirationDate();
|
|
|
userVO.setRemainingTime(remainingTime.toInstant(ZoneOffset.of("+8")).toEpochMilli() - LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli());
|
|
|
+ userVO.setPassword("");
|
|
|
httpRespMsg.data = userVO;
|
|
|
} else {
|
|
|
httpRespMsg.setError("密码错误");
|