浏览代码

feat:附件下载已使用

wangshan 1 年之前
父节点
当前提交
1e3690fbae
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 		}
 	}