Browse Source

添加转机文字

yuanrf 7 months ago
parent
commit
067c6953f9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      travelExport/Home.cs

+ 5 - 1
travelExport/Home.cs

@@ -30,7 +30,7 @@ namespace travelExport
         static List<Grp_DelegationInfo> soure = new List<Grp_DelegationInfo>();
         readonly static string[] weekdays = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
         const decimal conversion = 1.61M;
-        readonly static string[] excludeArr = new string[] { "[中转]", };
+        readonly static string[] excludeArr = new string[] { "[中转]", "[转机]" };
 
         public Home()
         {
@@ -1439,6 +1439,10 @@ namespace travelExport
                                 var time = new DateTime(DateTime.Now.Year, month, day); //
 
                                 var isExist = Info.Contains("[中转]");
+                                if (!isExist)
+                                {
+                                    isExist = Info.Contains("[转机]");
+                                }
 
                                 //dt.Columns.Add("Fliagtcode", typeof(string)); //航班号
                                 //dt.Columns.Add("Date", typeof(string));//起飞日期