一、Unity3D+LuaSocket,HTTP请求

2019-01-19  本文已影响11人  e29290bad2f3
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

上一篇 下一篇

猜你喜欢

热点阅读