mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
refactor: fix typo and add comments in WebHonorType
This commit is contained in:
parent
d663a58d65
commit
22e7eb1ffc
@ -194,7 +194,7 @@ export class NTQQWebApi {
|
|||||||
|
|
||||||
const HonorInfo: any = { group_id: groupCode };
|
const HonorInfo: any = { group_id: groupCode };
|
||||||
|
|
||||||
if (getType === WebHonorType.TALKACTIVE || getType === WebHonorType.ALL) {
|
if (getType === WebHonorType.TALKATIVE || getType === WebHonorType.ALL) {
|
||||||
try {
|
try {
|
||||||
const RetInternal = await getDataInternal(groupCode, 1);
|
const RetInternal = await getDataInternal(groupCode, 1);
|
||||||
if (!RetInternal) {
|
if (!RetInternal) {
|
||||||
@ -221,7 +221,7 @@ export class NTQQWebApi {
|
|||||||
this.context.logger.logDebug(e);
|
this.context.logger.logDebug(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getType === WebHonorType.PERFROMER || getType === WebHonorType.ALL) {
|
if (getType === WebHonorType.PERFORMER || getType === WebHonorType.ALL) {
|
||||||
try {
|
try {
|
||||||
const RetInternal = await getDataInternal(groupCode, 2);
|
const RetInternal = await getDataInternal(groupCode, 2);
|
||||||
if (!RetInternal) {
|
if (!RetInternal) {
|
||||||
@ -240,7 +240,7 @@ export class NTQQWebApi {
|
|||||||
this.context.logger.logDebug(e);
|
this.context.logger.logDebug(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getType === WebHonorType.PERFROMER || getType === WebHonorType.ALL) {
|
if (getType === WebHonorType.PERFORMER || getType === WebHonorType.ALL) {
|
||||||
try {
|
try {
|
||||||
const RetInternal = await getDataInternal(groupCode, 3);
|
const RetInternal = await getDataInternal(groupCode, 3);
|
||||||
if (!RetInternal) {
|
if (!RetInternal) {
|
||||||
|
@ -1,9 +1,24 @@
|
|||||||
export enum WebHonorType {
|
export enum WebHonorType {
|
||||||
ALL = 'all',
|
ALL = 'all',
|
||||||
TALKACTIVE = 'talkative',
|
/**
|
||||||
PERFROMER = 'performer',
|
* 群聊之火
|
||||||
|
*/
|
||||||
|
TALKATIVE = 'talkative',
|
||||||
|
/**
|
||||||
|
* 群聊炽焰
|
||||||
|
*/
|
||||||
|
PERFORMER = 'performer',
|
||||||
|
/**
|
||||||
|
* 龙王
|
||||||
|
*/
|
||||||
LEGEND = 'legend',
|
LEGEND = 'legend',
|
||||||
STORONGE_NEWBI = 'strong_newbie',
|
/**
|
||||||
|
* 冒尖小春笋(R.I.P)
|
||||||
|
*/
|
||||||
|
STRONG_NEWBIE = 'strong_newbie',
|
||||||
|
/**
|
||||||
|
* 快乐源泉
|
||||||
|
*/
|
||||||
EMOTION = 'emotion'
|
EMOTION = 'emotion'
|
||||||
}
|
}
|
||||||
export interface WebApiGroupMember {
|
export interface WebApiGroupMember {
|
||||||
@ -107,4 +122,4 @@ export interface GroupEssenceMsgRet {
|
|||||||
group_role: number
|
group_role: number
|
||||||
config_page_url: string
|
config_page_url: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user