prevent setting chipid if it's 0x04030201
This commit is contained in:
1 parent
f252b8e322
commit
068aa5eaa3
3 files changed
+7
-6
No files matched your search
+1
-1
@@ -85,7 +85,7 @@ class SaoBase:
|
||||
card_id = await self.data.card.create_card(user_id, req.access_code)
|
||||
if req.access_code.startswith("5"):
|
||||
await self.data.card.set_idm_by_access_code(card_id, req.chip_id[:16])
|
||||
elif req.access_code.startswith("010") or req.access_code.startswith("3"):
|
||||
elif req.access_code.startswith("010") or req.access_code.startswith("3") and int(req.chip_id[:8], 16) != 0x04030201:
|
||||
await self.data.card.set_chip_id_by_access_code(card_id, int(req.chip_id[:8], 16))
|
||||
|
||||
if card_id is None:
|
||||
|
||||
Reference in new issue
Block a user