Browse Source

feat:附件下载已使用

wangshan 1 year ago
parent
commit
1e3690fbae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jfw/modules/subscribepay/src/entity/basePack.go

+ 1 - 1
src/jfw/modules/subscribepay/src/entity/basePack.go

@@ -91,7 +91,7 @@ func (this *UseBalanceStruct) fileConsume() (r map[string]interface{}, m string,
 		if qutil.IntAll(sess["positionId"]) == 1 {
 			userId = strconv.Itoa(qutil.IntAll(sess["positionId"]))
 		}
-		if ok := redis.Del("other", fmt.Sprintf("free_article_attach_%s", userId)); !ok {
+		if ok := redis.PutKV(fmt.Sprintf("free_article_attach_%s", userId), 1); !ok {
 			log.Println("free user clear file  download power  false:", userId)
 		}
 	}