public void ProcessWebUrl(UWebUrlData webUrlData) { LogicDataCenter.gamePromotionDataManager.WebUrl[(GameWebUrl)webUrlData.nNavID] = webUrlData.szWebUrl; switch (webUrlData.nNavID) { case (int)GameWebUrl.SHARE_PERSONAL_LINK: { (m_subFrameViewList[(int)GamePromotionButtonType.BTN_TAITANSAYSAY] as TaiTanSaySayFrame).privateLinkText.text = webUrlData.szWebUrl + GameLogicAPI.getPlayerUserID(EntityFactory.MainHeroID); } break; case (int)GameWebUrl.WEB_INTERFACE_LINK: { if (gameObject.activeInHierarchy) { StartCoroutine(LogicDataCenter.gamePromotionDataManager.GetInfoAndUserList()); } } break; case (int)GameWebUrl.QRCODE_LINK: { if (gameObject.activeInHierarchy) { StartCoroutine(LogicDataCenter.gamePromotionDataManager.BuildRecommendQRCode()); } } break; default: break; } }
public void RedirectWeb(UWebUrlData webUrlData) { if (webUrlData.nNavID < 0 || webUrlData.nNavID != m_curNavID) { return; } foreach (UISubFrameView item in m_subFrameViewList) { if (item.GetButtonType() == GamePromotionButtonType.BTN_WEBLINK) { (item as PromotionWebFrame).Redirection(webUrlData.szWebUrl); } } }