修改message
This commit is contained in:
parent
468e65e8da
commit
623baec632
@ -877,9 +877,10 @@ func (ad *GameLogic) GetStartTime() int64 {
|
||||
}
|
||||
|
||||
func NotifyPlayer(Uid int, m *MsgMod.Msg) {
|
||||
m.To = Uid
|
||||
m.HandleType = MsgMod.HANDLE_MOD_PLAYER_MSG
|
||||
NotifyPlayerMsgAsync(m)
|
||||
clone := *m
|
||||
clone.To = Uid
|
||||
clone.HandleType = MsgMod.HANDLE_MOD_PLAYER_MSG
|
||||
NotifyPlayerMsgAsync(&clone)
|
||||
}
|
||||
|
||||
func Destroy() {
|
||||
|
||||
@ -226,11 +226,11 @@ func NotifyAllPlayerMsg(m *msg.Msg) {
|
||||
playerListCopy[k] = v
|
||||
}
|
||||
messageMgrData.mu.Unlock()
|
||||
|
||||
// 在锁外发送消息
|
||||
for PlayerId, node := range playerListCopy {
|
||||
m.To = int(PlayerId)
|
||||
SendMsgToNodeAsync(m, node)
|
||||
copym := m.Clone()
|
||||
copym.To = int(PlayerId)
|
||||
SendMsgToNodeAsync(copym, node)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,6 +17,9 @@ const (
|
||||
|
||||
// AAqFpbuPhFSEx
|
||||
func SendFeishuFatal(PlayerId int, FuncName string, msg string) error {
|
||||
if conf.Server.GameName == "pet_home_local" {
|
||||
return nil
|
||||
}
|
||||
// 创建请求体
|
||||
stack := make([]byte, 1024)
|
||||
length := runtime.Stack(stack, false)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user