|
@@ -384,17 +384,20 @@ func MsgCountMinusOne(userId, appId string, msgType int64) bool {
|
|
|
|
|
|
// MsgCountZero 把该消息类型未读数量置0
|
|
// MsgCountZero 把该消息类型未读数量置0
|
|
func MsgCountZero(userId, appId string, msgType int64) bool {
|
|
func MsgCountZero(userId, appId string, msgType int64) bool {
|
|
- keyString := fmt.Sprintf(MsgCountKey, userId, msgType)
|
|
|
|
- fool := redis.Put(redisModule, keyString, 0, -1)
|
|
|
|
- FindUserMsg(message.FindUserMsgReq{
|
|
|
|
- UserId: userId,
|
|
|
|
- Appid: appId,
|
|
|
|
- OffSet: 1,
|
|
|
|
- PageSize: 5,
|
|
|
|
- MsgType: -1,
|
|
|
|
- Read: 0,
|
|
|
|
- }, true)
|
|
|
|
- return fool
|
|
|
|
|
|
+ if msgType > 0 && msgType < 999 { //全部私信不统计
|
|
|
|
+ keyString := fmt.Sprintf(MsgCountKey, userId, msgType)
|
|
|
|
+ fool := redis.Put(redisModule, keyString, 0, -1)
|
|
|
|
+ FindUserMsg(message.FindUserMsgReq{
|
|
|
|
+ UserId: userId,
|
|
|
|
+ Appid: appId,
|
|
|
|
+ OffSet: 1,
|
|
|
|
+ PageSize: 5,
|
|
|
|
+ MsgType: -1,
|
|
|
|
+ Read: 0,
|
|
|
|
+ }, true)
|
|
|
|
+ return fool
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
}
|
|
}
|
|
|
|
|
|
func MultSave(this message.MultipleSaveMsgReq) (int64, string) {
|
|
func MultSave(this message.MultipleSaveMsgReq) (int64, string) {
|