From 8548033f82a56ca44f99596701b01818d16701d2 Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 4 May 2023 14:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/first/first.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/first/first.lua b/lua/app/first/first.lua index 52f491a5..60e68266 100644 --- a/lua/app/first/first.lua +++ b/lua/app/first/first.lua @@ -351,10 +351,10 @@ function First:requestAddress(callback, times, totalTimes) platform = "iOS" end loginCenterUrl = loginCenterUrl .. "?platform=" .. CS.System.Uri.EscapeDataString(platform) - -- lua这边直接构建好参数 for k, v in pairs(args) do loginCenterUrl = loginCenterUrl .. "&" .. k .. "=" .. CS.System.Uri.EscapeDataString(v) end + -- 最后增加一个随机参数规避网络缓存的问题,保证每次都是新的请求 local guid = CS.BF.BFMain.Instance.SDKMgr.BFLoginSDKMgr:GetNewPlayerGuid() loginCenterUrl = loginCenterUrl .. "&random=" .. CS.System.Uri.EscapeDataString(guid) CS.BF.BFMain.Instance.SDKMgr.BFLoginSDKMgr:GetWithURL(loginCenterUrl, function (req, rsp)