Set crawl expiry when tenant package enables crawler client
This commit is contained in:
@@ -342,8 +342,11 @@ public class TenantServiceImpl implements TenantService {
|
|||||||
tenant.setExpireTime(offset);
|
tenant.setExpireTime(offset);
|
||||||
// 设置租户的初始用户名(创建者)
|
// 设置租户的初始用户名(创建者)
|
||||||
tenant.setInitialUser(createReqVO.getUsername());
|
tenant.setInitialUser(createReqVO.getUsername());
|
||||||
|
|
||||||
// 根据套餐配置设置特定功能的过期时间
|
// 根据套餐配置设置特定功能的过期时间
|
||||||
|
// 如果套餐包含"爬虫客户端"功能,则设置爬虫客户端的过期时间
|
||||||
|
if (tenantAgencyPackageDO.getHostslClient() == 1){
|
||||||
|
tenant.setCrawlExpireTime(offset);
|
||||||
|
}
|
||||||
// 如果套餐包含"大哥客户端"功能,则设置大哥客户端的过期时间
|
// 如果套餐包含"大哥客户端"功能,则设置大哥客户端的过期时间
|
||||||
if (tenantAgencyPackageDO.getBrotherClient() == 1){
|
if (tenantAgencyPackageDO.getBrotherClient() == 1){
|
||||||
tenant.setBrotherExpireTime(offset);
|
tenant.setBrotherExpireTime(offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user