mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore:
This commit is contained in:
@@ -18,6 +18,10 @@ const res = await ctx.http.request({
|
|||||||
key : certKey
|
key : certKey
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if(!res || res.code !== 0){
|
||||||
|
//抛异常才能让任务失败
|
||||||
|
throw new Error("上传失败")
|
||||||
|
}
|
||||||
//不能用console.log,需要用ctx.logger 才能把日志打印在ui上
|
//不能用console.log,需要用ctx.logger 才能把日志打印在ui上
|
||||||
ctx.logger.info("上传成功",res.data)
|
ctx.logger.info("上传成功",res.data)
|
||||||
|
|
||||||
@@ -79,3 +83,4 @@ type CustomScriptPlugin = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user