From 32b0937ad9b0e4f7a04cc6b8badf6160affb09a0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 16 Dec 2020 00:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dconf/account=E6=B2=A1?= =?UTF-8?q?=E6=94=B9=E5=AE=8C=E5=AF=BC=E8=87=B4=E8=B4=A6=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=AD=98=E4=B8=8D=E4=B8=8A=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 3 ++- parts/scenes/login.lua | 2 +- parts/tick.lua | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index cb61192c..69d87283 100644 --- a/main.lua +++ b/main.lua @@ -42,7 +42,7 @@ for _,v in next,{"conf","record","replay"}do ::NEXT:: end ---Delete useless mode record file +--Delete useless files for _,v in next,{ "tech_ultimate.dat", "tech_ultimate+.dat", @@ -51,6 +51,7 @@ for _,v in next,{ "marathon_ultimate.dat", "infinite.dat", "infinite_dig.dat", + "conf/account", }do if fs.getInfo(v)then fs.remove(v)end end diff --git a/parts/scenes/login.lua b/parts/scenes/login.lua index 96589531..e0c494ca 100644 --- a/parts/scenes/login.lua +++ b/parts/scenes/login.lua @@ -11,7 +11,7 @@ local function tick_httpREQ_newLogin(task) LOG.print(text.loginSuccessed) USER.email=res.email USER.auth_token=res.auth_token - FILE.save(USER,"conf/account","q") + FILE.save(USER,"conf/user","q") httpRequest( TICK.httpREQ_getAccessToken, diff --git a/parts/tick.lua b/parts/tick.lua index 957255f6..9c55b500 100644 --- a/parts/tick.lua +++ b/parts/tick.lua @@ -10,7 +10,7 @@ function Tick.httpREQ_getAccessToken(task) if res then LOG.print(text.accessSuccessed) USER.access_token=res.access_token - FILE.save(USER,"conf/account") + FILE.save(USER,"conf/user") SCN.swapTo("netgame") else LOG.print(text.netErrorCode..response.code..": "..res.message,"warn")