|
@@ -55,13 +55,13 @@ type GetWechatFriendListResp struct {
|
|
|
}
|
|
|
|
|
|
func (l *GetFriendsAndGroupsLogic) GetFriendsAndGroups(req *types.IDReq) (resp *types.BaseMsgResp, err error) {
|
|
|
- organizationId := l.ctx.Value("organizationId").(uint64)
|
|
|
+ //organizationId := l.ctx.Value("organizationId").(uint64)
|
|
|
wxInfo, err := l.svcCtx.DB.Wx.Get(l.ctx, req.Id)
|
|
|
- if err != nil {
|
|
|
+ if err != nil || wxInfo == nil {
|
|
|
l.Error("查询微信信息失败", err)
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ organizationId := wxInfo.OrganizationID
|
|
|
if wxInfo.ServerID > 0 {
|
|
|
//云托管版本
|
|
|
serverInfo, err := l.svcCtx.DB.Server.Get(l.ctx, wxInfo.ServerID)
|