娃娃机返回操作结果

This commit is contained in:
by 2024-08-14 16:23:59 +08:00
parent 8ff978db72
commit 4dc78ff468
1 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,7 @@ func SMDollMachinePerateHandler(session *netlib.Session, packetId int, data inte
Snid: msg.Snid, Snid: msg.Snid,
Id: msg.GetId(), Id: msg.GetId(),
Result: int32(buf[4]), Result: int32(buf[4]),
TypeId: 1,
}) })
} }
return nil return nil
@ -112,10 +113,11 @@ func SMDollMachineGrabHandler(session *netlib.Session, packetId int, data interf
} }
send := func(net.Conn) { send := func(net.Conn) {
session.Send(int(machine.DollMachinePacketID_PACKET_MSDollMachineGrab), &machine.MSDollMachineGrab{ session.Send(int(machine.DollMachinePacketID_PACKET_MSDollMachineoPerateResult), &machine.MSDollMachineoPerateResult{
Snid: msg.Snid, Snid: msg.Snid,
Id: msg.GetId(), Id: msg.GetId(),
Result: 1, Result: 1,
TypeId: 2,
}) })
} }