系统用户登录修改

This commit is contained in:
张松
2025-11-08 11:24:13 +08:00
parent d4994cbf26
commit 237133d72f

View File

@@ -135,10 +135,13 @@ public class AuthorizationServiceImpl implements AuthorizationService {
shopInfo = shopInfoService.getById(user.getId());
}
if (shopInfo == null) {
throw new ApiNotPrintException("商户不存在");
}
// if (shopInfo == null) {
// throw new ApiNotPrintException("商户不存在");
// }
// 过期时间校验
if (shopInfo == null) {
shopInfo = new ShopInfo().setId(-1L).setShopName(user.getNickName()).setPhone(user.getPhone());
}
if (shopInfo.getExpireTime() != null) {
if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) {
throw new ApiNotPrintException("店铺已到期,请联系区域经理续费");