예제 #1
0
        /// <summary>
        /// 91充值
        /// </summary>
        /// <param name="game"></param>
        /// <param name="Server"></param>
        /// <param name="Account"></param>
        /// <param name="ServiceName"></param>
        /// <param name="orderNo"></param>
        public static void get91PayInfo(int game, int Server, string Account, string ServiceName, string orderNo, string RetailID)
        {
            //增加游戏名称避免出现游戏名称为空的现象 panx 2012-11-26
            string     GameName   = string.Empty;
            ServerInfo serverinfo = GetServerData(game, Server);

            if (serverinfo != null)
            {
                GameName = serverinfo.GameName;
            }

            OrderInfo orderInfo = new OrderInfo();

            orderInfo.OrderNO         = orderNo;
            orderInfo.MerchandiseName = string.Empty;
            orderInfo.Currency        = "CNY";
            orderInfo.Amount          = 0;
            orderInfo.PassportID      = Account;
            orderInfo.RetailID        = RetailID;
            orderInfo.PayStatus       = 1;
            orderInfo.GameID          = game;
            orderInfo.ServerID        = Server;
            orderInfo.GameName        = GameName;
            orderInfo.ServerName      = ServiceName;
            orderInfo.GameCoins       = 0;
            orderInfo.SendState       = 1;
            orderInfo.PayType         = orderInfo.RetailID;
            orderInfo.Signature       = "123456";
            OrderFormBLL obll = new OrderFormBLL();

            obll.Add91Pay(orderInfo, false);
        }
예제 #2
0
 public static bool AddOrder(OrderInfo orderInfo)
 {
     try
     {
         OrderFormBLL obll = new OrderFormBLL();
         obll.Add91Pay(orderInfo, false);
         return(true);
     }
     catch (Exception ex)
     {
         TraceLog.ReleaseWriteFatal(ex.ToString());
         return(false);
     }
 }
예제 #3
0
 public static bool AddOrder(OrderInfo orderInfo)
 {
     try
     {
         OrderFormBLL obll = new OrderFormBLL();
         obll.Add91Pay(orderInfo, false);
         return true;
     }
     catch (Exception ex)
     {
         TraceLog.ReleaseWriteFatal(ex.ToString());
         return false;
     }
 }
예제 #4
0
        /// <summary>
        /// 触控android订单
        /// </summary>
        /// <param name="orderNo"></param>
        /// <param name="amount"></param>
        /// <param name="passportid"></param>
        /// <param name="serverID"></param>
        /// <param name="gameID"></param>
        /// <param name="gameConis"></param>
        /// <param name="deviceid"></param>
        /// <param name="RetailID"></param>
        public static void AddOrderInfo(string orderNo, decimal amount, string passportid, int serverID, int gameID, int gameConis, string deviceid, string RetailID)
        {
            try
            {
                string     GameName   = string.Empty;
                string     ServerName = string.Empty;
                ServerInfo serverinfo = GetServerData(gameID, serverID);
                if (serverinfo != null)
                {
                    GameName   = serverinfo.GameName;
                    ServerName = serverinfo.Name;
                }

                OrderInfo orderInfo = new OrderInfo();
                orderInfo.OrderNO         = orderNo;
                orderInfo.MerchandiseName = GameName;
                orderInfo.Currency        = "CNY";
                orderInfo.Amount          = amount;
                orderInfo.PassportID      = passportid;
                orderInfo.RetailID        = RetailID;
                orderInfo.PayStatus       = 1;
                orderInfo.GameID          = gameID;
                orderInfo.ServerID        = serverID;
                orderInfo.GameName        = GameName;
                orderInfo.ServerName      = ServerName;
                orderInfo.GameCoins       = gameConis;
                orderInfo.SendState       = 1;
                orderInfo.PayType         = "6002";
                orderInfo.Signature       = "123456";
                orderInfo.DeviceID        = deviceid;
                OrderFormBLL obll = new OrderFormBLL();
                obll.Add91Pay(orderInfo, false);
                TraceLog.ReleaseWrite("触控android充值完成");
            }
            catch (Exception ex)
            {
                TraceLog.ReleaseWriteFatal(ex.ToString());
            }
        }
예제 #5
0
        /// <summary>
        /// Get91s the pay info.
        /// </summary>
        /// <param name="game">Game.</param>
        /// <param name="Server">Server.</param>
        /// <param name="Account">Account.</param>
        /// <param name="ServiceName">Service name.</param>
        /// <param name="orderNo">Order no.</param>
        /// <param name="RetailID">Retail I.</param>
        public static void get91PayInfo(int game, int Server, string Account, string ServiceName, string orderNo, string RetailID)
        {
            //增加游戏名称避免出现游戏名称为空的现象 panx 2012-11-26
            string GameName = string.Empty;
            ServerInfo serverinfo = GetServerData(game, Server);
            if (serverinfo != null)
            {
                GameName = serverinfo.GameName;
            }

            OrderInfo orderInfo = new OrderInfo();
            orderInfo.OrderNO = orderNo;
            orderInfo.MerchandiseName = string.Empty;
            orderInfo.Currency = "CNY";
            orderInfo.Amount = 0;
            orderInfo.PassportID = Account;
            orderInfo.RetailID = RetailID;
            orderInfo.PayStatus = 1;
            orderInfo.GameID = game;
            orderInfo.ServerID = Server;
            orderInfo.GameName = GameName;
            orderInfo.ServerName = ServiceName;
            orderInfo.GameCoins = 0;
            orderInfo.SendState = 1;
            orderInfo.PayType = orderInfo.RetailID;
            orderInfo.Signature = "123456";
            OrderFormBLL obll = new OrderFormBLL();
            obll.Add91Pay(orderInfo, false);
        }
예제 #6
0
        /// <summary>
        /// 触控android订单
        /// </summary>
        /// <param name="orderNo"></param>
        /// <param name="amount"></param>
        /// <param name="passportid"></param>
        /// <param name="serverID"></param>
        /// <param name="gameID"></param>
        /// <param name="gameConis"></param>
        /// <param name="deviceid"></param>
        /// <param name="RetailID"></param>
        public static void AddOrderInfo(string orderNo, decimal amount, string passportid, int serverID, int gameID, int gameConis, string deviceid, string RetailID)
        {
            try
            {
                string GameName = string.Empty;
                string ServerName = string.Empty;
                ServerInfo serverinfo = GetServerData(gameID, serverID);
                if (serverinfo != null)
                {
                    GameName = serverinfo.GameName;
                    ServerName = serverinfo.Name;
                }

                OrderInfo orderInfo = new OrderInfo();
                orderInfo.OrderNO = orderNo;
                orderInfo.MerchandiseName = GameName;
                orderInfo.Currency = "CNY";
                orderInfo.Amount = amount;
                orderInfo.PassportID = passportid;
                orderInfo.RetailID = RetailID;
                orderInfo.PayStatus = 1;
                orderInfo.GameID = gameID;
                orderInfo.ServerID = serverID;
                orderInfo.GameName = GameName;
                orderInfo.ServerName = ServerName;
                orderInfo.GameCoins = gameConis;
                orderInfo.SendState = 1;
                orderInfo.PayType = "6002";
                orderInfo.Signature = "123456";
                orderInfo.DeviceID = deviceid;
                OrderFormBLL obll = new OrderFormBLL();
                obll.Add91Pay(orderInfo, false);
                TraceLog.ReleaseWrite("触控android充值完成");
            }
            catch (Exception ex)
            {
                TraceLog.ReleaseWriteFatal(ex.ToString());
            }
        }
예제 #7
0
파일: PayManager.cs 프로젝트: daneric/Scut
        /// <summary>
        /// Get91s the pay info.
        /// </summary>
        /// <param name="gameId">Game.</param>
        /// <param name="serverId">Server.</param>
        /// <param name="passportId">Account.</param>
        /// <param name="serverName">Service name.</param>
        /// <param name="orderNo">Order no.</param>
        /// <param name="retailId">Retail Id.</param>
        /// <param name="userId"></param>
        public static void Get91PayInfo(int gameId, int serverId, string passportId, string serverName, string orderNo, string retailId, string userId = "") {
            //增加游戏名称避免出现游戏名称为空的现象 panx 2012-11-26
            string gameName = string.Empty;
            ServerInfo serverinfo = GetServerData(gameId, serverId);
            if (serverinfo != null) {
                gameName = serverinfo.GameName;
            }

            OrderInfo orderInfo = new OrderInfo();
            orderInfo.OrderNo = orderNo;
            orderInfo.MerchandiseName = string.Empty;
            orderInfo.Currency = "CNY";
            orderInfo.Amount = 0;
            orderInfo.PassportId = passportId;
            orderInfo.Expand = userId;
            orderInfo.RetailId = retailId;
            orderInfo.PayStatus = 1;
            orderInfo.GameId = gameId;
            orderInfo.ServerId = serverId;
            orderInfo.GameName = gameName;
            orderInfo.ServerName = serverName;
            orderInfo.GameCoins = 0;
            orderInfo.SendState = 1;
            orderInfo.PayType = orderInfo.RetailId;
            orderInfo.Signature = "123456";
            OrderFormBLL obll = new OrderFormBLL();
            obll.Add91Pay(orderInfo, false);
        }