瀏覽代碼

超级订阅到期天数修改

renjiaojiao 1 年之前
父節點
當前提交
eb27b3dd1a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/jfw/modules/subscribepay/src/service/vipSubscribeChange.go

+ 2 - 1
src/jfw/modules/subscribepay/src/service/vipSubscribeChange.go

@@ -9,6 +9,7 @@ import (
 	"jy/src/jfw/modules/subscribepay/src/entity"
 	"jy/src/jfw/modules/subscribepay/src/util"
 	"log"
+	"math"
 	"strings"
 	"time"
 
@@ -306,7 +307,7 @@ func (this *SubscribeChange) VipRenewReminder() {
 		vipEndTime := qutil.Int64All(redis.Get("newother", key))
 		endDays := time.Unix(vipEndTime, 0).Sub(time.Now())
 		return &entity.FuncResult{true, nil, map[string]interface{}{
-			"endDays":      endDays.Hours() / 24,
+			"endDays":      math.Floor(endDays.Hours() / 24),
 			"activityInfo": res,
 		}}
 	}()