|
@@ -18,6 +18,7 @@ import (
|
|
|
"jy/src/jfw/modules/subscribepay/src/consts"
|
|
|
"jy/src/jfw/modules/subscribepay/src/util"
|
|
|
"log"
|
|
|
+ "math"
|
|
|
"net"
|
|
|
"net/http"
|
|
|
"net/url"
|
|
@@ -386,7 +387,7 @@ func (this *pdfExportPackStruct) accountQuery(accountId string) (*AccountPdfPack
|
|
|
account.ZHIMA.FirstMsg = fmt.Sprintf("首份报告仅%v元!", exampleType[0]["first"])
|
|
|
}
|
|
|
case packType < 0: //过期
|
|
|
- account.ZHIMA.ExpiredMsg = fmt.Sprintf("优惠卡已过期:%v天", (time.Now().Unix()-endTime)/3600*24)
|
|
|
+ account.ZHIMA.ExpiredMsg = fmt.Sprintf("优惠卡已过期:%v天", math.Ceil(gconv.Float64(time.Now().Unix()-endTime)/(3600*24)))
|
|
|
case packType > 0: //有效期内&存在分数
|
|
|
var allNumber int
|
|
|
for _, m := range exampleType {
|