作者 陈志颖

fix:修改过期兑换活动过滤

@@ -528,8 +528,10 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas @@ -528,8 +528,10 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas
528 528
529 // 兑换现金活动返回截止时间处理 529 // 兑换现金活动返回截止时间处理
530 var activitiesWithTs []interface{} 530 var activitiesWithTs []interface{}
  531 + currentTime := time.Now()
  532 + //endTime := time.Date(currentTime.Year(), currentTime.Month(), currentTime.Day(), 23, 59, 59, 0, currentTime.Location())
531 for _, activity := range activities { 533 for _, activity := range activities {
532 - if activity.Deadline.UnixNano() / 1e6 > time.Now().UnixNano() / 1e6 { 534 + if activity.Deadline.UnixNano() / 1e6 >= currentTime.UnixNano() / 1e6 {
533 activityWithTs := map[string]interface{} { 535 activityWithTs := map[string]interface{} {
534 "activityId": activity.ActivityId, 536 "activityId": activity.ActivityId,
535 "exchangeActivityName": activity.ExchangeActivityName, 537 "exchangeActivityName": activity.ExchangeActivityName,