mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修改方法名避免冲突
This commit is contained in:
parent
c5d50a9919
commit
048160030c
@ -215,7 +215,7 @@ export async function delSign(e) {
|
||||
return true;
|
||||
}
|
||||
export async function updCookie(e) {
|
||||
let stoken=await gsCfg.getBingStoken(e.user_id);
|
||||
let stoken=await gsCfg.getUserStoken(e.user_id);
|
||||
if (Object.keys(stoken).length==0) {
|
||||
e.reply("请先绑定stoken")
|
||||
return true;
|
||||
|
@ -59,7 +59,7 @@ class GsCfg {
|
||||
ckQQ
|
||||
}
|
||||
}
|
||||
async getBingStoken(userId){
|
||||
async getUserStoken(userId){
|
||||
try {
|
||||
return YAML.parse(
|
||||
fs.readFileSync(`plugins/${plugin}/data/yaml/${userId}.yaml`, 'utf8')
|
||||
|
Loading…
Reference in New Issue
Block a user