全局变量ACCOUNT改名USER

This commit is contained in:
MrZ626
2020-12-14 15:44:40 +08:00
parent a409557019
commit 4d39924059
7 changed files with 31 additions and 31 deletions

View File

@@ -9,9 +9,9 @@ local function tick_httpREQ_newLogin(task)
if res then
if LOGIN then
LOG.print(text.loginSuccessed)
ACCOUNT.email=res.email
ACCOUNT.auth_token=res.auth_token
FILE.save(ACCOUNT,"conf/account","q")
USER.email=res.email
USER.auth_token=res.auth_token
FILE.save(USER,"conf/account","q")
httpRequest(
TICK.httpREQ_getAccessToken,
@@ -19,8 +19,8 @@ local function tick_httpREQ_newLogin(task)
"POST",
{["Content-Type"]="application/json"},
json.encode{
email=ACCOUNT.email,
auth_token=ACCOUNT.auth_token,
email=USER.email,
auth_token=USER.auth_token,
}
)
else