邮件红点

This commit is contained in:
sk 2024-07-16 11:29:52 +08:00
parent bf08bbbfbd
commit 39e84031ae
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,6 @@
package main
import (
"mongo.games.com/game/srvdata"
"time"
"mongo.games.com/goserver/core/basic"
@ -13,6 +12,7 @@ import (
"mongo.games.com/game/model"
"mongo.games.com/game/proto"
"mongo.games.com/game/protocol/shop"
"mongo.games.com/game/srvdata"
)
type CSShopInfoPacketFactory struct {

View File

@ -787,6 +787,9 @@ func (this *Player) MessageShowRed() {
if msg.State == model.MSGSTATE_UNREAD ||
(msg.State == model.MSGSTATE_READED && msg.AttachState == model.MSGATTACHSTATE_DEFAULT &&
(msg.Coin > 0 || msg.Diamond > 0 || len(msg.Params) > 0)) {
if len(msg.Channel) > 0 && !common.InSliceString(msg.Channel, this.LastChannel) {
continue
}
if msg.ShowId == model.HallAll {
msgMap[model.HallMain] = 1
msgMap[model.HallTienlen] = 1