邮件红点
This commit is contained in:
parent
bf08bbbfbd
commit
39e84031ae
|
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"mongo.games.com/game/srvdata"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"mongo.games.com/goserver/core/basic"
|
"mongo.games.com/goserver/core/basic"
|
||||||
|
|
@ -13,6 +12,7 @@ import (
|
||||||
"mongo.games.com/game/model"
|
"mongo.games.com/game/model"
|
||||||
"mongo.games.com/game/proto"
|
"mongo.games.com/game/proto"
|
||||||
"mongo.games.com/game/protocol/shop"
|
"mongo.games.com/game/protocol/shop"
|
||||||
|
"mongo.games.com/game/srvdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CSShopInfoPacketFactory struct {
|
type CSShopInfoPacketFactory struct {
|
||||||
|
|
|
||||||
|
|
@ -787,6 +787,9 @@ func (this *Player) MessageShowRed() {
|
||||||
if msg.State == model.MSGSTATE_UNREAD ||
|
if msg.State == model.MSGSTATE_UNREAD ||
|
||||||
(msg.State == model.MSGSTATE_READED && msg.AttachState == model.MSGATTACHSTATE_DEFAULT &&
|
(msg.State == model.MSGSTATE_READED && msg.AttachState == model.MSGATTACHSTATE_DEFAULT &&
|
||||||
(msg.Coin > 0 || msg.Diamond > 0 || len(msg.Params) > 0)) {
|
(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 {
|
if msg.ShowId == model.HallAll {
|
||||||
msgMap[model.HallMain] = 1
|
msgMap[model.HallMain] = 1
|
||||||
msgMap[model.HallTienlen] = 1
|
msgMap[model.HallTienlen] = 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue