删除 - 旧的 token 管理器

This commit is contained in:
suwings 2018-04-21 14:16:29 +08:00
parent 4895337862
commit 7e4470c716

View File

@ -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")
}