作者 陈志颖

fix:过滤app首页已过期活动展示

@@ -529,6 +529,7 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas @@ -529,6 +529,7 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas
529 // 兑换现金活动返回截止时间处理 529 // 兑换现金活动返回截止时间处理
530 var activitiesWithTs []interface{} 530 var activitiesWithTs []interface{}
531 for _, activity := range activities { 531 for _, activity := range activities {
  532 + if activity.Deadline.UnixNano() / 1e6 > time.Now().UnixNano() / 1e6 {
532 activityWithTs := map[string]interface{} { 533 activityWithTs := map[string]interface{} {
533 "activityId": activity.ActivityId, 534 "activityId": activity.ActivityId,
534 "exchangeActivityName": activity.ExchangeActivityName, 535 "exchangeActivityName": activity.ExchangeActivityName,
@@ -542,6 +543,7 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas @@ -542,6 +543,7 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas
542 } 543 }
543 activitiesWithTs = append(activitiesWithTs, activityWithTs) 544 activitiesWithTs = append(activitiesWithTs, activityWithTs)
544 } 545 }
  546 + }
545 return map[string]interface{}{ 547 return map[string]interface{}{
546 "count": count, 548 "count": count,
547 "activities": activitiesWithTs, 549 "activities": activitiesWithTs,