private void SureAccountUpgrade(GameObject go)
    {
        if (passwordinput.text.Length == 0 || accountinput.text.Length == 0)
        {
            PopItem item = UIManager.AddItem <PopItem>("PopItem", UIManager.PopPanelRoot);
            item.SetTips("输入不能为空");
            return;
        }
        if (passwordinput.text.Length > DataManager.Instance.PlayerPassWordMaxLength || passwordinput.text.Length < DataManager.Instance.PlayerPassWordMinLength)
        {
            PopItem item = UIManager.AddItem <PopItem>("PopItem", UIManager.PopPanelRoot);
            item.SetTips("输入长度不符合");
            return;
        }
        if (accountinput.text.Length != 11)
        {
            PopItem item = UIManager.AddItem <PopItem>("PopItem", UIManager.PopPanelRoot);
            item.SetTips("输入手机号不符合");
            return;
        }
        AccountUpgradeReq req = new AccountUpgradeReq();

        req.phonenumber = accountinput.text;
        req.password    = utils.GenMd5(passwordinput.text);
        TcpNet.Instance.send_proto_msg_to_client((int)Stype.Auth, (int)Cmd.eAccountUpgradeReq, req);
    }
Beispiel #2
0
    public void do_account_upgrade(string uname, string upwd_md5)
    {
        AccountUpgradeReq req = new AccountUpgradeReq();

        req.uname   = uname;
        req.upwdmd5 = upwd_md5;
        network.Instance.send_protobuf_cmd((int)Stype.Auth, (int)Cmd.eAccountUpgradeReq, req);
    }
Beispiel #3
0
    public void DoAccountUpgrade(string uname, string upwd_md5)
    {
        AccountUpgradeReq req = new AccountUpgradeReq();

        req.uname    = uname;
        req.upwd_md5 = upwd_md5;
        network.Instance.SendProtobufCmd((int)Stype.Auth, (int)Cmd
                                         .eAccountUpgradeReq, req);
    }
Beispiel #4
0
        /// <summary>
        /// 正式注册
        /// </summary>
        /// <param name="uName"></param>
        /// <param name="upwdMd5"></param>
        public void UpgradeGuest(string uName, string upwdMd5)
        {
            Debug.Log("尝试注册");
            var req = new AccountUpgradeReq
            {
                uname    = uName,
                upwd_md5 = upwdMd5,
            };

            NetworkMgr.Instance.SendProtobufCmd(
                (int)ServiceType.Auth,
                (int)LoginCmd.eAccountUpgradeReq,
                req);
        }