fix: typo of lastest -> latest

This commit is contained in:
Wesley F. Young 2024-08-09 14:32:32 +08:00
parent 6583e3d0c9
commit e02c3fca8b

View File

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