mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
update app
This commit is contained in:
parent
fab52b6a56
commit
8effca3a7c
@ -184,13 +184,13 @@ func MinioUploadFile(c *gin.Context) {
|
||||
req apiStruct2.MinioUploadFileReq
|
||||
resp apiStruct2.MinioUploadFileResp
|
||||
)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), r)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": "missing file or snapShot args"})
|
||||
return
|
||||
}
|
||||
}()
|
||||
//defer func() {
|
||||
// if r := recover(); r != nil {
|
||||
// log.NewError(req.OperationID, utils.GetSelfFuncName(), r)
|
||||
// c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": "missing file or snapShot args"})
|
||||
// return
|
||||
// }
|
||||
//}()
|
||||
if err := c.Bind(&req); err != nil {
|
||||
log.NewError("0", utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
||||
|
Loading…
x
Reference in New Issue
Block a user