系统用户登录修改
This commit is contained in:
@@ -135,10 +135,13 @@ public class AuthorizationServiceImpl implements AuthorizationService {
|
|||||||
shopInfo = shopInfoService.getById(user.getId());
|
shopInfo = shopInfoService.getById(user.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shopInfo == null) {
|
// if (shopInfo == null) {
|
||||||
throw new ApiNotPrintException("商户不存在");
|
// throw new ApiNotPrintException("商户不存在");
|
||||||
}
|
// }
|
||||||
// 过期时间校验
|
// 过期时间校验
|
||||||
|
if (shopInfo == null) {
|
||||||
|
shopInfo = new ShopInfo().setId(-1L).setShopName(user.getNickName()).setPhone(user.getPhone());
|
||||||
|
}
|
||||||
if (shopInfo.getExpireTime() != null) {
|
if (shopInfo.getExpireTime() != null) {
|
||||||
if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) {
|
if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) {
|
||||||
throw new ApiNotPrintException("店铺已到期,请联系区域经理续费");
|
throw new ApiNotPrintException("店铺已到期,请联系区域经理续费");
|
||||||
|
|||||||
Reference in New Issue
Block a user