鉴权修改

This commit is contained in:
张松
2025-11-08 11:43:18 +08:00
parent 69e54ec5a1
commit b10f9d24fb
2 changed files with 65 additions and 5 deletions

View File

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