fix
This commit is contained in:
parent
d9ea10f541
commit
28366d263b
|
@ -42,9 +42,9 @@ var ModuleTable map[string]string = map[string]string{
|
|||
}
|
||||
|
||||
type InfoType struct {
|
||||
Id int64 `json:"id"`
|
||||
Module string `json:"module"`
|
||||
QueryData map[string]any `json:"querydata"`
|
||||
Id int64 `gorm:"id"`
|
||||
Module string `gorm:"module"`
|
||||
QueryData []byte `gorm:"querydata"`
|
||||
// CreateAt time.Time `json:"ctime"`
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
|||
err = json.Unmarshal([]byte(info.QueryData), &querydata)
|
||||
if err != nil {
|
||||
logx.Error(err, info)
|
||||
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+info.QueryData)
|
||||
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+string(info.QueryData))
|
||||
}
|
||||
|
||||
for k, v := range querydata {
|
||||
|
|
Loading…
Reference in New Issue
Block a user