no message
This commit is contained in:
parent
0f7da88dab
commit
96bbac8533
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"games.yol.com/win88/model"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
|
@ -11,6 +10,7 @@ import (
|
|||
"mongo.games.com/goserver/core/transact"
|
||||
|
||||
"mongo.games.com/game/common"
|
||||
"mongo.games.com/game/model"
|
||||
"mongo.games.com/game/proto"
|
||||
hallproto "mongo.games.com/game/protocol/gamehall"
|
||||
"mongo.games.com/game/protocol/server"
|
||||
|
|
|
@ -129,7 +129,7 @@ func (cfg *GameList) GetGameConfig(gameFreeId int32) *webapiproto.GameFree {
|
|||
return nil
|
||||
}
|
||||
|
||||
func CompareGameFreeConfigChged(oldCfg, newCfg *webapiproto.GameFree) bool {
|
||||
func CompareGameFreeConfigChanged(oldCfg, newCfg *webapiproto.GameFree) bool {
|
||||
if oldCfg.Status != newCfg.Status ||
|
||||
oldCfg.GroupId != newCfg.GroupId ||
|
||||
oldCfg.DbGameFree.GetBot() != newCfg.DbGameFree.GetBot() ||
|
||||
|
|
|
@ -243,7 +243,7 @@ func (pm *PlatformMgr) UpsertGameFree(platform string, data *webapiproto.GameFre
|
|||
pgc.gameId[data.DbGameFree.Id] = append(pgc.gameId[data.DbGameFree.Id], data)
|
||||
}
|
||||
// 新增的场次不会通知
|
||||
if ok && old != nil && !CompareGameFreeConfigChged(old, data) {
|
||||
if ok && old != nil && !CompareGameFreeConfigChanged(old, data) {
|
||||
pm.OnPlatformGameFreeUpdate(p, old, data)
|
||||
pm.SyncGameFree(p.IdStr, data)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue