联网api略微调整,http请求处理规范化

This commit is contained in:
MrZ626
2021-01-29 00:45:35 +08:00
parent 8d3910b7a0
commit c8f4faaa95
6 changed files with 35 additions and 15 deletions

View File

@@ -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")