public void ClickRateOpenUrl(IUIObject obj) { ITEM_RATE_OPENURL_DATA itemRateOpenUrl = BASE_RATE_OPENURL_DATA.GetItemRateOpenUrl(); NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnRateOpenUrl(itemRateOpenUrl.strUrl); }
public void GoMainCafe(IUIObject obj) { if (TsPlatform.IsMobile && !TsPlatform.IsEditor) { NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnMainCafe(); } }
public void GoFaceBook(IUIObject obj) { if (TsPlatform.IsMobile && !TsPlatform.IsEditor) { NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnFaceBook(); } }
public void SetOTP(string OTP, string strCharName) { string text = string.Empty; if (TsPlatform.IsAndroid) { text = TsPlatform.APP_VERSION_AND; } else if (TsPlatform.IsIPhone) { text = TsPlatform.APP_VERSION_IOS; } this.m_strOTP = OTP; byte viewType = this.m_ViewType; if (viewType != 0) { if (viewType == 1) { if (TsPlatform.IsAndroid) { text = TsPlatform.APP_VERSION_AND; } else if (TsPlatform.IsIPhone) { text = TsPlatform.APP_VERSION_IOS; } NrTSingleton <NkClientLogic> .Instance.RequestOTPAuthKey(eOTPRequestType.OTPREQ_HELPQUESTION); string stringToEscape = string.Format("{0}://{1}/customer/auth.aspx?otp={2}&GameVer={3}&HpType={4}&HpOS={5}&CharacterName={6}&image=Y", new object[] { (!NrTSingleton <NrGlobalReference> .Instance.IsLocalServiceArea()) ? "https" : "http", NrGlobalReference.strWebPageDomain, this.m_strOTP, text, SystemInfo.deviceModel, (!TsPlatform.IsIPhone) ? SystemInfo.operatingSystem : string.Empty, strCharName }); Application.OpenURL(Uri.EscapeUriString(stringToEscape)); } } else { NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnGameQuestion(this.m_strOTP, strCharName); } }
public void OnClickMineGuideWebCall(IUIObject obj) { if (TsPlatform.IsMobile && !TsPlatform.IsEditor) { NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); string weCallURL = TableData_GameWebCallURLInfo.GetWeCallURL(eGameWebCallURL.WEBCALL_MINE); if (weCallURL != string.Empty) { nrMobileNoticeWeb.OnMineGuideWebCall(weCallURL); } else { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("727"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); } } }
public void CheckEventData(string Key) { if (this.mapFun.ContainsKey(Key)) { this.mapFun[Key](); } else if (Key.Contains("notice")) { string[] array = Key.Split(new char[] { '_' }); if (array.Length > 0 && !string.IsNullOrEmpty(array[1])) { NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnNoticeEvent(array[1]); } } }
public void OnClickPolicy(IUIObject obj) { NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnPolicyView(); }
private void ProcessOTPReady(eOTPRequestType eReqType) { if (this.szOTPAuthKey[(int)eReqType].Length > 0) { switch (eReqType) { case eOTPRequestType.OTPREQ_USERAUTH: { bool flag = false; NrWebViewObject gameObject = NrWebViewObject.GetGameObject(); if (!gameObject.FirstNoticeOpen || gameObject.MainmenuNoticeOpen) { flag = true; } if (flag) { string strCharName = string.Empty; NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { strCharName = @char.GetCharName(); } NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnGameNotice(this.szOTPAuthKey[0], strCharName); } gameObject.FirstNoticeOpen = true; gameObject.MainmenuNoticeOpen = false; break; } case eOTPRequestType.OTPREQ_CHARPORTRAIT: { NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (char2 != null) { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); NkSoldierInfo leaderSoldierInfo = charPersonInfo.GetLeaderSoldierInfo(); string arg = string.Empty; if (charPersonInfo != null && leaderSoldierInfo != null) { arg = this.GetProcessLeaderHero(leaderSoldierInfo.GetCharKind()); } string url = string.Format("http://{0}/mobilephoto/user.aspx?otp={1}&type={2}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[1], arg); Application.OpenURL(url); } break; } case eOTPRequestType.OTPREQ_GUILDMARK: if (0L < NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { string url2 = string.Format("http://{0}/mobilephoto/guild.aspx?otp={1}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[2]); Application.OpenURL(url2); } break; case eOTPRequestType.OTPREQ_EMAIL: { string text = string.Format("http://{0}/member/member_confirm1.aspx?OTP={1}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[3]); NrMobileNoticeWeb nrMobileNoticeWeb2 = new NrMobileNoticeWeb(); nrMobileNoticeWeb2.OpenWebURL(text); TsLog.LogOnlyEditor("!!!!!!!!!!!!!!!! OTPREQ_EMAIL :{0}" + text); break; } case eOTPRequestType.OTPREQ_HP_AUTH: { string url3 = string.Format("http://{0}/mobileAuth/auth.aspx?otp={1}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[4]); Application.OpenURL(url3); NrTSingleton <NrMainSystem> .Instance.QuitGame(false); break; } case eOTPRequestType.OTPREQ_GUESTID: { string url4 = string.Empty; if (TsPlatform.IsAndroid) { url4 = string.Format("http://{0}/member/AuthPlatformSync_auth.aspx?OTP={1}&platform=android", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[5]); } else { url4 = string.Format("http://{0}/member/AuthPlatformSync_auth.aspx?OTP={1}&platform=ios", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[5]); } NrMobileNoticeWeb nrMobileNoticeWeb3 = new NrMobileNoticeWeb(); nrMobileNoticeWeb3.OpenWebURL(url4); break; } case eOTPRequestType.OTPREQ_HELPQUESTION: { NrMobileNoticeWeb nrMobileNoticeWeb4 = new NrMobileNoticeWeb(); nrMobileNoticeWeb4.OnGameQuestion(this.szOTPAuthKey[6], string.Empty); break; } case eOTPRequestType.OTPREQ_UNREGISTER: { NrMobileNoticeWeb nrMobileNoticeWeb5 = new NrMobileNoticeWeb(); nrMobileNoticeWeb5.OnGameUnregister(this.szOTPAuthKey[7]); break; } } this.szOTPAuthKey[(int)eReqType] = string.Empty; } }