This commit is contained in:
eson 2023-09-01 16:10:32 +08:00
parent b4df337687
commit 79ad0a8d11

View File

@ -103,7 +103,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
} else {
mquery := &ModuleQuery{
TableName: tname,
ModuleName: mtable,
ModuleName: mtable + "." + moduleName,
ModuleQuery: map[string]struct{}{strings.Join(mlist[2:], ","): {}}}
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)
err = json.Unmarshal([]byte(info["querydata"].(string)), &querydata)
if err != nil {
logx.Error(err)
logx.Error(err, info)
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error())
}