diff --git a/android/build/reports/problems/problems-report.html b/android/build/reports/problems/problems-report.html new file mode 100644 index 0000000..0e0b521 --- /dev/null +++ b/android/build/reports/problems/problems-report.html @@ -0,0 +1,663 @@ + + + + + + + + + + + + + Gradle Configuration Cache + + + +
+ +
+ Loading... +
+ + + + + + diff --git a/datas/data.md b/datas/data.md new file mode 100644 index 0000000..7ab3f14 --- /dev/null +++ b/datas/data.md @@ -0,0 +1,21 @@ +## 接口与数据文件清单 + +进入 `point-book.vue` 页面调用的接口(已排除个人信息 `getHomeData`),均来自**测试环境** `apitest.shelingxingqiu.com`: + +| # | 接口函数 | URL | 调用时机 | 数据文件 | +| --- | ---------------------------- | ------------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | +| 1 | `getPointBookConfigAPI` | `GET /user/score/sheet/option` | onMounted | [getPointBookConfigAPI.json](file:///Users/ZhuanZ/Documents/gdfw/shoot-miniprograms/datas/getPointBookConfigAPI.json) | +| 2 | `getPointBookStatisticsAPI` | `GET /v2/user/score/sheet/statistics` | onShow / user 变化 | [getPointBookStatisticsAPI.json](file:///Users/ZhuanZ/Documents/gdfw/shoot-miniprograms/datas/getPointBookStatisticsAPI.json) | +| 3 | `getPointBookRankListAPI(1)` | `GET /user/score/sheet/week/shoot/rank/list?pageNum=1&pageSize=100` | onShow | [getPointBookRankListAPI.json](file:///Users/ZhuanZ/Documents/gdfw/shoot-miniprograms/datas/getPointBookRankListAPI.json) | + +## 关于环境的说明 + +之前失败是因为我默认请求了生产环境 `api.shelingxingqiu.com`,而你的 token 是测试环境签发的(小程序 envVersion 为 develop/trial 时走 `apitest.shelingxingqiu.com`,见 [apis.js:9-20](file:///Users/ZhuanZ/Documents/gdfw/shoot-miniprograms/src/apis.js#L9-L20))。切换到测试环境后三个接口均返回 `code:0` 成功。 + +## 数据结构说明 + +每个 JSON 文件保存的是接口响应中 `data` 字段的内容(与前端 `request` 函数 resolve 的结果一致,见 [apis.js:50](file:///Users/ZhuanZ/Documents/gdfw/shoot-miniprograms/src/apis.js#L50))。 + +- **Config**:`bowOption`(5种弓) + `targetOption`(10种靶),两环境数据一致 +- **Statistics**:签到/今日与累计箭数/训练天数/黄心率/平均环数/各环数分布/本周箭着点坐标(当前 `weekArrows` 为空) +- **Rank**:`my`(当前用户) + `list`(榜单,本周共2人上榜) + `total` diff --git a/datas/getPointBookConfigAPI.json b/datas/getPointBookConfigAPI.json new file mode 100644 index 0000000..5f9aeda --- /dev/null +++ b/datas/getPointBookConfigAPI.json @@ -0,0 +1,91 @@ +{ + "bowOption": [ + { + "id": 1, + "name": "反曲弓", + "icon": "https://static.shelingxingqiu.com/attachment/2025-08-04/dbt8n02c0mwlgpcihn.png" + }, + { + "id": 2, + "name": "复合弓", + "icon": "https://static.shelingxingqiu.com/attachment/2025-08-04/dbt8n02d17qt8548j4.png" + }, + { + "id": 3, + "name": "美洲猎弓", + "icon": "https://static.shelingxingqiu.com/attachment/2025-08-04/dbt8n02cv1b8ucjp4y.png" + }, + { + "id": 4, + "name": "传统弓", + "icon": "https://static.shelingxingqiu.com/attachment/2025-08-04/dbt8n02cohc2omofsb.png" + }, + { + "id": 5, + "name": "光弓", + "icon": "https://static.shelingxingqiu.com/attachment/2025-08-04/dbt8n01ru48k0bwwz8.png" + } + ], + "targetOption": [ + { + "id": 1, + "name": "40 全环靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%85%A8%E7%8E%AF%E9%9D%B6@3x.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x.png" + }, + { + "id": 2, + "name": "80 全环靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%85%A8%E7%8E%AF%E9%9D%B6@3x.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x.png" + }, + { + "id": 3, + "name": "122 全环靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%85%A8%E7%8E%AF%E9%9D%B6@3x.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x.png" + }, + { + "id": 4, + "name": "40 半环靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%8D%8A%E7%8E%AF%E9%9D%B6.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(1).png" + }, + { + "id": 5, + "name": "60 半环靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%8D%8A%E7%8E%AF%E9%9D%B6.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(1).png" + }, + { + "id": 6, + "name": "80 半环靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%8D%8A%E7%8E%AF%E9%9D%B6.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(1).png" + }, + { + "id": 7, + "name": "三连靶", + "icon": "https://static.shelingxingqiu.com/20260310target/%E4%B8%89%E8%BF%9E.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(2).png" + }, + { + "id": 8, + "name": "品字靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%93%81%E5%AD%97%E9%9D%B6.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(3).png" + }, + { + "id": 9, + "name": "复合 三连靶", + "icon": "https://static.shelingxingqiu.com/20260310target/%E5%A4%8D%E5%90%88%E4%B8%89%E8%BF%9E.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(5).png" + }, + { + "id": 10, + "name": "复合 品字靶", + "icon": "https://static.shelingxingqiu.com/target20251126/%E5%A4%8D%E5%90%88%E5%93%81%E5%AD%97%E9%9D%B6.svg", + "iconPng": "https://static.shelingxingqiu.com/shootTarget/shoot@2x(4).png" + } + ] +} \ No newline at end of file diff --git a/datas/getPointBookRankListAPI.json b/datas/getPointBookRankListAPI.json new file mode 100644 index 0000000..de8141f --- /dev/null +++ b/datas/getPointBookRankListAPI.json @@ -0,0 +1,44 @@ +{ + "my": { + "id": 339, + "name": "高桥凉介(发量惊人)", + "avatar": "https://static.shelingxingqiu.com/attachment/2026-08-08/dkj77wp1cmk3ovqjimjpeg", + "totalDay": 1, + "averageRing": 7, + "weekArrow": 0, + "ifLike": false, + "rank": 0, + "likeTotal": 0, + "vip": true, + "sVip": true + }, + "list": [ + { + "id": 212, + "name": "Amer就是总部的喵美酱啦!𓆡", + "avatar": "https://static.shelingxingqiu.com/attachment/2026-08-07/dkijshwr9k3i0aiyqnjpeg", + "totalDay": 29, + "averageRing": 5.681518151815181, + "weekArrow": 60, + "ifLike": false, + "rank": 1, + "likeTotal": 0, + "vip": false, + "sVip": false + }, + { + "id": 338, + "name": "Sylar", + "avatar": "https://static.shelingxingqiu.com/attachment/2026-08-07/dkibj7cfdx34jh04gtjpeg", + "totalDay": 1, + "averageRing": 4.583333333333333, + "weekArrow": 24, + "ifLike": false, + "rank": 2, + "likeTotal": 0, + "vip": true, + "sVip": false + } + ], + "total": 2 +} diff --git a/datas/getPointBookStatisticsAPI.json b/datas/getPointBookStatisticsAPI.json new file mode 100644 index 0000000..82c061f --- /dev/null +++ b/datas/getPointBookStatisticsAPI.json @@ -0,0 +1,24 @@ +{ + "weeksCheckIn": [false, false, false, false, false, false, false], + "todayTotalArrow": 0, + "totalArrow": 3, + "totalDay": 1, + "averageRing": 7, + "yellowRate": 0.3333, + "checkInCount": -44, + "ringRate": { + "-1": 0, + "0": 0, + "1": 0, + "10": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "weekArrows": [] +}