peixue-dev/Archive/[一次性]测试后端匿名访问-游客模式-2026-02-01.bat

35 lines
1.0 KiB
Batchfile
Raw Permalink 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
chcp 65001 >nul
echo ========================================
echo 测试后端匿名访问(游客模式)
echo ========================================
echo.
echo [测试1] 专项突破课程列表
curl -X GET "https://px.ddn-ai.cloud/api/special-course/list" -H "Content-Type: application/json"
echo.
echo.
echo [测试2] 兴趣培养课程列表
curl -X GET "https://px.ddn-ai.cloud/api/interest-course/list?pageNum=1&pageSize=10" -H "Content-Type: application/json"
echo.
echo.
echo [测试3] 测评服务列表
curl -X GET "https://px.ddn-ai.cloud/api/assessment/list?page=1&size=10" -H "Content-Type: application/json"
echo.
echo.
echo [测试4] 教师列表(对比)
curl -X GET "https://px.ddn-ai.cloud/api/teacher/list?page=1&size=10" -H "Content-Type: application/json"
echo.
echo.
echo ========================================
echo 测试完成
echo.
echo 如果返回401说明后端没有正确配置匿名访问
echo 如果返回200和数据说明后端配置正确
echo ========================================
pause