fix
This commit is contained in:
parent
b4df337687
commit
79ad0a8d11
|
@ -103,7 +103,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
||||||
} else {
|
} else {
|
||||||
mquery := &ModuleQuery{
|
mquery := &ModuleQuery{
|
||||||
TableName: tname,
|
TableName: tname,
|
||||||
ModuleName: mtable,
|
ModuleName: mtable + "." + moduleName,
|
||||||
ModuleQuery: map[string]struct{}{strings.Join(mlist[2:], ","): {}}}
|
ModuleQuery: map[string]struct{}{strings.Join(mlist[2:], ","): {}}}
|
||||||
mquerys[mtable] = mquery
|
mquerys[mtable] = mquery
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
||||||
var querydata map[string]any = make(map[string]any)
|
var querydata map[string]any = make(map[string]any)
|
||||||
err = json.Unmarshal([]byte(info["querydata"].(string)), &querydata)
|
err = json.Unmarshal([]byte(info["querydata"].(string)), &querydata)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err, info)
|
||||||
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error())
|
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user