店铺到期时间为空的 标识店铺未激活

This commit is contained in:
2025-12-03 11:26:50 +08:00
parent 3076f913dd
commit ad58d5f2e5

View File

@@ -137,11 +137,15 @@ public class AuthorizationServiceImpl implements AuthorizationService {
if (shopInfo == null) { if (shopInfo == null) {
throw new CzgException("商户不存在"); throw new CzgException("商户不存在");
} }
if (shopInfo.getId() != 1) {
// 过期时间校验 // 过期时间校验
if (shopInfo.getExpireTime() != null) { if (shopInfo.getExpireTime() != null) {
if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) { if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) {
throw new CzgException("店铺已到期,请联系区域经理续费"); throw new CzgException("店铺已到期,请联系区域经理续费");
} }
} else {
throw new CzgException("店铺未激活");
}
} }
boolean isAllowAccountLogin = shopBranchService.isAllowAccountLogin(shopInfo.getId()); boolean isAllowAccountLogin = shopBranchService.isAllowAccountLogin(shopInfo.getId());
if (!isAllowAccountLogin) { if (!isAllowAccountLogin) {