rescue: 断电事故后工作区全量备份

This commit is contained in:
2026-09-24 15:59:44 +08:00
parent 8a196d6c87
commit 08a9b962b4
204 changed files with 77921 additions and 77173 deletions
@@ -48,6 +48,12 @@ _APP_DATA_DIR = os.path.join(
os.getenv('LOCALAPPDATA') or os.getenv('APPDATA') or os.path.expanduser('~'),
'37duAutomation')
_SESSIONS_DIR = os.path.join(_APP_DATA_DIR, '.sessions')
# 按账号隔离会话目录:PLATFORM_ACCOUNT 指定当前登录账号(壳/插件由执行机注入),
# 未设置时沿用共享目录(兼容影刀版/命令行直跑)
_ACCOUNT = os.getenv('PLATFORM_ACCOUNT', '').strip()
if _ACCOUNT:
_SESSIONS_DIR = os.path.join(_SESSIONS_DIR, _ACCOUNT)
COOKIE_FILE = os.path.join(_SESSIONS_DIR, 'oa_cookies.json')
SHARED_ENV_FILE = os.path.join(_APP_DATA_DIR, '.env')