修改之前场景名打错,准备好获取房间列表的api

This commit is contained in:
MrZ626
2020-12-27 21:49:33 +08:00
parent e6221b5f42
commit b769d1b1d5
9 changed files with 9 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ local function tick_httpREQ_checkAccessToken(task)
if response then
if response.code==200 then
LOG.print(text.accessSuccessed)
SCN.go("net_menumenu")
SCN.go("net_menu")
elseif response.code==403 or response.code==401 then
httpRequest(
TICK.httpREQ_getAccessToken,

View File

@@ -6,7 +6,7 @@ end
scene.widgetList={
WIDGET.newButton{name="ffa", x=640, y=200,w=350,h=120,font=40,code=NULL},
WIDGET.newButton{name="rooms", x=640, y=360,w=350,h=120,font=40,code=WIDGET.lnk_goScene("net_menurooms")},
WIDGET.newButton{name="rooms", x=640, y=360,w=350,h=120,font=40,code=WIDGET.lnk_goScene("net_rooms")},
WIDGET.newButton{name="chat", x=640, y=540,w=350,h=120,font=40,code=WIDGET.lnk_goScene("chat")},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,font=40,code=WIDGET.lnk_BACK},
}

View File

@@ -37,7 +37,7 @@ local function fresh()
rooms=nil
httpRequest(
task_fetchRooms,
PATH.api..PATH.access,
PATH.api..PATH.rooms,
"GET"
)
end