瀏覽代碼

好哒时间取值

lcl 5 月之前
父節點
當前提交
d177770df7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

+ 1 - 1
AppStart/Helper/SycnSpServer/SycnSpActiveService.cs

@@ -101,7 +101,7 @@ namespace MySystem
                             if(Utils.Instance.IsHaoDa(pos.BrandId))
                             {
                                 int CheckDays = 30;
-                                DateTime now = act.ActivateDate == null ? DateTime.Now : act.ActivateDate.Value;
+                                DateTime now = string.IsNullOrEmpty(act.Field3) ? DateTime.Now : DateTime.Parse(act.Field3);
                                 PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId) ?? new PxcModels.PosMerchantInfo();
                                 if(pos.BindingTime > now.AddDays(-CheckDays))
                                 {