zhangxinlei1996 3 anos atrás
pai
commit
3b103a75ce

+ 0 - 1
src/jfw/modules/subscribepay/src/entity/resourcePackStruct.go

@@ -140,7 +140,6 @@ func (this *resoucePackStruct) Filter(product, userid, lotteryId, discountId str
 	var discount float64
 	full_price, reduce_price, userLotteryId := 0, 0, ""
 	if lotteryId != "" {
-		log.Println(config.CouponConfig.Products[rs.Product], "~~~", rs.Product)
 		full_price, reduce_price, discount, userLotteryId = util.GetCouponInfo(userid, lotteryId, config.CouponConfig.Products[rs.Product])
 		if full_price <= rs.Price {
 			if discount == 100 {

+ 0 - 7
src/jfw/modules/subscribepay/src/service/resourcePack.go

@@ -21,7 +21,6 @@ import (
 
 type ResourcePack struct {
 	*xweb.Action
-	tes         xweb.Mapper `xweb:"/tes"`                      //测试
 	createOrder xweb.Mapper `xweb:"/resourcePack/createOrder"` //线上自助数据包充值-创建订单
 	account     xweb.Mapper `xweb:"/resourcePack/account"`     //个人账户
 	recordList  xweb.Mapper `xweb:"/resourcePack/recordList"`  //“资源包”使用记录
@@ -33,12 +32,6 @@ const (
 	METHOD = "POST"
 )
 
-func (this *ResourcePack) Tes() {
-	userid, _ := this.GetSession("userId").(string)
-	ok := entity.FilepackEndtime(userid)
-	log.Println(ok)
-}
-
 type OrderResult struct {
 	Status    int    `json:"status"`     //返回状态 0失败 1成功
 	OrderCode string `json:"order_code"` //订单编号

+ 2 - 0
src/jfw/modules/subscribepay/src/timetask/timetask.go

@@ -316,6 +316,8 @@ func checkIsExpire() {
 				redis.Del("other", "p1_indexMessage_"+_id) //清除redis中vip状态
 				filePackKey := fmt.Sprintf(jy.FilePackNumKey, _id, fmt.Sprint(time.Now().Month()))
 				redis.Del(jy.PowerCacheDb, filePackKey) //清除redis中附件下载包次数
+				vipFileUploadNumKey := fmt.Sprintf(jy.VipFileUploadNumKey, _id, fmt.Sprint(time.Now().Month()))
+				redis.Del(jy.PowerCacheDb, vipFileUploadNumKey) //清除redis中vip使用次数
 			} else if l_vip_endtime-now_unix <= threeday && i_vip_expire_tip != 1 {
 				updateOk := util.MQFW.UpdateById("user", _id, map[string]interface{}{
 					"$set": map[string]interface{}{