From 802ecf3f9a903983d0caf279f5c6ab1eaf563af1 Mon Sep 17 00:00:00 2001 From: drake Date: Sun, 13 Aug 2023 23:49:19 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/converter.md | 2 +- docs/index.md | 2 +- docs/progress.md | 9 +++++---- docs/request.md | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/converter.md b/docs/converter.md index 19676f36d..aeda64d48 100644 --- a/docs/converter.md +++ b/docs/converter.md @@ -47,4 +47,4 @@ scopeNetLife { } ``` -假设不支持你需要的数据类型, 例如JSON/ProtoBuf/Bitmap等请[自定义转换器](/converter/#_3) \ No newline at end of file +假设不支持你需要的数据类型, 例如JSON/ProtoBuf/Bitmap等请[自定义转换器](converter-customize.md#_3) \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index e2e4045e5..599bea4ef 100644 --- a/docs/index.md +++ b/docs/index.md @@ -53,7 +53,7 @@ Net是基于[OkHttp](https://github.com/square/okhttp)/协程的非侵入式框 如果多个网络请求之间毫无关联, 可以创建多个作用域来请求 !!! failure "强制初始化" - 多进程或Xposed项目要求先[初始化](config.md/#_1) + 多进程或Xposed项目要求先[初始化](config.md#_1) 并发请求错误示例 diff --git a/docs/progress.md b/docs/progress.md index 7498f2a40..ec4ecf5ae 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -49,7 +49,8 @@ scopeNetLife { } ``` -> 不仅是泛型为File才有效, 任何请求/响应都可以监听进度 +!!! success "监听任何进度" + 不仅是泛型为File才有效, 任何请求/响应都可以监听进度 ## 监听器 @@ -80,8 +81,8 @@ ProgressListener的构造参数`interval`控制触发进度监听器的间隔时 | 函数 | 描述 | |-|-| | currentSize | 已完成大小, 例如: `120kB` 或者 `1.5MB` | -| totalSize | 全部大小, 同上 | -| remainSize | 剩余大小, 同上 | -| speedSize | 每秒下载大小, 同上 | +| totalSize | 全部大小 | +| remainSize | 剩余大小 | +| speedSize | 每秒下载大小 | | useTime | 已使用时间, 格式为: `01:23:04` | | remainTime | 估算的剩余时间, 格式为: `01:23:04` | diff --git a/docs/request.md b/docs/request.md index 7fd11f0bb..e312d494b 100644 --- a/docs/request.md +++ b/docs/request.md @@ -74,7 +74,7 @@ scopeNetLife { 如果JSON需要全局参数 1. 自定义`RequestBody`添加全局参数 -2. 使用请求拦截器来添加全局参数 [RequestInterceptor](/interceptor/#_1) +2. 使用请求拦截器来添加全局参数 [RequestInterceptor](interceptor.md#_1) ## 自定义扩展函数