Browse Source

商机管理推送缓存key

wangchuanjin 5 years ago
parent
commit
d054d8343a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      common/src/qfw/util/jy/entnichepush.go

+ 2 - 2
common/src/qfw/util/jy/entnichepush.go

@@ -43,7 +43,7 @@ func (e *entnichePush) PutTodayCache(entId, userId int, pc_a *SubPush) {
 
 //获取redis key
 func (e *entnichePush) todayKey(entId, userId int) string {
-	return fmt.Sprintf("entnichepush_%d_%d", userId)
+	return fmt.Sprintf("entnichepush_%d_%d", entId, userId)
 }
 
 func (e *entnichePush) Datas(MQFW mg.MongodbSim, PushMysql *mysql.Mysql, entId, userId int, pageNum int, selectTime, area string) (hasNextPage bool, result []*SubPushList) {
@@ -271,7 +271,7 @@ func (e *entnichePush) Visit(PushMysql *mysql.Mysql, entId, userId, id int) {
 
 //查看全部列表缓存
 func (e *entnichePush) allKey(entId, userId int) string {
-	return fmt.Sprintf("all_entnichepush_%d_%d", userId)
+	return fmt.Sprintf("all_entnichepush_%d_%d", entId, userId)
 }
 
 func (e *entnichePush) PutAllCache(entId, userId int, datas []*SubPushList) {