Jelajahi Sumber

重跑推荐王

lcl 2 bulan lalu
induk
melakukan
7745e6f0e5
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      AppStart/Helper/RecommandKingHelper.cs

+ 4 - 4
AppStart/Helper/RecommandKingHelper.cs

@@ -56,8 +56,8 @@ namespace MySystem
                 function.WritePage("/RecommandKing/", today + ".txt", DateTime.Now.ToString());
                 Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 1);
                 Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 2);
-                // Recommend(DateTime.Now.ToString("yyyyMM"), 1);
-                // Recommend(DateTime.Now.ToString("yyyyMM"), 2);
+                Recommend(DateTime.Now.ToString("yyyyMM"), 1);
+                Recommend(DateTime.Now.ToString("yyyyMM"), 2);
             }
         }
         public void Recommend(string TradeMonth, int Kind)
@@ -211,9 +211,9 @@ namespace MySystem
                 int ActCount = 0;
                 if(ActCount == 0)
                 {
-                    if(statdb.KxsUserActTrade.Any(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 1))
+                    if(statdb.KxsUserActTrade.Any(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 0))
                     {
-                        ActCount += statdb.KxsUserActTrade.Where(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 1).Sum(m => m.ActNum);
+                        ActCount += statdb.KxsUserActTrade.Where(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 0).Sum(m => m.ActNum);
                     }
                 }
                 if(ActCount == 0)