|
@@ -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) {
|