oicq-icalingua-plus-plus 1.26.8 → 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/client-ext.js +1 -1
- package/lib/oicq.js +1 -1
- package/lib/onlinepush.js +46 -0
- package/package.json +2 -2
package/lib/client-ext.js
CHANGED
|
@@ -232,7 +232,7 @@ Client.prototype.buildSyncCookie = function () {
|
|
|
232
232
|
* 消息同步
|
|
233
233
|
*/
|
|
234
234
|
Client.prototype.pbGetMsg = async function (force = false, flag = 0, count = 10) {
|
|
235
|
-
if (this.config.useNT
|
|
235
|
+
if (this.config.useNT) return true;
|
|
236
236
|
if (count <= 0) {
|
|
237
237
|
this.sync_cookie = null;
|
|
238
238
|
return true;
|
package/lib/oicq.js
CHANGED
|
@@ -394,8 +394,8 @@ async function parseSSO(buf) {
|
|
|
394
394
|
const headlen = buf.readInt32BE();
|
|
395
395
|
const seq = header.read(4).readInt32BE();
|
|
396
396
|
const retcode = header.read(4).readInt32BE();
|
|
397
|
+
const retmsg = String(header.readWithLength());
|
|
397
398
|
if (retcode !== 0) {
|
|
398
|
-
const retmsg = String(header.readWithLength());
|
|
399
399
|
const error = new Error("unsuccessful retcode: " + retcode + " retmsg: " + retmsg + " seq: " + seq);
|
|
400
400
|
if (this.handlers.has(seq))
|
|
401
401
|
this.handlers.get(seq)(null, error);
|
package/lib/onlinepush.js
CHANGED
|
@@ -800,8 +800,54 @@ async function NTMsgListener(blob, seq, sso) {
|
|
|
800
800
|
}
|
|
801
801
|
break;
|
|
802
802
|
case 33: //群员入群
|
|
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);
|
|
831
|
+
}
|
|
832
|
+
break;
|
|
803
833
|
case 38: //建群
|
|
804
834
|
case 85: //群申请被同意
|
|
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);
|
|
850
|
+
}
|
|
805
851
|
break;
|
|
806
852
|
case 141: //陌生人
|
|
807
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++",
|