Files

28 lines
636 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
"""测试美化后的超时提醒模板卡片"""
import asyncio
import sys
sys.path.insert(0, '/app')
from app.services.reminder_service import send_reminder_message
async def main():
"""发送测试提醒"""
user_id = "sxn" # 测试用户
print(f"📤 发送美化后的超时提醒到 UserID: {user_id}")
try:
result = await send_reminder_message(user_id)
print(f"\n✅ 发送结果: {result}")
except Exception as e:
print(f"\n❌ 发送失败: {e}")
import traceback
traceback.print_exc()
if __name__ == "__main__":
asyncio.run(main())