Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api 接口删除无论成功与否皆返回 200 #383

Closed
heddxh opened this issue Apr 10, 2022 · 5 comments
Closed

api 接口删除无论成功与否皆返回 200 #383

heddxh opened this issue Apr 10, 2022 · 5 comments

Comments

@heddxh
Copy link

heddxh commented Apr 10, 2022

最新版本2.0.3,Docker 安装
本地存储策略

使用接口删除一个不存在的文件,仍返回

{
  "status": true,
  "message": "删除成功",
  "data": {}
}
@0xxb
Copy link
Collaborator

0xxb commented Apr 10, 2022

#366 (comment)

@heddxh
Copy link
Author

heddxh commented Apr 10, 2022

不是七牛云,是本地存储

@0xxb
Copy link
Collaborator

0xxb commented Apr 10, 2022

程序删除操作永远都是返回成功的状态,目的是避免修改、删除了储存策略配置导致删除失败的问题。如果发现物理图片没有删除成功,正常情况下在程序 storage/logs 目录里可以找到详细的错误日志。

@0xxb
Copy link
Collaborator

0xxb commented Apr 10, 2022

就看第一行,其他的就不看了是吗

@heddxh
Copy link
Author

heddxh commented Apr 10, 2022

抱歉,我以为下面那段专指七牛云

@heddxh heddxh closed this as completed Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants