Beispiel #1
0
 public ResponseData Excute(IMEIInfo data)
 {
     string[] userList = SnsManager.GetRegPassport(data.IMEI);
     return(new PassportInfo()
     {
         PassportId = userList[0], Password = userList[1]
     });
 }
Beispiel #2
0
 public ResponseData Excute(IMEIInfo data)
 {
     if (string.IsNullOrEmpty(data.IMEI))
     {
         throw new HandlerException(StateCode.Error, StateDescription.IMEINullError);
     }
     string[] userList = SnsManager.GetRegPassport(data.IMEI, data.IsNew, EncodePassword);
     return(new PassportInfo()
     {
         PassportId = userList[0], Password = userList[1]
     });
 }
Beispiel #3
0
 public override bool TakeAction()
 {
     try
     {
         string[] userList = SnsManager.GetRegPassport(deviceID);
         passport = userList[0];
         password = CryptoHelper.DES_Decrypt(userList[1], GameEnvironment.ProductDesEnKey);
         return(true);
     }
     catch (Exception ex)
     {
         this.SaveLog(ex);
         this.ErrorCode = LanguageManager.GetLang().ErrorCode;
         this.ErrorInfo = LanguageManager.GetLang().St1002_GetRegisterPassportIDError;
         return(false);
     }
 }
Beispiel #4
0
 public override bool TakeAction()
 {
     try
     {
         string[] userList = SnsManager.GetRegPassport(deviceID);
         passport = userList[0];
         password = userList[1];
         return(true);
     }
     catch (Exception ex)
     {
         this.SaveLog(ex);
         this.ErrorCode = Language.Instance.ErrorCode;
         this.ErrorInfo = Language.Instance.St1002_GetRegisterPassportIDError;
         return(false);
     }
 }
Beispiel #5
0
        /// <summary>
        /// 业务逻辑处理
        /// </summary>
        /// <returns>false:中断后面的方式执行并返回Error</returns>
        public override bool TakeAction()
        {
            try
            {
                Console.WriteLine("_deviceID:" + _deviceID);
                string[] userList = SnsManager.GetRegPassport(_deviceID);
                _passportID = userList[0];
                _password   = userList[1];
                return(true);
            }
            catch (Exception ex)
            {
                this.SaveLog(ex);

                return(false);
            }
        }
Beispiel #6
0
 /// <summary>
 /// 业务逻辑处理
 /// </summary>
 /// <returns>false:中断后面的方式执行并返回Error</returns>
 public override bool TakeAction()
 {
     responsePack = new ResponseRegister1002Pack();
     try
     {
         string[] userList = SnsManager.GetRegPassport(requestPack.DeviceID);
         responsePack.passport = userList[0];
         responsePack.password = userList[1];
         return(true);
     }
     catch (Exception ex)
     {
         this.SaveLog(ex);
         this.ErrorCode = ZyGames.Framework.Game.Lang.Language.Instance.ErrorCode;
         this.ErrorInfo = ZyGames.Framework.Game.Lang.Language.Instance.St1002_GetRegisterPassportIDError;
         return(false);
     }
 }
Beispiel #7
0
 /// <summary>
 /// 业务逻辑处理
 /// </summary>
 /// <returns>false:中断后面的方式执行并返回Error</returns>
 public override bool TakeAction()
 {
     try
     {
         if (_openid != "")
         {
             var     q      = SnsManager.Register(_openid, "123456", "", true);
             var     s      = SnsManager.RegisterWeixin(_openid, "123456", "", _openid);
             SnsUser _tempu = SnsManager.LoginByWeixin(_openid);
             passport          = _tempu.PassportId;
             password          = _tempu.Password;
             _tempu.RetailUser = _openid;
             _tempu.RetailID   = retailID;
             _tempu.WeixinCode = _openid;
             SnsManager.ChangeUserInfo(passport, _tempu);
         }
         else
         {
             string[] userList = SnsManager.GetRegPassport(deviceID);
             passport = userList[0];
             password = userList[1];
         }
         sc_device _scd = new sc_device()
         {
             fn = "sc_device", result = 1
         };
         _scd.passportid = passport;
         _scd.password   = password;
         _senddata       = JsonUtils.Serialize(_scd);
         return(true);
     }
     catch (Exception ex)
     {
         this.SaveLog(ex);
         this.ErrorCode = Language.Instance.ErrorCode;
         this.ErrorInfo = Language.Instance.St1002_GetRegisterPassportIDError;
         return(false);
     }
 }