From 048160030c8ed35a23d4e0737a14514772a627a8 Mon Sep 17 00:00:00 2001 From: ctrlcvs <1509167646@qq.com> Date: Fri, 9 Sep 2022 10:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B9=E6=B3=95=E5=90=8D?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user.js | 2 +- model/gsCfg.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user.js b/apps/user.js index b8d53c1..1c9d7c7 100644 --- a/apps/user.js +++ b/apps/user.js @@ -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; diff --git a/model/gsCfg.js b/model/gsCfg.js index 9aae7c1..ccc101b 100644 --- a/model/gsCfg.js +++ b/model/gsCfg.js @@ -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')