fix list bug
This commit is contained in:
parent
5f8c3e65d8
commit
dc51c7659b
@ -84,11 +84,11 @@ func GetLineMessageLog(c *context.Context) {
|
|||||||
|
|
||||||
resMap := make([]map[string]interface{}, len(logs))
|
resMap := make([]map[string]interface{}, len(logs))
|
||||||
|
|
||||||
for _, v := range logs {
|
for k, v := range logs {
|
||||||
m := utils.ToMap(v.LineMessageLog)
|
m := utils.ToMap(v.LineMessageLog)
|
||||||
m["group_name"] = v.GroupName
|
m["group_name"] = v.GroupName
|
||||||
m["user_name"] = v.UserName
|
m["user_name"] = v.UserName
|
||||||
resMap = append(resMap, m)
|
resMap[k] = m
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Success(map[string]interface{}{
|
c.Success(map[string]interface{}{
|
||||||
|
Loading…
Reference in New Issue
Block a user