From b01ac24799cf98cd0cebd2184f8cf1b3329d598b Mon Sep 17 00:00:00 2001 From: ppc Date: Mon, 16 Sep 2024 09:54:39 +0000 Subject: [PATCH] add shop stock/friend bonus handlers --- titles/mai2/buddiesplus.py | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/titles/mai2/buddiesplus.py b/titles/mai2/buddiesplus.py index 0467b03..a3784d5 100644 --- a/titles/mai2/buddiesplus.py +++ b/titles/mai2/buddiesplus.py @@ -22,15 +22,28 @@ class Mai2BuddiesPlus(Mai2Buddies): return { "gameWeeklyData": { "missionCategory": 0, - "updateDate": "2024-03-21 09:00:00.0", - "beforeDate": "2099-12-31 00:00:00.0" + "updateDate": "2024-03-21 09:00:00", + "beforeDate": "2099-12-31 00:00:00" } } - + async def handle_create_token_api_request(self, data: Dict) -> Dict: return { "Bearer": "ARTEMiSTOKEN" # duplicate of handle_user_login_api_request from Mai2Festival } - + async def handle_remove_token_api_request(self, data: Dict) -> Dict: return {} + + async def handle_get_user_friend_bonus_api_request(self, data: Dict) -> Dict: + return { + "userId": data["userId"], + "returnCode": 1, + "getMiles": 0 + } + + async def handle_get_user_shop_stock_api_request(self, data: Dict) -> Dict: + return { + "userId": data["userId"], + "userShopStockList": [] + }