This commit is contained in:
xiaojunnuo
2025-11-07 01:50:34 +08:00
parent 335cf93970
commit 802683b765
2 changed files with 12 additions and 9 deletions

View File

@@ -127,8 +127,8 @@ export const useSettingStore = defineStore({
return this.installInfo;
},
isPlus(): boolean {
// return this.plusInfo?.isPlus && this.plusInfo?.expireTime > new Date().getTime();
return false;
return this.plusInfo?.isPlus && this.plusInfo?.expireTime > new Date().getTime();
// return false;
},
isComm(): boolean {
return this.plusInfo?.isComm && this.plusInfo?.expireTime > new Date().getTime();

View File

@@ -115,13 +115,16 @@ export class DogeCloudDeployToCDNPlugin extends AbstractTaskPlugin {
const list = res.certs?.filter((item: any) => item.expire < dayjs().unix() && item.domainCount === 0) || [];
for (const item of list) {
this.ctx.logger.info(`删除过期证书${item.id}->${item.domain}`);
await this.dogeClient.request(
'/cdn/cert/delete.json',
{
id: item.id,
},
this.ignoreDeployNullCode
);
try{
await this.dogeClient.request(
'/cdn/cert/delete.json',
{
id: item.id,
},
);
}catch(err){
this.ctx.logger.warn(`删除过期证书${item.id}->${item.domain}失败`, err);
}
}
}