🎨 Improve the response status code of kernel API /api/file/getFile https://github.com/siyuan-note/siyuan/pull/9075

This commit is contained in:
Daniel 2023-08-30 23:47:58 +08:00
parent baa3ef0bb4
commit cf5948dd1a
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -84,6 +84,7 @@ func getFile(c *gin.Context) {
ret := gulu.Ret.NewResult()
arg, ok := util.JsonArg(c, ret)
if !ok {
ret.Code = -1
c.JSON(http.StatusAccepted, ret)
return
}