mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: 支持白山云cdn部署
This commit is contained in:
1
.github/workflows/deploy-demo.yml
vendored
1
.github/workflows/deploy-demo.yml
vendored
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user