|
@@ -3,7 +3,6 @@ package entity
|
|
import (
|
|
import (
|
|
"app.yhyue.com/moapp/jybase/go-xweb/httpsession"
|
|
"app.yhyue.com/moapp/jybase/go-xweb/httpsession"
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
- "bp.jydev.jianyu360.cn/BaseService/powerCheckCenter/entity"
|
|
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
@@ -92,7 +91,7 @@ func (this *UseBalanceStruct) fileConsume() (r map[string]interface{}, m string,
|
|
if qutil.IntAll(sess["positionId"]) == 1 {
|
|
if qutil.IntAll(sess["positionId"]) == 1 {
|
|
userId = strconv.Itoa(qutil.IntAll(sess["positionId"]))
|
|
userId = strconv.Itoa(qutil.IntAll(sess["positionId"]))
|
|
}
|
|
}
|
|
- if ok := redis.Del(entity.PowerCacheDb, fmt.Sprintf(entity.PowerCacheFileKey, userId)); !ok {
|
|
|
|
|
|
+ if ok := redis.Del("other", fmt.Sprintf("free_article_attach_%s", userId)); !ok {
|
|
log.Println("free user clear file download power false:", userId)
|
|
log.Println("free user clear file download power false:", userId)
|
|
}
|
|
}
|
|
}
|
|
}
|