@@ -96,7 +96,7 @@ func (l *GetWxListLogic) GetWxList(req *types.WxListReq) (*types.WxListResp, err
return nil, err
}
- var workphoneWxList map[string]types.WorkPhoneWeChat
+ workphoneWxList := make(map[string]types.WorkPhoneWeChat, len(result.Data))
for _, v := range result.Data {
workphoneWxList[v.Wechatid] = v