Forráskód Böngészése

超级订阅到期天数修改

renjiaojiao 1 éve
szülő
commit
eb27b3dd1a

+ 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,
 		}}
 	}()