zhibo/test_activity_api.bat

28 lines
889 B
Batchfile
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.

@echo off
echo ========================================
echo 测试用户活动记录API
echo ========================================
echo.
echo 1. 检查后端服务是否运行...
netstat -an | findstr "30001"
echo.
echo 2. 测试API需要登录token
echo 请在浏览器中登录管理后台然后在开发者工具中查看Network请求
echo 找到任意请求的 Authori-zation 头复制token值
echo.
echo 3. 手动测试命令替换YOUR_TOKEN为实际token:
echo curl -X GET "http://localhost:30001/api/admin/user/activity/follow?userId=121&page=1&limit=10" -H "Authori-zation: YOUR_TOKEN"
echo.
echo 4. 或者直接在管理后台测试:
echo - 打开 http://localhost:9527
echo - 登录后进入 用户管理 -^> 用户列表
echo - 点击用户121道玄的详情
echo - 切换到"关注记录""点赞记录"等标签页
echo.
pause