FILE.save用法调整
This commit is contained in:
@@ -1477,7 +1477,7 @@ local function gameOver()--Save record
|
||||
end
|
||||
end
|
||||
if needSave then
|
||||
FILE.save(RANKS,"unlock")
|
||||
FILE.save(RANKS,"unlock","q")
|
||||
end
|
||||
local D=M.score(P)
|
||||
local L=M.records
|
||||
@@ -1495,7 +1495,7 @@ local function gameOver()--Save record
|
||||
D.date=os.date("%Y/%m/%d %H:%M")
|
||||
ins(L,p+1,D)
|
||||
if L[11]then L[11]=nil end
|
||||
FILE.save(L,M.name,"",true)
|
||||
FILE.save(L,M.name,"l")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,7 +11,7 @@ local function tick_httpREQ_newLogin(task)
|
||||
LOG.print(text.loginSuccessed)
|
||||
ACCOUNT.email=res.email
|
||||
ACCOUNT.auth_token=res.auth_token
|
||||
FILE.save(ACCOUNT,"account","")
|
||||
FILE.save(ACCOUNT,"account","q")
|
||||
|
||||
httpRequest(
|
||||
TICK.httpREQ_getAccessToken,
|
||||
|
||||
@@ -10,7 +10,7 @@ function Tick.httpREQ_getAccessToken(task)
|
||||
if res then
|
||||
LOG.print(text.accessSuccessed)
|
||||
ACCOUNT.access_token=res.access_token
|
||||
FILE.save(ACCOUNT,"account","")
|
||||
FILE.save(ACCOUNT,"account")
|
||||
SCN.swapTo("netgame")
|
||||
else
|
||||
LOG.print(text.netErrorCode..response.code..": "..res.message,"warn")
|
||||
|
||||
Reference in New Issue
Block a user