Commit 959e582f by Li Feifei

test

parent 096b5911
Pipeline #13606 passed with stages
in 29 seconds
...@@ -25,7 +25,11 @@ func init() { ...@@ -25,7 +25,11 @@ func init() {
ctx.WriteString("Error " + err.Error()) ctx.WriteString("Error " + err.Error())
return return
} }
if mapFiles["success"].(string) == "false" {
_ = upload.UpdateFileError("1", mapFiles["uuid"].(string), mapFiles["roomNum"].(string), mapFiles["path"].(string))
}
if err = upload.CreateFileDataBase(mapFiles); err != nil { if err = upload.CreateFileDataBase(mapFiles); err != nil {
_ = upload.UpdateFileError("2", mapFiles["uuid"].(string), mapFiles["roomNum"].(string), mapFiles["path"].(string))
ctx.WriteString("Error " + err.Error()) ctx.WriteString("Error " + err.Error())
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment