refactor: 升级OCR依赖与适配rapidocr v3+,补充业务字段展示

主要变更:
1. 统一替换rapidocr-onnxruntime为rapidocr+onnxruntime依赖包
2. 适配rapidocr v3+ API变更:调整OCR结果解析逻辑
3. 补充展示员工岗位信息到OA审批通知
4. 优化OA详情链接格式为Markdown可点击样式
5. 修复OCR图片EXIF旋转问题与文件名解码
6. 新增RPA开发提成评分规则文档
7. 重构OA登录入口参数,简化调用逻辑
8. 删除临时测试脚本
This commit is contained in:
2026-08-27 13:32:48 +08:00
parent 54e2fef25d
commit eabadf5a37
12 changed files with 209 additions and 158 deletions
+4 -1
View File
@@ -695,6 +695,9 @@ def _format_resign_block(r):
name = info.get("员工姓名") or r.get("creator") or "未知"
code = info.get("工号") or ""
lines = [f"**🔹 {name}**" + (f"(工号 {code})" if code else "")]
post = info.get("岗位") or ""
if post:
lines.append(f"> 岗位:{post}")
# 电子签状态(有值才展示,便于核对)
for key, label in (("是否已发起电子签", "发起"), ("员工签署状态", "员工"), ("企业签署状态", "企业")):
val = info.get(key)
@@ -708,7 +711,7 @@ def _format_resign_block(r):
lines.append(f"> 备注:{reason}")
url = r.get("detail_url") or ""
if url:
lines.append(f"> 详情链接:{url}")
lines.append(f"> 详情页:[查看详情]({url})")
return "\n".join(lines)