Commit a9813bb91e6764eae096eb912e83cdff8edf7bea
1 parent
cc9f5837
fix: update
Showing
4 changed files
with
4 additions
and
5 deletions
 
Show diff stats
cmd/gameserver/action/RoleAction.go
| ... | ... | @@ -139,7 +139,7 @@ func EquipmentDelRpc(role *models.RoleModel, msg components.IMessage) (int32, in | 
| 139 | 139 | return 1, nil | 
| 140 | 140 | } | 
| 141 | 141 | |
| 142 | - if err := mongoproxy.DelOne("equip", "id", req.Id); err != nil { | |
| 142 | + if err := mongoproxy.DelOne("equipment", "id", req.Id); err != nil { | |
| 143 | 143 | logger.Error(err.Error()) | 
| 144 | 144 | return 2, nil | 
| 145 | 145 | } | ... | ... | 
cmd/gameserver/service/agent.go
| ... | ... | @@ -97,6 +97,7 @@ func (c *Agent) SendMsg(errCode int32, cmd uint32, msg interface{}) { | 
| 97 | 97 | |
| 98 | 98 | func (c *Agent) OnMessage(msg components.IMessage) { | 
| 99 | 99 | atomic.StoreInt64(&c.lastHeartCheckTime, common.Timex()) | 
| 100 | + logger.Debug("protocolID: %d", msg.GetHeader().GetMsgID()) | |
| 100 | 101 | //heart | 
| 101 | 102 | if msg.GetHeader().GetMsgID() == uint32(pb.ProtoCode_HeartReq) { | 
| 102 | 103 | return | 
| ... | ... | @@ -116,8 +117,6 @@ func (c *Agent) OnMessage(msg components.IMessage) { | 
| 116 | 117 | return | 
| 117 | 118 | } | 
| 118 | 119 | |
| 119 | - logger.Debug("protocolID: %d", msg.GetHeader().GetMsgID()) | |
| 120 | - | |
| 121 | 120 | if msg.GetHeader().GetMsgID() != uint32(pb.ProtoCode_CreateReq) && c.Role == nil { | 
| 122 | 121 | c.Send(-101, msg.GetHeader().GetMsgID(), nil) | 
| 123 | 122 | return | ... | ... |