refactor: 重构多插件 UI 与配置结构,新增抖音/新美大平台核对插件

- 新增 XQ0042 抖音平台核对、XQ0041 新美大平台核对插件的 UI 源码与打包脚本
- 重构续签电子签、服务岗转正不通过电子签等插件的版本与配置
- 删除旧版考勤异常处理、微盟数据导出等冗余插件文件
- 修复出勤积分更新插件的 OPM 推送判断逻辑
- 优化壳子插件页面的 iframe 滚动条样式
This commit is contained in:
2026-10-28 10:51:27 +08:00
parent f0c32c4f20
commit 0a32518060
313 changed files with 13336 additions and 43559 deletions
-27
View File
@@ -1,27 +0,0 @@
# -*- coding: utf-8 -*-
"""XQ0033 插件 - 新增段历史记录(_xq0033_state.json)。
结构:{数据文件名: {"new_dates": ["YYYY-MM-DD", ...]}}
删除旧修正行时跳过这些日期,防止误删历轮新增段。
"""
import json
import os
from .. import config
def load_state(path):
"""读取状态文件(不存在或损坏时按空处理并告警)。"""
if not path or not os.path.exists(path):
return {}
try:
with open(path, encoding="utf-8") as f:
return json.load(f) or {}
except Exception as e:
config.logger.warning("状态文件读取失败(按空历史处理):%s", e)
return {}
def save_state(path, state):
with open(path, "w", encoding="utf-8") as f:
json.dump(state, f, ensure_ascii=False, indent=2)