sao: stub give_free_ticket

This commit is contained in:
2024-01-10 12:51:40 -05:00
parent 2c1958eb04
commit 3bfc9cc845
2 changed files with 30 additions and 0 deletions

View File

@ -42,6 +42,14 @@ class SaoBase:
resp = SaoGetMaintResponse(header.cmd +1)
return resp.make()
def handle_c12a(self, header: SaoRequestHeader, request: bytes) -> bytes:
#common/give_free_ticket
req = SaoGiveFreeTicketRequest(header, request)
self.logger.info(f"Give {req.give_num} free tickets (id {req.ticket_id}) to user {req.user_id}")
resp = SaoGiveFreeTicketResponse(header.cmd +1)
return resp.make()
def handle_c12e(self, header: SaoRequestHeader, request: bytes) -> bytes:
#common/ac_cabinet_boot_notification
resp = SaoCommonAcCabinetBootNotificationResponse(header.cmd +1)