DESKTOP-53URE31\USER hai 4 meses
pai
achega
15f23d018f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/logic/Wx/get_wx_list_logic.go

+ 1 - 1
internal/logic/Wx/get_wx_list_logic.go

@@ -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
 	}