From 7e5f69203200b3196c5a6132c3da55c995492098 Mon Sep 17 00:00:00 2001 From: chenjunxue <1523825571@qq.com> Date: Mon, 31 Aug 2020 15:55:46 +0800 Subject: [PATCH] 2.2.8 修复检测好友是否可以添加,检测结果为不可添加时,没有数据返回 --- conf/config.yaml | 4 ++-- utils/parse_html.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/config.yaml b/conf/config.yaml index 084eb56..6955cec 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -4,5 +4,5 @@ SERVER: reconnect_interval: 3 VERSION: - code: 117 - name: 2.2.7 \ No newline at end of file + code: 118 + name: 2.2.8 \ No newline at end of file diff --git a/utils/parse_html.py b/utils/parse_html.py index 30bebe2..8b11621 100644 --- a/utils/parse_html.py +++ b/utils/parse_html.py @@ -449,7 +449,7 @@ def get_confirm_notifs(client, res): def hovercard_get_addfriend(res): b = bs4.BeautifulSoup(res['jsmods']['markup'][0][1]['__html'], 'html.parser') button = b.find('button', class_='FriendRequestAdd') - return not button is None + return True if button is not None else False def get_ext_data(res): -- libgit2 0.24.0