wangshan %!s(int64=5) %!d(string=hai) anos
pai
achega
cd2e8fb914
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/jfw/modules/subscribepay/src/util/vrew.go

+ 4 - 1
src/jfw/modules/subscribepay/src/util/vrew.go

@@ -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])