fix(system): 取消应用过期时间的判断逻辑
- 注释掉了基于版本和过期时间判断应用是否过期的代码 - 取消了过期返回失败的处理逻辑 - 保留了公司实体对象的其他字段设置逻辑
This commit is contained in:
@@ -339,11 +339,11 @@ public class MainController extends BaseController {
|
|||||||
}
|
}
|
||||||
final Company company = companyMapper.getByTenantId(tenantId);
|
final Company company = companyMapper.getByTenantId(tenantId);
|
||||||
// 是否过期
|
// 是否过期
|
||||||
if (company.getVersion() < 30) {
|
// if (company.getVersion() < 30) {
|
||||||
if (Instant.now().isAfter(company.getExpirationTime().toInstant())) {
|
// if (Instant.now().isAfter(company.getExpirationTime().toInstant())) {
|
||||||
return fail(MessageFormat.format("应用ID({0})已过期",company.getTenantId()),null);
|
// return fail(MessageFormat.format("应用ID({0})已过期",company.getTenantId()),null);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
company.setBusinessEntity(null);
|
company.setBusinessEntity(null);
|
||||||
company.setPhone(null);
|
company.setPhone(null);
|
||||||
// 配置信息
|
// 配置信息
|
||||||
|
|||||||
Reference in New Issue
Block a user