|
@@ -265,7 +265,10 @@ func MergeKws(userId string) {
|
|
|
}
|
|
|
|
|
|
//m 月 超过一年传12+n月 如14 endtime 当前周期结束时间戳 int64
|
|
|
-func GetDATE(m int, endtime int64) (_endtime int64) {
|
|
|
+func GetDATE(val int, m int, endtime int64) (_endtime int64) {
|
|
|
+ if val == 1 {
|
|
|
+ m = m * 12
|
|
|
+ }
|
|
|
endFormat := qutil.FormatDateByInt64(&endtime, qutil.Date_Short_Layout)
|
|
|
date_y, _ := strconv.Atoi(strings.Split(endFormat, "-")[0])
|
|
|
date_m, _ := strconv.Atoi(strings.Split(endFormat, "-")[1])
|