fix: 小程序结果/选题页与 Test 路由及分享逻辑

1、修复了 result 与 test 各题型页及 test-select 的跳转与数据问题。

2、调整 api/Test 与 route 注册。

3、优化 app 入口与 share 工具。

Made-with: Cursor
This commit is contained in:
Ghost
2026-04-14 10:39:14 +08:00
parent fe2d1a5cb0
commit 0aab56c842
13 changed files with 468 additions and 98 deletions

View File

@@ -23,6 +23,8 @@ Route::group('api', function () {
Route::post('analyze', 'api.Analyze/index');
// 小程序埋点批量上报(无需登录;带 token 时关联 user_id
Route::post('analytics/events', 'api.Analytics/batch');
// 好友打开分享卡片:凭 st 校验查看他人测试结果(无需登录)
Route::get('test/share-detail', 'api.Test/shareDetail');
})->middleware('cors');
// 前端需要认证的API路由