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