forked from Hay1tsme/artemis
adb: hotfix
This commit is contained in:
parent
71489c1272
commit
fd6cadf2da
@ -3,4 +3,4 @@ from .base import CompanyCodes, ReaderFwVer, CMD_CODE_GOODBYE, HEADER_SIZE
|
|||||||
from .lookup import ADBLookupRequest, ADBLookupResponse, ADBLookupExResponse
|
from .lookup import ADBLookupRequest, ADBLookupResponse, ADBLookupExResponse
|
||||||
from .campaign import ADBCampaignClearRequest, ADBCampaignClearResponse, ADBCampaignResponse, ADBOldCampaignRequest, ADBOldCampaignResponse
|
from .campaign import ADBCampaignClearRequest, ADBCampaignClearResponse, ADBCampaignResponse, ADBOldCampaignRequest, ADBOldCampaignResponse
|
||||||
from .felica import ADBFelicaLookupRequest, ADBFelicaLookupResponse, ADBFelicaLookup2Request, ADBFelicaLookup2Response
|
from .felica import ADBFelicaLookupRequest, ADBFelicaLookupResponse, ADBFelicaLookup2Request, ADBFelicaLookup2Response
|
||||||
from .log import ADBLogExRequest, ADBLogRequest, ADBStatusLogRequest
|
from .log import ADBLogExRequest, ADBLogRequest, ADBStatusLogRequest, ADBLogExResponse
|
||||||
|
@ -282,7 +282,7 @@ class AimedbProtocol(Protocol):
|
|||||||
|
|
||||||
for x in range(req.num_logs):
|
for x in range(req.num_logs):
|
||||||
self.logger.debug(f"User {req.logs[x].aime_id} logged {req.logs[x].status.name} event, credit_ct: {req.logs[x].credit_ct} bet_ct: {req.logs[x].bet_ct} won_ct: {req.logs[x].won_ct}")
|
self.logger.debug(f"User {req.logs[x].aime_id} logged {req.logs[x].status.name} event, credit_ct: {req.logs[x].credit_ct} bet_ct: {req.logs[x].bet_ct} won_ct: {req.logs[x].won_ct}")
|
||||||
return ADBBaseResponse(resp_code, 0x20, 1, req.head.game_id, req.head.store_id, req.head.keychip_id, req.head.protocol_ver)
|
return ADBLogExResponse.from_req(req.head)
|
||||||
|
|
||||||
def handle_goodbye(self, data: bytes, resp_code: int) -> None:
|
def handle_goodbye(self, data: bytes, resp_code: int) -> None:
|
||||||
self.logger.info(f"goodbye from {self.transport.getPeer().host}")
|
self.logger.info(f"goodbye from {self.transport.getPeer().host}")
|
||||||
|
Loading…
Reference in New Issue
Block a user