正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -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, |
-
请 注册 或 登录 后发表评论