/// <summary>
        /// 二维码支付,生成验票信息,自动激活--小径平台
        /// </summary>
        /// <param name="order"></param>
        /// <param name="orderDetails"></param>
        /// <returns></returns>
        public List <Tbl_Ticket_Testing> XJ_addTicketTestings(Tbl_Order order, List <Tbl_OrderDetail> orderDetails)
        {
            List <Tbl_Ticket_Testing> ticketTestings = new List <Tbl_Ticket_Testing>();

            foreach (var orderDetail in orderDetails)
            {
                orderDetail.OrderStatus = (int)OrderDetailsDataStatus.Success;

                if (orderDetail.TicketCategory != 1)
                {
                    //生成凭证号
                    orderDetail.CertificateNO = orderDetail.QRcode;

                    //二维码订单支付,生成二维码串,自动激活
                    orderDetail.OrderStatus = (int)OrderDetailsDataStatus.Activate;

                    //生成一张二维码图片,返回图片地址
                    string imgpath = string.Empty;
                    OrderHelper.CreateCode_Simple(orderDetail.QRcode, out imgpath);
                    orderDetail.QRcodeUrl = imgpath;

                    //二维码支付,生成验票信息,自动激活
                    Tbl_Ticket_Testing tbl_Ticket_Testing = new Tbl_Ticket_Testing
                    {
                        OrderDetailNumber = orderDetail.Number,
                        OrderDetailId     = orderDetail.OrderDetailId,
                        OrderNo           = orderDetail.OrderNo,
                        EnterpriseId      = orderDetail.EnterpriseId,
                        ScenicId          = orderDetail.ScenicId,
                        TicketCategory    = orderDetail.TicketCategory,
                        TicketId          = orderDetail.TicketId,
                        TicketName        = orderDetail.TicketName,
                        BarCode           = orderDetail.BarCode,
                        CertificateNO     = orderDetail.CertificateNO,
                        QRcode            = orderDetail.QRcode,
                        DataStatus        = 1,
                        Quantity          = orderDetail.Quantity,
                        IDCard            = orderDetail.IDCard
                    };
                    ticketTestings.Add(tbl_Ticket_Testing);
                }
            }
            return(ticketTestings);
        }