This commit is contained in:
icret
2024-03-04 07:23:11 +08:00
parent 4338b90ce8
commit 63066b62f8
11 changed files with 92 additions and 27 deletions

View File

@@ -1,3 +1,4 @@
返回状态可以参考 [常见状态代码](./常见状态代码.md)
- 上传成功后返回JSON
```json

View File

@@ -22,6 +22,7 @@
* [图床更新升级](./图床更新升级.md)
* [更改域名/服务器](./更改域名-服务器.md)
* [常见问题与环境要求](./常见问题.md)
* [常见状态代码](./常见状态代码.md)
* [打赏开发者](./打赏开发者.md)
* [更新日志](./update.md)
* [许可证](./许可证.md)

View File

@@ -1,3 +1,8 @@
* 2024-03-04 v2.8.5
- 返回状态统一
- 增加返回状态文档解释
- 增加通过文件md5禁止上传
* 2024-01-20 v2.8.4
- Fix [#163](https://github.com/icret/EasyImages2.0/pull/163)
- Fix [#159](https://github.com/icret/EasyImages2.0/pull/159)

View File

@@ -0,0 +1,23 @@
#### 上传状态代码
- 200 - 上传成功
- 202 - 超出游客上传限制
- 204 - 没有选择上传的文件
- 205 - 黑名单内或白名单外用户不允许上传
- 400 - 代码或上传文件有问题
- 401 - 已开启登陆上传且尚未登陆
- 403 - 上传签名错误
- 406 - 非法文件
#### 删除状态代码
- 200 - 删除成功
- 404 - 文件不存在
#### 登录状态代码
- 201 - cookie不存在
- 202 - 无法读取cookie
- 203 - 密码错误
- 204 - 管理员已登录
- 205 - 普通用户已登录
- 206 - 普通用户账号过期
<!-- https://mp.weixin.qq.com/s?__biz=MzI3NDc4NTQ0Nw==&mid=2247495035&idx=2&sn=05d56806e9dd42774d2982e8e28f7146&chksm=eb0c18b3dc7b91a575f49b72efb32e0921efd831571b1f06e011faba3cea72eac4f83407971b&scene=27 -->