Exemplo n.º 1
0
        private string StartGame(string openid, string state, string serverId, string nowTimestamp, string pf,
                                 string sessionId, string sign, string jsNeed, string nickName, string strCommon = "")
        {
            try
            {
                /* download-wyfth5.3333.cn/wyft1758/index.html?openid=pf+gid&state=xxx&serverId=8001&nowTimestamp=46546461321&pf=1758&sessionId&sign=xxx&jsNeed=0&nickName=xxx*/

                if (WebServerHandler.SetStartGameEntity(ShareUtil.PlatformCode, ShareUtil.PlatformZoneName, openid,
                                                        state,
                                                        serverId, pf, sessionId, jsNeed, nickName, strCommon))
                {
                    ;
                }
                {
                    return(UAErrorCode.ErrOther);
                }
            }
            catch (Exception ex)
            {
                SystemlogMgr.Error("txa8 Charge", ex);
                Response.Write("{\"ret\":\"fail\",\"msg\":\"系统异常" + ex + "\"}");
                return(UAErrorCode.ErrException);
            }
            return(UAErrorCode.ErrOK);
        }
Exemplo n.º 2
0
 private MessageCode StartGameNew(string openid, string state, string serverId, string pf,
                                  string sessionId, string jsNeed, string nickName)
 {
     try
     {
         WebServerHandler.SetStartGameEntity(ShareUtil.PlatformCode, serverId, openid, state, serverId, pf, sessionId, jsNeed, nickName);
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("a8 StartGameNew", ex);
         return(MessageCode.LoginError);
     }
     return(MessageCode.Success);
 }
Exemplo n.º 3
0
        /// <summary>
        /// a8进入游戏(3)
        /// </summary>
        /// <returns></returns>
        private string StartGame(string openid, string state, string serverId, string nowTimestamp, string pf,
                                 string sessionId, string sign, string jsNeed, string nickName)
        {
            try
            {
                /* download-wyfth5.3333.cn/wyft1758/index.html?openid=pf+gid&state=xxx&serverId=8001&nowTimestamp=46546461321&pf=1758&sessionId&sign=xxx&jsNeed=0&nickName=xxx*/
                bool b = false;
                try
                {
                    b = WebServerHandler.SetStartGameEntity(ShareUtil.PlatformCode, ShareUtil.PlatformZoneName, openid,
                                                            state, serverId, pf, sessionId, jsNeed, nickName);
                }
                catch (Exception ex)
                {
                    SystemlogMgr.Error("A8 Login", ex);
                    b = false;
                }
                if (b)
                {
                    ;
                }
                {
                    //登录
                    var result = Login(openid, platFormKey);

                    if (result != UAErrorCode.ErrOK)
                    {
                        return(UAErrorCode.ErrOther);
                    }
                }
            }
            catch (Exception ex)
            {
                SystemlogMgr.Error("A8 Login", ex);
                Response.Write("{\"ret\":\"fail\",\"msg\":\"系统异常" + ex + "\"}");
                return(UAErrorCode.ErrException);
            }
            return(UAErrorCode.ErrOK);
        }
Exemplo n.º 4
0
        private MessageCode StartGameNew(string openid, string state, string serverId, string pf, string sessionId, string jsNeed, string nickName, string strCommon = "")
        {
            try
            {
                if (WebServerHandler.SetStartGameEntity(ShareUtil.PlatformCode, serverId, openid, state,
                                                        serverId, pf, sessionId, jsNeed, nickName, strCommon))
                {
                    ;
                }
                {
                    ////登录
                    //var result = Login(openid);

                    //if (result != UAErrorCode.ErrOK)
                    //    return MessageCode.LoginError;
                }
            }
            catch (Exception ex)
            {
                SystemlogMgr.Error("txa8 StartGameNew", ex);
                return(MessageCode.LoginError);
            }
            return(MessageCode.Success);
        }