fix
This commit is contained in:
parent
dca5011ec1
commit
3becece63c
|
@ -1,7 +1,6 @@
|
|||
package logic
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"fusenapi/utils/auth"
|
||||
"fusenapi/utils/basic"
|
||||
|
@ -140,14 +139,14 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
|||
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error())
|
||||
}
|
||||
|
||||
var querydata map[string]any = make(map[string]any)
|
||||
err = json.Unmarshal([]byte(info.QueryData), &querydata)
|
||||
if err != nil {
|
||||
logx.Error(err, info)
|
||||
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+string(info.QueryData))
|
||||
}
|
||||
// var querydata map[string]any = make(map[string]any)
|
||||
// err = json.Unmarshal([]byte(info.QueryData), &querydata)
|
||||
// if err != nil {
|
||||
// logx.Error(err, info)
|
||||
// return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+string(info.QueryData))
|
||||
// }
|
||||
|
||||
for k, v := range querydata {
|
||||
for k, v := range info {
|
||||
metadict[k] = v
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user