|
@@ -813,7 +813,7 @@ namespace MySystem
|
|
|
{
|
|
|
now = DateTime.Parse(ActivationTime);
|
|
|
}
|
|
|
- DateTime TransferTime = pos.TransferTime == null ? DateTime.Now : pos.TransferTime.Value;
|
|
|
+ DateTime TransferTime = pos.TransferTime == null ? DateTime.Parse("2050-01-01") : pos.TransferTime.Value;
|
|
|
int minute = 30;
|
|
|
if(pos.BrandId == 14 && pos.PosSn.StartsWith("CS"))
|
|
|
{
|
|
@@ -822,7 +822,7 @@ namespace MySystem
|
|
|
Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:贷记卡是否刷满" + CheckMoney + ";贷记卡交易:" + pos.CreditTrade + "");
|
|
|
Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:是否有机具所属人;机具所属人Id:" + pos.BuyUserId + "");
|
|
|
Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:是否未激活;机具激活状态:" + pos.ActivationState + "");
|
|
|
- Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:划拨时间不能超过绑定时间" + minute + "分钟;划拨时间:" + pos.TransferTime.Value.ToString() + ",绑定时间:" + pos.BindingTime.Value.ToString());
|
|
|
+ Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:划拨时间不能超过绑定时间" + minute + "分钟;划拨时间:" + TransferTime.ToString() + ",绑定时间:" + pos.BindingTime.Value.ToString());
|
|
|
if (pos.CreditTrade >= CheckMoney && pos.BuyUserId > 0 && pos.ActivationState == 0 && TransferTime.AddMinutes(-minute) < pos.BindingTime)
|
|
|
{
|
|
|
Utils.Instance.PrizeRecord(1, pos.PosSn, "满足条件");
|