签入版本

This commit is contained in:
2026-10-11 19:06:33 +08:00
parent 17d28de8b7
commit 4084c6bd17
674 changed files with 58855 additions and 1892 deletions
@@ -118,7 +118,7 @@ composer dev
# 方式二:单独启动 API 服务(内置 PHP 开发服务器,默认监听 127.0.0.1:8000)
# -----------------------------------------------------------------------------
# serve → 启动 Laravel 内置的 PHP 开发服务器
# 启动后浏览器访问 http://localhost:8000 即可
# 启动后浏览器访问 http://admin.laravel13.elevue 即可
php artisan serve
# -----------------------------------------------------------------------------
@@ -156,13 +156,13 @@ INFO Press Ctrl-C to quit.
# -----------------------------------------------------------------------------
# 健康检查(Laravel 内置 /up 路由)
# -----------------------------------------------------------------------------
curl http://localhost:8000/up
curl http://admin.laravel13.elevue/up
# → {"status":"ok"}
# -----------------------------------------------------------------------------
# 验证码接口(公开接口,同时验证 PHP → Redis 链路)
# -----------------------------------------------------------------------------
curl http://localhost:8000/api/captcha
curl http://admin.laravel13.elevue/api/captcha
# → {"code":0,"ok":true,"msg":"操作成功","data":{"key":"...","captcha":"data:image/png;base64,..."}}
# -----------------------------------------------------------------------------
@@ -171,7 +171,7 @@ curl http://localhost:8000/api/captcha
# -X POST → 使用 POST 方法
# -H → 设置请求头(Content-Type: application/json)
# -d → 发送 JSON 格式的请求体
curl -X POST http://localhost:8000/api/login \
curl -X POST http://admin.laravel13.elevue/api/login \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"123456"}'