restore: 恢复 11-06~11-09 本地未提交改动

- libs: 新增 hr_sdk / hotel_report / dingtalk,更新 desktopauto
- controlplane-next: SDK 管理模块(controller/entity/migrations)与前端视图
- electron-shell: 插件同步、注册表、runner 调整
- plugins: XQ0035/XQ0041/XQ0042/XQ0045_XQ0046/XQ0048/XQ0076/XQ0078 等版本更新
- tests/tools: 新增 SDK 兼容性检查与打包工具(sdk_pack.py、sdk_compat_check.py)
This commit is contained in:
2026-11-09 17:27:10 +08:00
parent 19078629d1
commit 1664821117
327 changed files with 29670 additions and 718 deletions
@@ -405,6 +405,7 @@ def ensure_login(page, username=None, password=None, force=False):
config.debug(f'安装鉴权 hook 失败:{e}')
if not force and logged_in(page):
config.log('浏览器残留登录态仍有效,直接复用')
config.restore_window_mode(page) # 已登录,不用再全屏/置顶
return {'success': True, 'message': '复用残留登录态', 'relogin': False}
if not username or not password:
@@ -435,6 +436,7 @@ def ensure_login(page, username=None, password=None, force=False):
if _login_flow(page, agreed=policy_ok):
config.log(f'登录成功:{page.url}')
config.restore_window_mode(page) # 已登录,不用再全屏/置顶
return {'success': True, 'message': '登录成功', 'relogin': True}
return {'success': False, 'message': '登录未完成(政策页未同意 / 账号密码有误 / 超时)', 'relogin': True}