Skip to content

Commit 96928f8

Browse files
committed
code ...
1 parent 6abe1d8 commit 96928f8

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

Diff for: client/message.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ func (c *QQClient) SendGroupMessage(groupUin uint32, elements []message2.IMessag
7171
Uin: c.Uin,
7272
UID: c.GetUID(c.Uin),
7373
Nickname: c.NickName(),
74-
CardName: minfo.MemberCard,
75-
AnonymousInfo: nil,
74+
CardName: minfo.MemberCard
7675
IsFriend: true,
7776
},
7877
Time: ret.Timestamp1,
@@ -109,7 +108,6 @@ func (c *QQClient) SendPrivateMessage(uin uint32, elements []message2.IMessageEl
109108
Uin: c.Uin,
110109
UID: c.GetUID(c.Uin),
111110
Nickname: c.NickName(),
112-
AnonymousInfo: nil,
113111
IsFriend: true,
114112
},
115113
Elements: elements,
@@ -140,7 +138,6 @@ func (c *QQClient) SendTempMessage(groupUin uint32, uin uint32, elements []messa
140138
Uin: c.Uin,
141139
UID: c.GetUID(c.Uin),
142140
Nickname: c.NickName(),
143-
AnonymousInfo: nil,
144141
IsFriend: true,
145142
},
146143
Elements: elements,

Diff for: message/message.go

+5-15
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,11 @@ type (
7777
}
7878

7979
Sender struct {
80-
Uin uint32
81-
UID string
82-
Nickname string
83-
CardName string
84-
AnonymousInfo *AnonymousInfo
85-
IsFriend bool
86-
}
87-
88-
AnonymousInfo struct {
89-
AnonymousID string
90-
AnonymousNick string
80+
Uin uint32
81+
UID string
82+
Nickname string
83+
CardName string
84+
IsFriend bool
9185
}
9286

9387
IMessageElement interface {
@@ -97,10 +91,6 @@ type (
9791
ElementType int
9892
)
9993

100-
func (s *Sender) IsAnonymous() bool {
101-
return s.Uin == 80000000
102-
}
103-
10494
func ParsePrivateMessage(msg *message.PushMsgBody) *PrivateMessage {
10595
prvMsg := &PrivateMessage{
10696
ID: msg.ContentHead.Sequence.Unwrap(),

0 commit comments

Comments
 (0)