lsky-org/lsky-pro

API调用delete 显示删除成功但是并未删除

IWIFII opened this issue · 2 comments

{
"data": {
"extension": "png",
"key": "U3mMLH",
"links": {
"bbcode": "[img]http://image.mcpark.cc:38888/i/2024/07/22/669df9924d9d1.png[/img]",
"html": "<img src="http://image.mcpark.cc:38888/i/2024/07/22/669df9924d9d1.png\" alt="Frame 7.png" title="Frame 7.png" />",
"markdown": "Frame 7.png",
"markdown_with_link": "Frame 7.png",
"thumbnail_url": "http://image.mcpark.cc:38888/thumbnails/f2778f482fc29e01288afee88c2b22f1.png",
"url": "http://image.mcpark.cc:38888/i/2024/07/22/669df9924d9d1.png"
},
"md5": "f2778f482fc29e01288afee88c2b22f1",
"mimetype": "image/png",
"name": "669df9924d9d1.png",
"origin_name": "Frame 7.png",
"pathname": "2024/07/22/669df9924d9d1.png",
"sha1": "7bd554057b3895d0bd6b078b7b05c75fc64013ee",
"size": 462.326171875
},
"message": "上传成功",
"status": true
}
我使用http://image.mcpark.cc:38888/api/v1/images/U3mMLH 删除 提示{
"status": true,
"message": "删除成功",
"data": {}
}
但是我去后台看图片并未删除

图片是游客上传的 删除时的token的管理员的token

必须是同一个用户才可以删除 游客没有token api谁也删不了