function GetServerIpByHttp()
local http = require("socket.http")
local url = ""
local c = http.request(url )
if nil ~= c then
_G.ServerIP = c
else
local message = "获取失败"
end
end
function GetServerIpByHttp()
local http = require("socket.http")
local url = ""
local c = http.request(url )
if nil ~= c then
_G.ServerIP = c
else
local message = "获取失败"
end
end
本文标题:一、Unity3D+LuaSocket,HTTP请求
本文链接:https://www.haomeiwen.com/subject/bfuzdqtx.html
网友评论