fix
This commit is contained in:
parent
9b4895992d
commit
4d6ca1d291
|
@ -48,6 +48,7 @@ type ModuleQuery struct {
|
|||
}
|
||||
|
||||
func (mquery *ModuleQuery) EncodeQuery(field string) string {
|
||||
|
||||
var qstr []byte = []byte("JSON_OBJECT(")
|
||||
|
||||
for query := range mquery.ModuleQuery {
|
||||
|
@ -98,6 +99,10 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
|
|||
moduleName := mlist[1]
|
||||
cond = fmt.Sprintf("module = '%s' and %s", moduleName, cond)
|
||||
|
||||
if len(mlist) == 2 {
|
||||
mlist = append(mlist, "")
|
||||
}
|
||||
|
||||
if mquery, ok := mquerys[mtable]; ok {
|
||||
mquery.ModuleQuery[strings.Join(mlist[2:], ",")] = struct{}{}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user