Commit 08c75f15 by baiquan

fix(service): 修改登录验证逻辑- 将 check_result 初始值改为 True

- 反转了登录验证的条件判断,确保逻辑一致性
- 优化了代码结构,提高了可读性
parent 5afcd35e
...@@ -150,7 +150,7 @@ def listen_check_login(tab): ...@@ -150,7 +150,7 @@ def listen_check_login(tab):
if '/aff/check_login' in packet.url and packet.response.body: if '/aff/check_login' in packet.url and packet.response.body:
login_res = packet.response.body login_res = packet.response.body
logger.info(f'获取确认登录数据:{login_res}') logger.info(f'获取确认登录数据:{login_res}')
if login_res['description'] != '' or login_res['deputy_has_login'] != True and login_res['error_code'] != 0 : if login_res['description'] != '' or not login_res['deputy_has_login'] or login_res['error_code'] != 0 or not login_res['subject_has_login']:
check_result = False check_result = False
return check_result return check_result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment