Jelajahi Sumber

判断激活条件并激活,需要验证有没有所属人

lcl 1 tahun lalu
induk
melakukan
0dbdc02e70
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

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

@@ -328,7 +328,7 @@ namespace MySystem
                                         }
                                         //判断激活条件并激活
                                         DateTime TransferTime = pos.TransferTime == null ? DateTime.Now : pos.TransferTime.Value;
-                                        if (pos.CreditTrade >= CheckMoney && pos.ActivationState == 0 && TransferTime.AddMinutes(-30) < pos.BindingTime)
+                                        if (pos.CreditTrade >= CheckMoney && pos.BuyUserId > 0 && pos.ActivationState == 0 && TransferTime.AddMinutes(-30) < pos.BindingTime)
                                         // if (pos.CreditTrade >= CheckMoney && pos.ActivationState == 0 && TransferTime < pos.BindingTime && pos.BindingTime > DateTime.Now.AddDays(-CheckDays))
                                         {
                                             pos.ActivationState = 1;