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
@@ -127,8 +127,8 @@ export const useSettingStore = defineStore({
return this.installInfo; return this.installInfo;
}, },
isPlus(): boolean { isPlus(): boolean {
// return this.plusInfo?.isPlus && this.plusInfo?.expireTime > new Date().getTime(); return this.plusInfo?.isPlus && this.plusInfo?.expireTime > new Date().getTime();
return false; // return false;
}, },
isComm(): boolean { isComm(): boolean {
return this.plusInfo?.isComm && this.plusInfo?.expireTime > new Date().getTime(); return this.plusInfo?.isComm && this.plusInfo?.expireTime > new Date().getTime();
@@ -115,13 +115,16 @@ export class DogeCloudDeployToCDNPlugin extends AbstractTaskPlugin {
const list = res.certs?.filter((item: any) => item.expire < dayjs().unix() && item.domainCount === 0) || []; const list = res.certs?.filter((item: any) => item.expire < dayjs().unix() && item.domainCount === 0) || [];
for (const item of list) { for (const item of list) {
this.ctx.logger.info(`删除过期证书${item.id}->${item.domain}`); this.ctx.logger.info(`删除过期证书${item.id}->${item.domain}`);
await this.dogeClient.request( try{
'/cdn/cert/delete.json', await this.dogeClient.request(
{ '/cdn/cert/delete.json',
id: item.id, {
}, id: item.id,
this.ignoreDeployNullCode },
); );
}catch(err){
this.ctx.logger.warn(`删除过期证书${item.id}->${item.domain}失败`, err);
}
} }
} }