forked from Dniel97/artemis
sao: change handle_c12a to async
This commit is contained in:
parent
df4c667adf
commit
31969221e2
@ -42,7 +42,7 @@ class SaoBase:
|
|||||||
resp = SaoGetMaintResponse(header.cmd +1)
|
resp = SaoGetMaintResponse(header.cmd +1)
|
||||||
return resp.make()
|
return resp.make()
|
||||||
|
|
||||||
def handle_c12a(self, header: SaoRequestHeader, request: bytes) -> bytes:
|
async def handle_c12a(self, header: SaoRequestHeader, request: bytes) -> bytes:
|
||||||
#common/give_free_ticket
|
#common/give_free_ticket
|
||||||
req = SaoGiveFreeTicketRequest(header, request)
|
req = SaoGiveFreeTicketRequest(header, request)
|
||||||
self.logger.info(f"Give {req.give_num} free tickets (id {req.ticket_id}) to user {req.user_id}")
|
self.logger.info(f"Give {req.give_num} free tickets (id {req.ticket_id}) to user {req.user_id}")
|
||||||
|
Loading…
Reference in New Issue
Block a user