🐛 Fix incorrect type after updating cookies

This commit is contained in:
洛水居室 2023-03-28 22:33:38 +08:00
parent bf9a4478a3
commit b40a478ca7
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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)