fix
This commit is contained in:
parent
e73a262a6b
commit
e8167e7a4c
|
@ -118,8 +118,14 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
|||
sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s ", mquery.EncodeQuery("metadata"), mquery.TableName, cond)
|
||||
var info InfoType
|
||||
raw := l.svcCtx.MysqlConn.Raw(sqlstr)
|
||||
|
||||
if raw.Error != nil {
|
||||
if raw.Error == gorm.ErrRecordNotFound {
|
||||
continue
|
||||
} else {
|
||||
logx.Error(raw.Error)
|
||||
return resp.SetStatusWithMessage(basic.CodeApiErr, raw.Error.Error())
|
||||
}
|
||||
}
|
||||
|
||||
err := raw.Scan(&info).Error
|
||||
|
|
Loading…
Reference in New Issue
Block a user