From b40a478ca7d9278587fa09fbd2620225542f795c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 28 Mar 2023 22:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20incorrect=20type=20after?= =?UTF-8?q?=20updating=20cookies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/account/players.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/account/players.py b/plugins/account/players.py index cf2ec3b1..eba0db54 100644 --- a/plugins/account/players.py +++ b/plugins/account/players.py @@ -224,7 +224,7 @@ class PlayersManagesPlugin(Plugin): reply_markup=InlineKeyboardMarkup(buttons), ) return - cookies_data.data = cookies.json() + cookies_data.data = cookies.to_dict() await self.cookies_service.update(cookies_data) await callback_query.edit_message_text( f"玩家 {player.player_id} {player_info.nickname} cookies 刷新成功", reply_markup=InlineKeyboardMarkup(buttons)