mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-05-13 12:16:42 +00:00
feat: Добавить обработку данных события устройства пользователя в метод extract_user_hwid_event_data
This commit is contained in:
parent
9c1b478fcf
commit
4dae576fc5
1 changed files with 4 additions and 1 deletions
|
|
@ -167,7 +167,10 @@ class WebhookUtility:
|
|||
"""
|
||||
if not WebhookUtility.is_user_hwid_devices_event(payload.event):
|
||||
return None
|
||||
|
||||
|
||||
if isinstance(payload.data, UserHwidDeviceEventDto):
|
||||
return (payload.data.user, payload.data.hwid_user_device)
|
||||
|
||||
if isinstance(payload.data, dict):
|
||||
user_data = payload.data.get("user", {})
|
||||
hwid_data = payload.data.get("hwidUserDevice", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue