Change global table "NETWORK" to "ACCOUNT"

This commit is contained in:
Particle_G
2020-11-26 22:00:43 +08:00
committed by MrZ626
parent 9e6e170e49
commit ba7168edd4
3 changed files with 9 additions and 9 deletions

View File

@@ -156,10 +156,10 @@ function Tick.httpREQ_login(data)
local success,content=json.decode(response.body)
if success then
LOG.print(text.loginSuccessed..": "..content.message)
NETWORK.id=content.id
NETWORK.username=content.username
NETWORK.auth_token=content.auth_token
FILE.saveNetwork()
ACCOUNT.id=content.id
ACCOUNT.username=content.username
ACCOUNT.auth_token=content.auth_token
FILE.saveAccount()
else
LOG.print(text.jsonError,"warn")
end