WechatOnCloud/bridge/woc_bridge/ui/profiles/wechat_4.0_1920x1080.yaml
Kris 2348a04163 feat: 完成微信4.0模板UI重构与批量群发、导出功能落地
本次提交包含多项核心更新:
1. 新增微信4.0浅色主题UI模板资源与说明文档,补充了联系人图标、新的朋友入口等四个UI元素的图像匹配模板
2. 重构UI驱动层,将原2375行的单文件拆分为5个职责清晰的子驱动类,提升代码可维护性
3. 新增批量群发消息与聊天记录导出的完整数据模型、路由与后台协程,支持幂等校验与风控配置
4. 为所有业务接口新增post_verify校验逻辑,补充了verified字段返回操作结果
5. 优化媒体文件解密逻辑,修复了导出功能中的数据库错误处理与分辨率硬编码问题
6. 更新版本配置,将媒体发送功能标记为已落地,调整了能力列表与配置项
2026-07-16 16:53:42 +08:00

136 lines
3.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 微信 4.0 UI 自动化 Profile - 1920x1080 分辨率
#
# 适用场景:微信窗口在 1920x1080 桌面环境下运行。
# 图像模板位于 templates/wechat_4.0/light/,几何兜底基于 1920x1080 比例计算。
#
# 字段说明:
# by_image: 模板文件名(相对 templates/wechat_4.0/light/
# by_geom: 几何兜底规格(图像匹配失败或熔断时使用)
# relative_to: 语义占位window / window_bottom_right
# x_ratio / y_ratio: 相对窗口宽高的比例位置
# x_offset / y_offset: 绝对像素偏移(含正负号)
# threshold: 图像匹配置信度阈值
# require_image: true 时图像失败拒绝执行(高风险元素)
# description: 元素描述
search_box:
by_image: search_box.png
by_geom:
relative_to: window
x_ratio: 0.08
y_ratio: 0.05
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 左侧顶部搜索框
send_button:
by_image: send_button.png
by_geom:
relative_to: window_bottom_right
x_ratio: 1.0
y_ratio: 1.0
x_offset: -60
y_offset: -30
threshold: 0.80
require_image: false
description: 右下角发送按钮
input_box:
by_image: input_box.png
by_geom:
relative_to: window
x_ratio: 0.65
y_ratio: 0.93
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 聊天输入框
input_box_empty:
by_image: input_box_empty.png
by_geom:
relative_to: window
x_ratio: 0.65
y_ratio: 0.93
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 空输入框灰色提示态(发送成功后校验用)
search_result_first:
by_image: search_result_first.png
by_geom:
relative_to: window
x_ratio: 0.08
y_ratio: 0.11
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 搜索结果第一项
main_view:
by_image: main_view.png
by_geom:
relative_to: window
x_ratio: 0.65
y_ratio: 0.50
x_offset: 0
y_offset: 0
threshold: 0.75
require_image: false
description: 主聊天视图post_verify 校验用,阈值略低因区域大)
# 好友申请通过 UI 元素定位experimental坐标为估算值需实测校准
contact_icon:
by_image: contact_icon.png
by_geom:
relative_to: window
x_ratio: 0.04
y_ratio: 0.15
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 左侧导航栏通讯录图标
new_friend_entry:
by_image: new_friend_entry.png
by_geom:
relative_to: window
x_ratio: 0.04
y_ratio: 0.22
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 通讯录页"新的朋友"入口
verify_button:
by_image: verify_button.png
by_geom:
relative_to: window_bottom_right
x_ratio: 1.0
y_ratio: 0.30
x_offset: -80
y_offset: 0
threshold: 0.75
require_image: false
description: 好友申请项"前往验证"按钮
confirm_button:
by_image: confirm_button.png
by_geom:
relative_to: window_bottom_right
x_ratio: 0.5
y_ratio: 1.0
x_offset: 0
y_offset: -60
threshold: 0.75
require_image: false
description: '"通过朋友验证"弹窗确定按钮'