mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
refactor: fix typo and add comments in WebHonorType
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user