change server ip
This commit is contained in:
@@ -169,7 +169,7 @@ do--httpRequest
|
|||||||
client and function(tick,path,method,header,body)
|
client and function(tick,path,method,header,body)
|
||||||
local task,err=client.httpraw{
|
local task,err=client.httpraw{
|
||||||
-- url="http://47.103.200.40/"..path,
|
-- url="http://47.103.200.40/"..path,
|
||||||
url="http://127.0.0.1:10026"..path,
|
url="http://krakens.tpddns.cn:10026"..path,
|
||||||
method=method or"GET",
|
method=method or"GET",
|
||||||
header=header,
|
header=header,
|
||||||
body=body,
|
body=body,
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ function Tick.httpREQ_login(data)
|
|||||||
if success then
|
if success then
|
||||||
LOG.print(text.loginSuccessed..": "..content.message)
|
LOG.print(text.loginSuccessed..": "..content.message)
|
||||||
-- TODO: save {content.token} to storage and a global variable
|
-- TODO: save {content.token} to storage and a global variable
|
||||||
-- TODO: save {content.user_id} to a global variable
|
-- TODO: save {content.id} to a global variable
|
||||||
else
|
else
|
||||||
LOG.print(text.jsonError,"warn")
|
LOG.print(text.jsonError,"warn")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user