Commit c1d56a473bf0ba1e8a148fcff0b0052242a6ed1d

Authored by zhangqijia
1 parent 8568cf44

fix: update preserve

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
models/role.go
... ... @@ -213,7 +213,7 @@ func (m *RoleModel) UpdateProperties(property map[string]interface{}, notify boo
213 213 return
214 214 } else {
215 215 if m.GetConn() != nil && notify {
216   - m.GetConn().Send(0, uint32(pb.ProtoCode_RoleUpdatePropertyNty), rsp)
  216 + m.GetConn().Send(0, uint32(pb.ProtoCode_RoleUpdatePropertyNty), rsp, 0)
217 217 }
218 218 }
219 219 }
... ...
models/rolePlugin.go
... ... @@ -55,7 +55,7 @@ func (m *RoleModel) AddItem(key string, count int32) bool {
55 55 }
56 56  
57 57 if m.GetConn() != nil {
58   - m.GetConn().Send(0, uint32(pb.ProtoCode_RoleUpdateItemsNty), rsp)
  58 + m.GetConn().Send(0, uint32(pb.ProtoCode_RoleUpdateItemsNty), rsp, 0)
59 59 }
60 60 return true
61 61 }
... ... @@ -84,7 +84,7 @@ func (m *RoleModel) AddItems(params common.IMapStringNum) bool {
84 84 }
85 85  
86 86 if m.GetConn() != nil {
87   - m.GetConn().Send(0, uint32(pb.ProtoCode_RoleUpdateItemsNty), rsp)
  87 + m.GetConn().Send(0, uint32(pb.ProtoCode_RoleUpdateItemsNty), rsp, 0)
88 88 }
89 89  
90 90 return true
... ... @@ -127,7 +127,7 @@ func (m *RoleModel) EquipmentAddNotify(equip *pb.Equipment) {
127 127 return
128 128 } else {
129 129 if m.GetConn() != nil {
130   - m.GetConn().SendSuccess(uint32(pb.ProtoCode_EquipmentAddNty), rsp)
  130 + m.GetConn().SendSuccess(uint32(pb.ProtoCode_EquipmentAddNty), rsp, 0)
131 131 }
132 132 }
133 133 }
... ...