perf: 支持白山云cdn部署

pull/229/head
xiaojunnuo 2024-10-29 22:18:45 +08:00
parent d1ea61debc
commit b1b2cd088b
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: v2-dev
- name: get_certd_version
id: get_certd_version
uses: actions/github-script@v6

View File

@ -123,7 +123,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
this.accessService = ctx.accessService;
}
async getAccess(accessId: string) {
async getAccess<T = any>(accessId: string) {
if (accessId == null) {
throw new Error("您还没有配置授权");
}
@ -131,7 +131,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
if (res == null) {
throw new Error("授权不存在,可能已被删除,请前往任务配置里面重新选择授权");
}
return res;
return res as T;
}
randomFileId() {