mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修
This commit is contained in:
parent
bf53a18563
commit
e13ffbffb3
@ -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 配置文件名称
|
||||||
|
Loading…
Reference in New Issue
Block a user