|
@@ -2,6 +2,7 @@ package service |
|
@@ -2,6 +2,7 @@ package service |
2
|
|
2
|
|
3
|
import (
|
3
|
import (
|
4
|
"fmt"
|
4
|
"fmt"
|
|
|
5
|
+ "gitlab.fjmaimaimai.com/linmadan/mmm-worth/pkg/infrastructure/utils"
|
5
|
"math"
|
6
|
"math"
|
6
|
"strconv"
|
7
|
"strconv"
|
7
|
"time"
|
8
|
"time"
|
|
@@ -356,7 +357,10 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivityDeadline(listExc |
|
@@ -356,7 +357,10 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivityDeadline(listExc |
356
|
// 提取兑换现金活动截止时间
|
357
|
// 提取兑换现金活动截止时间
|
357
|
var deadlines []interface{}
|
358
|
var deadlines []interface{}
|
358
|
for _, activity := range activities {
|
359
|
for _, activity := range activities {
|
359
|
- deadlines = append(deadlines, activity.Deadline.Format("2006-01-02"))
|
360
|
+ tmpTime := activity.Deadline.Format("2006-01-02")
|
|
|
361
|
+ if !utils.IsContain(deadlines, tmpTime) {
|
|
|
362
|
+ deadlines = append(deadlines, tmpTime)
|
|
|
363
|
+ }
|
360
|
}
|
364
|
}
|
361
|
if len(deadlines) == 0 {
|
365
|
if len(deadlines) == 0 {
|
362
|
deadlines = []interface{}{}
|
366
|
deadlines = []interface{}{}
|