✨ feat(gvg): 添加城池排行榜定时推送
This commit is contained in:
@@ -742,3 +742,26 @@ export async function clearGVGHistoryAreaTeam() {
|
||||
const result = await redisClient().delAsync(REDIS_KEY.GVG_HISTORY_AREA_TEAM);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
export async function getGVGHistoryCityTeam(roleId: string) {
|
||||
let channelName = await redisClient().hgetAsync(REDIS_KEY.GVG_HISTORY_CITY, roleId);
|
||||
return channelName
|
||||
}
|
||||
|
||||
export async function addGVGHistoryCityTeam(roleId: string, groupId: number, serverType: number, cityId: number) {
|
||||
const result = await redisClient().hsetAsync(REDIS_KEY.GVG_HISTORY_CITY, roleId, `${groupId}_${serverType}_${cityId}`);
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function delGVGHistoryCityTeam(roleId: string) {
|
||||
const result = await redisClient().hdelAsync(REDIS_KEY.GVG_HISTORY_CITY, roleId);
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function clearGVGHistoryCityTeam() {
|
||||
const result = await redisClient().delAsync(REDIS_KEY.GVG_HISTORY_CITY);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user