✨ feat(兼容): 配表使用后台隐藏物品
This commit is contained in:
@@ -513,10 +513,12 @@ async function setServerList() {
|
||||
await redisClient().delAsync(REDIS_KEY.SERVER);
|
||||
await redisClient().delAsync(REDIS_KEY.SERVER_OPEN_TIME);
|
||||
|
||||
for(let { id, name, openTime } of serverList) {
|
||||
// console.log(roleId);
|
||||
await redisClient().hsetAsync(REDIS_KEY.SERVER, `${id}`, `${name}`);
|
||||
await redisClient().hsetAsync(REDIS_KEY.SERVER_OPEN_TIME, `${id}`, `${openTime}`);
|
||||
for(let { id, name, openTime, env } of serverList) {
|
||||
if(env == pinus.app.get('env')) {
|
||||
// console.log(roleId);
|
||||
await redisClient().hsetAsync(REDIS_KEY.SERVER, `${id}`, `${name}`);
|
||||
await redisClient().hsetAsync(REDIS_KEY.SERVER_OPEN_TIME, `${id}`, `${openTime}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user