/// <summary> /// 点击确认按钮 /// </summary> public void OkBtn() { RealNameApprovePanelData rnapd = GameData.Instance.RealNameApprovePanelData; SystemMgr.Instance.AudioSystem.PlayAuto(AudioSystem.AudioType.VIEW_CLOSE); anhui.MahjongCommonMethod mcm = anhui.MahjongCommonMethod.Instance; if (names.text.Length <= 1) { mcm.ShowRemindFrame("名字输入错误,请重新输入"); return; } else { names.text = rnapd.Filter(names.text); } if (IdCard.text.Length != 18) { mcm.ShowRemindFrame("身份证号长度错误,请检查后重新输入"); return; } Regex regex = new Regex(@"^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$"); if (!regex.IsMatch(IdCard.text) || System.Convert.ToInt64(IdCard.text) == 111111111111111111) { mcm.ShowRemindFrame("身份证号输入规范错误,请检查后重新输入"); return; } Messenger_anhui <string, string> .Broadcast(MESSAGE_OK, names.text, IdCard.text); }
/// <summary> /// 检查屏蔽字 /// </summary> public void CheckFOrbid() { RealNameApprovePanelData rnapd = GameData.Instance.RealNameApprovePanelData; names.text = rnapd.Filter(names.text); }