From 0cea8db0f96102d4c6289f663cc76f8983125b0a Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 2 Nov 2024 22:05:37 +0800 Subject: [PATCH] chore: 1 --- docs/guide/use/custom-script/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guide/use/custom-script/index.md b/docs/guide/use/custom-script/index.md index 6d8e8420..a984a6d3 100644 --- a/docs/guide/use/custom-script/index.md +++ b/docs/guide/use/custom-script/index.md @@ -1,10 +1,10 @@ # 自定义脚本插件 -## 介绍 +## 1. 介绍 自定义脚本插件是一个通用的插件,可以通过编写脚本来实现各种功能,例如:调用第三方API、执行系统命令、发送邮件等。 -## 使用示例 +## 2. 使用示例 ```js const certPem = this.ctx.self.cert.crt const certKey = this.ctx.self.cert.key @@ -22,8 +22,8 @@ this.ctx.logger.info("上传成功",res.data) ``` -## API - +## 3. API +下面是`ctx`对象的`typescript`类型定义 ```ts