Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user