diff --git a/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua b/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua index 43cb6b9d3..b60342732 100644 --- a/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua +++ b/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua @@ -38,7 +38,7 @@ function SettingInfo:InitComponent(gameObject) this.btnCustomerService = Util.GetGameObject(gameObject, "btn/customerService")--客服中心 this.btnRelation = Util.GetGameObject(gameObject, "btn/relation")--账号关联 this.btnAccountCancellation = Util.GetGameObject(gameObject, "btn/accountCancellation")--账号注销 - -- this.submit = Util.GetGameObject(gameObject, "btn/submit")--上报战斗日志 + this.submit = Util.GetGameObject(gameObject, "btn/discord")--社交软件 this.bind = Util.GetGameObject(gameObject, "btn/bind")--绑定 this.community = Util.GetGameObject(gameObject, "btn/community")--社区 @@ -116,19 +116,19 @@ function SettingInfo:BindEvent() end) --账户关联 Util.AddClick(this.btnRelation,function() - UIManager.OpenPanel(UIName.GeneralPopup, GENERAL_POPUP_TYPE.Binding) + if AppConst.isSDKLogin then + SDKMgr:Relation("") + end end) --账号注销 Util.AddClick(this.btnAccountCancellation,function() - UIManager.OpenPanel(UIName.GeneralPopup, GENERAL_POPUP_TYPE.Reconfirm, GetLanguageStrById(50238), GetLanguageStrById(50246), function () - if AppConst.isSDKLogin then - SDKMgr:Cancellation() - end - end) + if AppConst.isSDKLogin then + SDKMgr:Cancellation() + end + end) + Util.AddOnceClick(this.submit, function() + UnityEngine.Application.OpenURL("https://discord.gg/nKzCEgkzZp") end) - -- Util.AddOnceClick(this.submit, function() - -- BattleRecordManager.SubmitBattleRecord() - -- end) --兑换码 Util.AddClick(this.btnCdKey, function()