This commit is contained in:
手瓜一十雪 2024-08-09 14:39:27 +08:00
commit 7178095aef

View File

@ -26,8 +26,8 @@ export class NTQQGroupApi {
);
return groupList;
}
async getGroupMemberLastestSendTimeCache(GroupCode: string) {
return this.getGroupMemberLastestSendTime(GroupCode);
async getGroupMemberLatestSendTimeCache(GroupCode: string) {
return this.getGroupMemberLatestSendTime(GroupCode);
}
/**
* QQ自带数据库获取群成员最后发言时间( )
@ -39,9 +39,9 @@ export class NTQQGroupApi {
* console.log(uin, sendTime);
* }
*/
async getGroupMemberLastestSendTime(GroupCode: string) {
async getGroupMemberLatestSendTime(GroupCode: string) {
const getdata = async (uid: string) => {
const NTRet = await this.getLastestMsgByUids(GroupCode, [uid]);
const NTRet = await this.getLatestMsgByUids(GroupCode, [uid]);
if (NTRet.result != 0 && NTRet.msgList.length < 1) {
return undefined;
}
@ -67,7 +67,7 @@ export class NTQQGroupApi {
}
return ret;
}
async getLastestMsgByUids(GroupCode: string, uids: string[]) {
async getLatestMsgByUids(GroupCode: string, uids: string[]) {
const ret = await this.context.session.getMsgService().queryMsgsWithFilterEx('0', '0', '0', {
chatInfo: {
peerUid: GroupCode,
@ -86,7 +86,7 @@ export class NTQQGroupApi {
async getGroupMemberAll(GroupCode: string, forced = false) {
return this.context.session.getGroupService().getAllMemberList(GroupCode, forced);
}
async getLastestMsg(GroupCode: string, uins: string[]) {
async getLatestMsg(GroupCode: string, uins: string[]) {
const uids: Array<string> = [];
for (const uin of uins) {
const uid = await this.core.getApiContext().UserApi.getUidByUin(uin);