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