寻宝:移除金色藏宝图相关代码
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { GOOD_QUALITY, REDIS_RANK_TO_INFO } from './../consts';
|
||||
import { GOOD_QUALITY, REDIS_RANK_TO_INFO, COM_BTL_QUALITY } from './../consts';
|
||||
import { RoleModel, RoleType } from "../db/Role";
|
||||
import * as Redis from 'redis';
|
||||
import {REDIS_KEY} from '../consts'
|
||||
@@ -274,7 +274,7 @@ export async function getTeamSearchByQuality(quality: number, lvRange: number) {
|
||||
if (decodeData.length !== 2) return null;
|
||||
|
||||
res.push({roleId: decodeData[0], sid: decodeData[1]});
|
||||
GOOD_QUALITY.forEach((q) => {
|
||||
COM_BTL_QUALITY.forEach((q) => {
|
||||
cmds.push(['srem', getComTeamKey(q, lvRange), userInfo]);
|
||||
})
|
||||
const multiClient = client.multi(cmds) as Redis.Multi;
|
||||
@@ -298,7 +298,7 @@ export async function checkRoleInQueue(roleId: string, sid: string, qualityArr:
|
||||
|
||||
export async function clearComBtlQueue() {
|
||||
const client: Redis.RedisClient = pinus.app.get('redis');
|
||||
for (let q of GOOD_QUALITY) {
|
||||
for (let q of COM_BTL_QUALITY) {
|
||||
for (let lvRange of comBtlRanges()) {
|
||||
await client.delAsync(getComTeamKey(q, lvRange));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user