Files
Simon bea288e414 feat: 2026-07-11 全量更新 - 代办集成+会议室预定+知识迭代修复+UI统一+Bug修复
== 已部署上线 (9项) ==
- 代办事项真实数据源集成 (企微审批API 8bug修复链)
- H5/坐席端 Logo样式统一+绿色背景
- 视频引导页修复 (localStorage key v2)
- 坐席端 v9 Vue版本修复 (ElMessage._context)
- 截图按钮 v10 修复 (getDisplayMedia user gesture)
- 扫码样式恢复+H5扫码登录跳转修复
- H5截图快捷键提示

== 代码完成待部署 (3项) ==
- 知识迭代3Bug修复 (#8 POST端点/#7 MERGE幂等/#6 过期检查)
- 会议室预定-小鱼易联终端 (40文件, 40/40测试通过)
- IT资产升级审批推送 (asset_service.py)

== 需求文档 (2项) ==
- 坐席端AI辅助消息框-PRD (4项新功能确认)
- 坐席端布局优化建议 v2.0 (7天计划)

== 新增文档 ==
- 日报-2026-07-11.md
- 知识迭代Bug修复报告-20260711.md
- 会议室预定-部署指南.md
- CHANGELOG.md 更新

== 测试 ==
- test_todo_integration.py: 40/40
- test_meetingroom.py: 40/40
- test_bugfix_ki_suggestions.py: 21/21
2026-07-11 23:13:10 +08:00

46 lines
1.3 KiB
Python

#!/usr/bin/env python3
"""直接发送模板卡片测试消息"""
import asyncio
import sys
sys.path.insert(0, '/app')
from app.services.wecom_service import WecomService
async def main():
"""发送测试模板卡片"""
# 测试用的 UserID(宋献的企微账号)
user_id = "sxn"
# 创建服务实例
wecom = WecomService()
# 模板卡片内容
main_title = "🧪 测试消息"
main_title_desc = "这是一条测试用的模板卡片消息,用于验证功能是否正常。"
sub_title_text = "点击下方按钮查看详情"
card_action_url = "https://itsupport.servyou.com.cn"
print(f"📤 发送模板卡片到 UserID: {user_id}")
print(f" 标题: {main_title}")
print(f" 描述: {main_title_desc}")
try:
result = await wecom.send_template_card_message(
user_id=user_id,
main_title=main_title,
main_title_desc=main_title_desc,
sub_title_text=sub_title_text,
card_action_url=card_action_url
)
print(f"\n✅ 发送结果: {result}")
except Exception as e:
print(f"\n❌ 发送失败: {e}")
import traceback
traceback.print_exc()
if __name__ == "__main__":
asyncio.run(main())