mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
chore: 1
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user