oicq-icalingua-plus-plus 1.26.9 → 1.26.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/onlinepush.js +43 -35
- package/package.json +2 -2
package/lib/onlinepush.js
CHANGED
|
@@ -800,46 +800,54 @@ async function NTMsgListener(blob, seq, sso) {
|
|
|
800
800
|
}
|
|
801
801
|
break;
|
|
802
802
|
case 33: //群员入群
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
803
|
+
try {
|
|
804
|
+
const group_id = uin2code(o[1][1][1]);
|
|
805
|
+
const msg = o[1][3][2];
|
|
806
|
+
const user_uid = String(msg[3]);
|
|
807
|
+
const user_id = await uid2uin.call(this, user_uid);
|
|
808
|
+
let nickname = "";
|
|
809
|
+
const ginfo = (await this.getGroupInfo(group_id)).data;
|
|
810
|
+
if (!ginfo) return;
|
|
811
|
+
if (user_id === this.uin) {
|
|
812
|
+
nickname = this.nickname;
|
|
813
|
+
this.logger.info(`更新了群列表,新增了群:${group_id}`);
|
|
814
|
+
} else {
|
|
815
|
+
ginfo.member_count++;
|
|
816
|
+
ginfo.last_join_time = timestamp();
|
|
817
|
+
const info = await this.getGroupMemberInfo(group_id, user_id);
|
|
818
|
+
nickname = info.data.nickname || info.data.card || "";
|
|
819
|
+
try {
|
|
820
|
+
if (this.gml.get(group_id).size)
|
|
821
|
+
ginfo.member_count = this.gml.get(group_id).size;
|
|
822
|
+
} catch { }
|
|
823
|
+
this.logger.info(`${user_id}(${nickname}) 加入了群 ${group_id}`);
|
|
824
|
+
}
|
|
825
|
+
this.getGroupMemberList(group_id, true);
|
|
826
|
+
this.em("notice.group.increase", {
|
|
827
|
+
group_id, user_id, nickname
|
|
828
|
+
});
|
|
829
|
+
} catch (e) {
|
|
830
|
+
this.logger.debug(e);
|
|
823
831
|
}
|
|
824
|
-
this.getGroupMemberList(group_id, true);
|
|
825
|
-
this.em("notice.group.increase", {
|
|
826
|
-
group_id, user_id, nickname
|
|
827
|
-
});
|
|
828
832
|
break;
|
|
829
833
|
case 38: //建群
|
|
830
834
|
case 85: //群申请被同意
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
this.
|
|
838
|
-
|
|
835
|
+
try {
|
|
836
|
+
const group_id = uin2code(o[1][1][1]);
|
|
837
|
+
const user_id = this.uin;
|
|
838
|
+
const nickname = this.nickname;
|
|
839
|
+
const ginfo = (await this.getGroupInfo(group_id)).data;
|
|
840
|
+
if (!ginfo) return;
|
|
841
|
+
if (user_id === this.uin) {
|
|
842
|
+
this.logger.info(`更新了群列表,新增了群:${group_id}`);
|
|
843
|
+
this.getGroupMemberList(group_id);
|
|
844
|
+
}
|
|
845
|
+
this.em("notice.group.increase", {
|
|
846
|
+
group_id, user_id, nickname
|
|
847
|
+
});
|
|
848
|
+
} catch (e) {
|
|
849
|
+
this.logger.debug(e);
|
|
839
850
|
}
|
|
840
|
-
this.em("notice.group.increase", {
|
|
841
|
-
group_id, user_id, nickname
|
|
842
|
-
});
|
|
843
851
|
break;
|
|
844
852
|
case 141: //陌生人
|
|
845
853
|
case 166: //好友
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oicq-icalingua-plus-plus",
|
|
3
3
|
"app_name": "oicq-icalingua-plus-plus",
|
|
4
|
-
"version": "1.26.
|
|
5
|
-
"app_version": "1.26.
|
|
4
|
+
"version": "1.26.10",
|
|
5
|
+
"app_version": "1.26.10",
|
|
6
6
|
"upday": "2026/07/19",
|
|
7
7
|
"protocol_version": "v11",
|
|
8
8
|
"description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
|