正在显示
2 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -449,7 +449,10 @@ def get_confirm_notifs(client, res): | @@ -449,7 +449,10 @@ def get_confirm_notifs(client, res): | ||
| 449 | def hovercard_get_addfriend(res): | 449 | def hovercard_get_addfriend(res): |
| 450 | b = bs4.BeautifulSoup(res['jsmods']['markup'][0][1]['__html'], 'html.parser') | 450 | b = bs4.BeautifulSoup(res['jsmods']['markup'][0][1]['__html'], 'html.parser') |
| 451 | button = b.find('button', class_='FriendRequestAdd') | 451 | button = b.find('button', class_='FriendRequestAdd') |
| 452 | - return True if button is not None else False | 452 | + res = { |
| 453 | + 'result': True if button is not None else False | ||
| 454 | + } | ||
| 455 | + return res | ||
| 453 | 456 | ||
| 454 | 457 | ||
| 455 | def get_ext_data(res): | 458 | def get_ext_data(res): |
-
请 注册 或 登录 后发表评论