From fa0a56e2b2f409b4b43dc774fee1471328806d20 Mon Sep 17 00:00:00 2001 From: hldh214 Date: Tue, 18 Jul 2023 09:18:46 +0900 Subject: [PATCH] feat(client): add `auth_analytics` for `kingdom_task_speedup` Signed-off-by: hldh214 --- lokbot/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lokbot/client.py b/lokbot/client.py index 72e7512e..151e4344 100644 --- a/lokbot/client.py +++ b/lokbot/client.py @@ -370,7 +370,11 @@ def kingdom_task_speedup(self, task_id, code, amount, is_buy=0): 加速任务 :return: """ - return self.post('kingdom/task/speedup', {'taskId': task_id, 'code': code, 'amount': amount, 'isBuy': is_buy}) + res = self.post('kingdom/task/speedup', {'taskId': task_id, 'code': code, 'amount': amount, 'isBuy': is_buy}) + + self.auth_analytics('item/use', f'{code}|{amount}') + + return res def kingdom_tutorial_finish(self, code): """