public List <string> RequestTicket_CTZQSingleScheme(GatewayTicketOrder_SingleScheme order) { //var codeText = File.ReadAllText(order.AnteCodeFullFileName, Encoding.UTF8); var codeText = Encoding.UTF8.GetString(order.FileBuffer); var allowCodeArray = order.AllowCodes.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries); var ctzqMatchIdList = new List <string>(); var ctzqCodeList = AnalyzerFactory.CheckCTZQSingleSchemeAnteCode(codeText, order.GameType, allowCodeArray, out ctzqMatchIdList); var betCount = ctzqCodeList.Count; var totalMatchCount = ctzqMatchIdList.Count; var selectMatchIdArray = ctzqMatchIdList.ToArray(); var selectMatchId = string.Join(",", selectMatchIdArray); var manager = new Sports_Manager(); if (manager.QuerySingleSchemeOrder(order.OrderId) == null) { manager.AddSingleSchemeOrder(new SingleSchemeOrder { AllowCodes = order.AllowCodes, Amount = order.Amount, FileBuffer = Encoding.UTF8.GetString(order.FileBuffer), //AnteCodeFullFileName = order.AnteCodeFullFileName, ContainsMatchId = order.ContainsMatchId, CreateTime = DateTime.Now, GameCode = order.GameCode, GameType = order.GameType, IssuseNumber = order.IssuseNumber, IsVirtualOrder = order.IsVirtualOrder, OrderId = order.OrderId, PlayType = order.PlayType, SelectMatchId = selectMatchId, TotalMoney = order.TotalMoney, }); } return(ctzqCodeList); }