Browse Source

盛付通统计活动期需要判断时间

lcl 10 months ago
parent
commit
1b71da246d
1 changed files with 12 additions and 2 deletions
  1. 12 2
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

+ 12 - 2
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -437,7 +437,12 @@ namespace MySystem
                                         {
                                             ulong MerHelpFlag = 0;
                                             decimal DepositAmt = decimal.Parse(function.CheckNum(pos.SeoKeyword));
-                                            if (pos.DownFeeFlag == 1)
+                                            DateTime ChkTime = DateTime.Now;
+                                            if(pos.BrandId == 7)
+                                            {
+                                                ChkTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 03:00:00");
+                                            }
+                                            if (pos.DownFeeFlag == 1 && pos.DownFeeDate <= ChkTime)
                                             {
                                                 if(pos.BrandId == 12 || pos.BrandId == 13)
                                                 {
@@ -461,7 +466,12 @@ namespace MySystem
                                                 int Days = int.Parse(DayString); //天数
                                                 if (pos.BindingTime != null)
                                                 {
-                                                    if (pos.BindingTime.Value.AddDays(Days) > DateTime.Now)
+                                                    DateTime CheckTime = pos.BindingTime.Value.AddDays(Days);
+                                                    if(pos.BrandId == 7)
+                                                    {
+                                                        CheckTime = DateTime.Parse(pos.BindingTime.Value.AddDays(Days + 1).ToString("yyyy-MM-dd") + " 03:00:00");
+                                                    }
+                                                    if (CheckTime > DateTime.Now)
                                                     {
                                                         MerHelpFlag = 1;
                                                     }