2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00
This commit is contained in:
Ctrlcvs 2022-08-21 22:40:37 +08:00
parent bf53a18563
commit e13ffbffb3

View File

@ -26,7 +26,18 @@ class GsCfg {
defSet: {} defSet: {}
} }
} }
async getyunToken(e) {
let file = `${yunpath}/${e.user_id}.yaml`
try {
let ck = fs.readFileSync(file, 'utf-8')
ck = YAML.parse(ck)
e.devId = ck.devId;
e.yuntoken = ck.yuntoken;
return ck
} catch (error) {
return ""
}
}
/** /**
* @param app 功能 * @param app 功能
* @param name 配置文件名称 * @param name 配置文件名称