From 03898aae5f6689da228784096a084efefa651775 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RH64908\\Administrator" Date: Wed, 11 Jun 2025 18:55:58 +0800 Subject: [PATCH] 1 --- .../Modules/Battle/View/Unit/EnemyView.lua | 1 - .../ThinkingAnalyticsManager.lua | 44 +++++++++---------- .../Modules/Fight/FightPointPassMainPanel.lua | 16 +++---- .../~Lua/Modules/Guide/GuideManager.lua | 1 + .../~Lua/Modules/Login/LoginPanel.lua | 2 +- .../~Lua/Modules/Login/ServerListItem.lua | 11 +++-- .../Modules/Login/ServerListSelectPanel.lua | 12 ++++- .../~Lua/Modules/Popup/CreateNamePopup.lua | 4 +- 8 files changed, 52 insertions(+), 39 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua index 20594a0178..d3fe0a6b9f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua @@ -42,7 +42,6 @@ function EnemyView:onCreate(go, role, position, root, isBoss, enemyId) local roleId = role.roleData.roleId self.roleId = roleId local live = HeroConfig[role.roleData.roleId].Live - LogError("roleid=========================" .. roleId) -- 判断是否有皮肤 if not role.roleData.skinId or role.roleData.skinId == 0 then self.skinId = 0 diff --git a/Assets/ManagedResources/~Lua/Modules/DataCenterService/ThinkingAnalyticsManager.lua b/Assets/ManagedResources/~Lua/Modules/DataCenterService/ThinkingAnalyticsManager.lua index 8882326f84..470af153cd 100644 --- a/Assets/ManagedResources/~Lua/Modules/DataCenterService/ThinkingAnalyticsManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/DataCenterService/ThinkingAnalyticsManager.lua @@ -49,7 +49,7 @@ end -- 校对时间 function this.CalibrateTime(time) if AppConst.isSDK then - App.TAMgr:CalibrateTime(time*1000) + --App.TAMgr:CalibrateTime(time*1000) end end @@ -57,26 +57,26 @@ end -- 设置访客Id function this.SetDistinctId(distinctId) if AppConst.isSDK then - App.TAMgr:SetDistinctId(distinctId) + --App.TAMgr:SetDistinctId(distinctId) end end -- 获取访客Id function this.GetDistinctId() if AppConst.isSDK then - return App.TAMgr:GetDistinctId() + --return App.TAMgr:GetDistinctId() end return "" end -- 获取设备Id function this.GetDeviceId() if AppConst.isSDK then - if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.ThinkAnalysis_GetDeviceID) - or ServerConfigManager.GetSDKVersionCode() >= 24 - then - return App.TAMgr:GetDeviceId() - end - return AndroidDeviceInfo.Instance:GetDeviceID() + --if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.ThinkAnalysis_GetDeviceID) + --or ServerConfigManager.GetSDKVersionCode() >= 24 + --then + --return App.TAMgr:GetDeviceId() + --end + --return AndroidDeviceInfo.Instance:GetDeviceID() end return "" end @@ -85,13 +85,13 @@ end -- 登录 function this.Login(accountId) if AppConst.isSDK then - App.TAMgr:Login(accountId) + --App.TAMgr:Login(accountId) end end -- 登出 function this.Logout() if AppConst.isSDK then - App.TAMgr:Logout() + --App.TAMgr:Logout() end end @@ -99,30 +99,30 @@ end local _SuperPropertise = {} function this.SetSuperProperties(data) if AppConst.isSDK then - for key, value in pairs(data) do - _SuperPropertise[key] = value - end + --for key, value in pairs(data) do + --_SuperPropertise[key] = value + --end - local sData = _DicToStr(_SuperPropertise) - Log("打点静态数据:"..sData) - App.TAMgr:SetSuperProperties(sData) + --local sData = _DicToStr(_SuperPropertise) + --Log("打点静态数据:"..sData) + --App.TAMgr:SetSuperProperties(sData) end end -- 清除静态数据 function this.ClearSuperProperties() if AppConst.isSDK then _SuperPropertise = {} - App.TAMgr:ClearSuperProperties() + --App.TAMgr:ClearSuperProperties() end end -- 打点事件 function this.Track(event, data) if AppConst.isSDK then - Log("打点事件:"..event) - local dStr = data and _DicToStr(data) or "" - Log("打点数据:"..dStr) - App.TAMgr:Track(event, dStr) + --Log("打点事件:"..event) + --local dStr = data and _DicToStr(data) or "" + --Log("打点数据:"..dStr) + --App.TAMgr:Track(event, dStr) end end diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 77c03c36ab..48a66a16b2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -274,7 +274,7 @@ function FightPointPassMainPanel:InitComponent() this.battleUpLvTip = Util.GetGameObject(self.gameObject, "Bg/btnDown/battleUpLvTip") this.battleUpLvTipImg = this.battleUpLvTip:GetComponent("Image") this.battleUpLvTipTxt = Util.GetGameObject(self.gameObject, "Bg/btnDown/battleUpLvTip/Text"):GetComponent("Text") - this.battleLockGo = Util.GetGameObject(self.gameObject, "Bg/btnDown/battleUpLvTip/Image") + --this.battleLockGo = Util.GetGameObject(self.gameObject, "Bg/btnDown/battleUpLvTip/Image") --山河社稷图OpenPanel this.btnFightLevel = Util.GetGameObject(self.gameObject, "Bg/LeftUp/box/btnFightLevel") this.btnFightLevel:SetActive(false) @@ -1315,7 +1315,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(false) this.battleUpLvTipImg.enabled = false this.battleUpLvTipTxt.gameObject:SetActive(false) - this.battleLockGo:SetActive(false) + --this.battleLockGo:SetActive(false) -- 么解锁章节不显示 if not FightPointPassManager.IsChapterClossState() then return @@ -1330,7 +1330,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(true) this.battleUpLvTipImg.enabled = true this.battleUpLvTipTxt.gameObject:SetActive(true) - this.battleLockGo:SetActive(false) + --this.battleLockGo:SetActive(false) this.battleUpLvTipTxt.text = Language[10610] return @@ -1357,7 +1357,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(true) this.battleUpLvTipImg.enabled = false this.battleUpLvTipTxt.gameObject:SetActive(false) - this.battleLockGo:SetActive(true) + --this.battleLockGo:SetActive(true) Util.AddOnceClick(this.battleUpLvTip, function() JumpManager.GoJump(36023) end) @@ -1366,7 +1366,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(true) this.battleUpLvTipImg.enabled = false this.battleUpLvTipTxt.gameObject:SetActive(false) - this.battleLockGo:SetActive(true) + --this.battleLockGo:SetActive(true) Util.AddOnceClick(this.battleUpLvTip, function() JumpManager.GoJump(1011) end) @@ -1375,7 +1375,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(true) this.battleUpLvTipImg.enabled = false this.battleUpLvTipTxt.gameObject:SetActive(false) - this.battleLockGo:SetActive(true) + --this.battleLockGo:SetActive(true) Util.AddOnceClick(this.battleUpLvTip, function() JumpManager.GoJump(1007) end) @@ -1384,7 +1384,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(true) this.battleUpLvTipImg.enabled = false this.battleUpLvTipTxt.gameObject:SetActive(false) - this.battleLockGo:SetActive(true) + --this.battleLockGo:SetActive(true) Util.AddOnceClick(this.battleUpLvTip, function() JumpManager.GoJump(40033) end) @@ -1393,7 +1393,7 @@ function this.RefreshBattleUpLvTip(isShowUIOpen) this.battleUpLvTip:SetActive(true) this.battleUpLvTipImg.enabled = false this.battleUpLvTipTxt.gameObject:SetActive(false) - this.battleLockGo:SetActive(true) + --this.battleLockGo:SetActive(true) Util.AddOnceClick(this.battleUpLvTip, function() JumpManager.GoJump(22001) end) diff --git a/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua b/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua index 95252cda12..8546c71392 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guide/GuideManager.lua @@ -281,6 +281,7 @@ function this.CheckNextGuideListen(nextId) end function this.ShowGuide(id, ...) + LogError("执行引导:"..tostring(id)) -- 引导数据打点 DataCenterManager.CommitClickStatus(Language[10832], tostring(id)) ThinkingAnalyticsManager.Track("guild", { diff --git a/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua b/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua index 09d6e43d3e..99c21124c4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Login/LoginPanel.lua @@ -220,7 +220,7 @@ function this:BindEvent() OpenWeb("http://smi.648sy.com/about/share") end) Util.AddClick(this.btn_beian, function() - OpenWeb("https://beian.miit.gov.cn/#/Integrated/recordQuery") + OpenWeb("https://beian.miit.gov.cn/#/Integrated/index") end) Util.AddClick(this.ConfirmBtn, function() local confirm = PlayerPrefs.GetInt("IHaveConfirmProtos") diff --git a/Assets/ManagedResources/~Lua/Modules/Login/ServerListItem.lua b/Assets/ManagedResources/~Lua/Modules/Login/ServerListItem.lua index d850de0170..81c834acc3 100644 --- a/Assets/ManagedResources/~Lua/Modules/Login/ServerListItem.lua +++ b/Assets/ManagedResources/~Lua/Modules/Login/ServerListItem.lua @@ -31,9 +31,14 @@ function ServerListItem:SetValue(serverInfo, flag) self.serverName.text = serverInfo.name self.tipsBg.gameObject:SetActive(not not flag) self.newServerFlag:SetActive(serverInfo.isnew == 1) - self.serverArea.text = tonumber(string.sub(serverInfo.server_id, 0, -5)) .. Language[11138] + if string.find(serverInfo.name, "主播") then + self.serverArea.text = "" + else + self.serverArea.text = tonumber(string.sub(serverInfo.server_id, 0, -5)) .. Language[11138] + end + if not ServerStateIconDef[serverInfo.state] then - LogError(serverInfo.server_id.." serverInfo.state:"..serverInfo.state) + LogError(serverInfo.server_id .. " serverInfo.state:" .. serverInfo.state) self.serverState.sprite = self.root.spLoader:LoadSprite(ServerStateIconDef[1]) else self.serverState.sprite = self.root.spLoader:LoadSprite(ServerStateIconDef[serverInfo.state]) @@ -44,4 +49,4 @@ function ServerListItem:SetVisible(flag) self.cloneObj:SetActive(flag) end -return ServerListItem \ No newline at end of file +return ServerListItem diff --git a/Assets/ManagedResources/~Lua/Modules/Login/ServerListSelectPanel.lua b/Assets/ManagedResources/~Lua/Modules/Login/ServerListSelectPanel.lua index c711c2b8de..78deab3e1c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Login/ServerListSelectPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Login/ServerListSelectPanel.lua @@ -99,7 +99,11 @@ function ServerListSelectPanel:SetServerNew() end self.newServerPart.serverItem:SetActive(not not self.context.recommend) if self.serverInfoNew then - self.newServerPart.areaBelong.text = tonumber(string.sub(self.serverInfoNew.server_id, 0, -5)) .. Language[11138] + if string.find( self.serverInfoNew.name, "主播") then + self.newServerPart.areaBelong.text = "" + else + self.newServerPart.areaBelong.text = tonumber(string.sub(self.serverInfoNew.server_id, 0, -5)) .. Language[11138] + end self.newServerPart.serverName.text = self.serverInfoNew.name self.newServerPart.serverState.sprite = self.spLoader:LoadSprite(ServerStateIconDef[self.serverInfoNew.state]) self.newServerPart.newServerFlag:SetActive(self.serverInfoNew.isnew == 1) @@ -115,7 +119,11 @@ function ServerListSelectPanel:SetServerRecent() if self.context.lastServer then local serverInfo = self:GetServerInfo(self.context.lastServer.serverid) if serverInfo then - self.recentLoginPart.areaBelong.text = tonumber(string.sub(self.context.lastServer.serverid, 0, -5)) .. Language[11138] + if string.find( serverInfo.name, "主播") then + self.recentLoginPart.areaBelong.text = "" + else + self.recentLoginPart.areaBelong.text = tonumber(string.sub(self.context.lastServer.serverid, 0, -5)) .. Language[11138] + end self.recentLoginPart.serverName.text = serverInfo.name self.recentLoginPart.serverState.sprite = self.spLoader:LoadSprite(ServerStateIconDef[serverInfo.state]) self.recentLoginPart.playerName.text = self.context.lastServer.name .. "\t" .. self.context.lastServer.level .. Language[10065] diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua index 2fe05085f1..57e7532979 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua @@ -55,8 +55,8 @@ function CreateNamePopup:InitComponent() -- 性别区分 this.roleLive = Util.GetGameObject(self.gameObject, "roleHill/roleLIve") this.roleStand = Util.GetGameObject(self.gameObject, "roleStand") - -- this.boyLive = Util.GetGameObject(self.gameObject, "roleStand/boy") - -- this.girlLive = Util.GetGameObject(self.gameObject, "roleStand/girl") + this.boyLive = Util.GetGameObject(self.gameObject, "roleStand/boy") + this.girlLive = Util.GetGameObject(self.gameObject, "roleStand/girl") this.Shadow = Util.GetGameObject(self.gameObject, "roleStand"):GetComponent("Image") this.Text = Util.GetGameObject(self.gameObject, "content"):GetComponent("Image")