联网api略微调整,http请求处理规范化
This commit is contained in:
@@ -817,7 +817,7 @@ function TICK_httpREQ_getAccessToken(task)
|
||||
if response then
|
||||
if response.code==200 then
|
||||
local res=json.decode(response.body)
|
||||
if res then
|
||||
if res.message=="OK"then
|
||||
LOG.print(text.accessSuccessed)
|
||||
USER.access_token=res.access_token
|
||||
FILE.save(USER,"conf/user")
|
||||
|
||||
Reference in New Issue
Block a user