public bool OnGetPhoneVerificationNum(UInt64 PhoneNum)//获取手机验证码 { //if (!FishConfig.Instance.m_ErrorString.CheckStringIsError(FishDataInfo.MIN_PHONE_LENGTH, FishDataInfo.MAX_PHONE_LENGTH, PhoneNum, StringCheckType.SCT_Normal)) //{ // tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Operate_GetPhoneVerificationNum_Failed_1); // MsgEventHandle.HandleMsg(pUOM); // return false; //} if (PlayerRole.Instance.EntityManager.GetRoleEntityInfo().Phone != 0 && PlayerRole.Instance.EntityManager.GetRoleEntityInfo().Phone != PhoneNum) { return(false); } if (!FishDataInfo.IsCanUsePhone(PhoneNum)) { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Operate_GetPhoneVerificationNum_Failed_1); MsgEventHandle.HandleMsg(pUOM); return(false); } CL_Cmd_GetPhoneVerificationNum ncb = new CL_Cmd_GetPhoneVerificationNum(); ncb.SetCmdType(NetCmdType.CMD_CL_GetPhoneVerificationNum); ncb.PhoneNumber = PhoneNum; NetServices.Instance.Send <CL_Cmd_GetPhoneVerificationNum>(ncb); GlobalLogon.Instance.AccountData.SaveAccountData(); GlobalLogon.Instance.AccountData.TempPhoneInfo.PhoneNumber = PhoneNum; return(true); }
public bool CheckIsCanPhonePay() { if (FishDataInfo.IsCanUsePhone(RoleEntityInfo.EntityItemUsePhone)) { return(true); } else { return(false); } }
//public void AccountmgrBtnPos() //{ //} void SetBindBtn() { if (PlayerRole.Instance.EntityManager.GetRoleEntityInfo() == null) { return; } tagRoleAddressInfo pInfo = PlayerRole.Instance.EntityManager.GetRoleEntityInfo(); bool bBind = FishDataInfo.IsCanUsePhone(pInfo.Phone); m_AccountMgrTrans[1].gameObject.SetActive(!bBind); m_AccountMgrTrans[2].gameObject.SetActive(bBind); }
public bool CheckEntityInfoIsCanUser() { if (FishDataInfo.IsCanUsePhone(RoleEntityInfo.EntityItemUsePhone) && RoleEntityInfo.EntityItemUseName != "" && RoleEntityInfo.IdentityID != "" && RoleEntityInfo.EntityItemUseAddres != "") { return(true); } else { return(false); } }
private bool SendChangeRoleEntityItemUsePhone(UInt64 Phone) { //if (!FishConfig.Instance.m_ErrorString.CheckStringIsError(FishDataInfo.MIN_PHONE_LENGTH, FishDataInfo.MAX_PHONE_LENGTH, Phone, StringCheckType.SCT_Normal)) //{ // tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Entity_EntityItemUsePhone_Failed_1); // MsgEventHandle.HandleMsg(pUOM); // return false; //} if (!FishDataInfo.IsCanUsePhone(Phone)) { tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Entity_EntityItemUsePhone_Failed_1); MsgEventHandle.HandleMsg(pUOM); return(false); } CL_Cmd_ChagneRoleEntityItemUsePhone ncb = new CL_Cmd_ChagneRoleEntityItemUsePhone(); ncb.SetCmdType(NetCmdType.CMD_CL_ChagneRoleEntityItemUsePhone); ncb.EntityItemUsePhone = Phone; NetServices.Instance.Send <CL_Cmd_ChagneRoleEntityItemUsePhone>(ncb); return(true); }