forked from mirror/MCSManager
删除 - 旧的 token 管理器
This commit is contained in:
parent
4895337862
commit
7e4470c716
@ -1,18 +0,0 @@
|
||||
//全局用户 token 保存区
|
||||
global.__MCSERVER_VAR_LIST__ = {};
|
||||
|
||||
|
||||
module.exports.set = (key, value) => {
|
||||
if (key)
|
||||
global.__MCSERVER_VAR_LIST__[key] = value;
|
||||
else
|
||||
throw new Error("key is undefined")
|
||||
}
|
||||
|
||||
|
||||
module.exports.get = (key, def = undefined) => {
|
||||
if (key)
|
||||
return global.__MCSERVER_VAR_LIST__[key] || def;
|
||||
else
|
||||
throw new Error("key is undefined")
|
||||
}
|
Loading…
Reference in New Issue
Block a user