update APIs

This commit is contained in:
Particle_G
2021-02-06 15:50:00 +08:00
committed by MrZ626
parent d86eb59963
commit 5b718e3f8c
7 changed files with 22 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ local function tick_httpREQ_manualAutoLogin(task)
elseif response.code==403 or response.code==401 then
httpRequest(
TICK_httpREQ_getAccessToken,
PATH.api..PATH.access,
PATH.http..PATH.access,
"POST",
{["Content-Type"]="application/json"},
json.encode{
@@ -112,7 +112,7 @@ scene.widgetList={
if USER.access_token then
httpRequest(
tick_httpREQ_manualAutoLogin,
PATH.api..PATH.access,
PATH.http..PATH.access,
"GET",
{["Content-Type"]="application/json"},
json.encode{
@@ -123,7 +123,7 @@ scene.widgetList={
else
httpRequest(
TICK_httpREQ_getAccessToken,
PATH.api..PATH.access,
PATH.http..PATH.access,
"POST",
{["Content-Type"]="application/json"},
json.encode{