美文网首页
一、Unity3D+LuaSocket,HTTP请求

一、Unity3D+LuaSocket,HTTP请求

作者: e29290bad2f3 | 来源:发表于2019-01-19 17:44 被阅读11次
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