@hupu-tech/shaper 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +6 -0
- package/dist/cli.js +2 -2
- package/dist/cloud/client.d.ts +1 -2
- package/dist/cloud/service-build.d.ts +5 -7
- package/dist/index.js +1 -1
- package/dist/project/create.d.ts +9 -3
- package/dist/project/delivery.d.ts +5 -5
- package/dist/runtime.d.ts +2 -1
- package/dist/runtime.js +1 -1
- package/dist/shared-2WDEQ3AQ.js +19 -0
- package/package.json +1 -3
- package/skills/business/SKILL.md +158 -0
- package/skills/business/activity/README.md +14 -0
- package/skills/business/activity/hupu-leaderboard-template/SKILL.md +52 -0
- package/skills/business/activity/hupu-leaderboard-template/example/README.md +20 -0
- package/skills/business/activity/hupu-leaderboard-template/example/cloudfunctions/activity_api/.cloudignore +3 -0
- package/skills/business/activity/hupu-leaderboard-template/example/cloudfunctions/activity_api/index.js +218 -0
- package/skills/business/activity/hupu-leaderboard-template/example/cloudfunctions/activity_api/package.json +15 -0
- package/skills/business/activity/hupu-leaderboard-template/example/cloudfunctions/activity_api/scf_bootstrap +3 -0
- package/skills/business/activity/hupu-leaderboard-template/example/index.html +291 -0
- package/skills/business/activity/hupu-leaderboard-template/example/migrations/20260828210000_create_leaderboard.sql +54 -0
- package/skills/business/activity/hupu-lottery-draw/SKILL.md +50 -0
- package/skills/business/activity/hupu-lottery-draw/example/README.md +21 -0
- package/skills/business/activity/hupu-lottery-draw/example/cloudfunctions/activity_api/.cloudignore +3 -0
- package/skills/business/activity/hupu-lottery-draw/example/cloudfunctions/activity_api/index.js +142 -0
- package/skills/business/activity/hupu-lottery-draw/example/cloudfunctions/activity_api/package.json +9 -0
- package/skills/business/activity/hupu-lottery-draw/example/cloudfunctions/activity_api/scf_bootstrap +3 -0
- package/skills/business/activity/hupu-lottery-draw/example/index.html +178 -0
- package/skills/business/activity/hupu-lottery-draw/example/migrations/20260828220000_create_draw.sql +193 -0
- package/skills/business/activity/hupu-pk-voting/SKILL.md +54 -0
- package/skills/business/activity/hupu-pk-voting/example/README.md +44 -0
- package/skills/business/activity/hupu-pk-voting/example/cloudfunctions/activity_api/.cloudignore +3 -0
- package/skills/business/activity/hupu-pk-voting/example/cloudfunctions/activity_api/index.js +370 -0
- package/skills/business/activity/hupu-pk-voting/example/cloudfunctions/activity_api/package.json +15 -0
- package/skills/business/activity/hupu-pk-voting/example/cloudfunctions/activity_api/scf_bootstrap +2 -0
- package/skills/business/activity/hupu-pk-voting/example/index.html +729 -0
- package/skills/business/activity/hupu-pk-voting/example/migrations/20260828220000_create_pk_vote.sql +168 -0
- package/skills/business/activity/hupu-request-activity-execute-vote-task/SKILL.md +77 -0
- package/skills/business/activity/hupu-request-activity-get-vote-detail/SKILL.md +84 -0
- package/skills/business/activity/hupu-request-activity-get-vote-task-list/SKILL.md +86 -0
- package/skills/business/activity/hupu-request-activity-list-by-biz-keys/SKILL.md +153 -0
- package/skills/business/activity/hupu-request-activity-report-vote-task/SKILL.md +58 -0
- package/skills/business/activity/hupu-request-activity-submit-vote/SKILL.md +58 -0
- package/skills/business/activity/hupu-vote-task/SKILL.md +47 -0
- package/skills/business/community/README.md +13 -0
- package/skills/business/community/hupu-request-bbs-detail/SKILL.md +197 -0
- package/skills/business/community/hupu-request-bbs-get-tag-thread-list/SKILL.md +257 -0
- package/skills/business/community/hupu-request-bbs-get-topic-threads/SKILL.md +159 -0
- package/skills/business/community/hupu-request-bbs-gets-thread-post-list/SKILL.md +124 -0
- package/skills/business/community/hupu-request-bbs-open-post-editor/SKILL.md +75 -0
- package/skills/business/community/hupu-request-bbs-reply-post/SKILL.md +59 -0
- package/skills/business/community/hupu-score-add-score/SKILL.md +57 -0
- package/skills/business/community/hupu-score-get-item-detail/SKILL.md +173 -0
- package/skills/business/community/hupu-score-get-score/SKILL.md +263 -0
- package/skills/business/quality/README.md +7 -0
- package/skills/business/quality/hupu-security-check-audit/SKILL.md +39 -0
- package/skills/business/quality/hupu-wasm-compression/SKILL.md +69 -0
- package/skills/business/quality/hupu-wasm-compression/agents/openai.yaml +4 -0
- package/skills/business/quality/hupu-wasm-compression/tool/checks.mjs +90 -0
- package/skills/business/quality/hupu-wasm-compression/tool/compress-worker.mjs +40 -0
- package/skills/business/quality/hupu-wasm-compression/tool/public/app.js +84 -0
- package/skills/business/quality/hupu-wasm-compression/tool/public/index.html +80 -0
- package/skills/business/quality/hupu-wasm-compression/tool/public/style.css +3 -0
- package/skills/business/quality/hupu-wasm-compression/tool/server.mjs +126 -0
- package/skills/business/quality/hupu-web-security-audit/SKILL.md +45 -0
- package/skills/business/quality/hupu-web-security-audit/agents/openai.yaml +4 -0
- package/skills/business/rewards/README.md +13 -0
- package/skills/business/rewards/hupu-vacoin/SKILL.md +70 -0
- package/skills/business/rewards/hupu-vacoin-consume-coins/SKILL.md +47 -0
- package/skills/business/rewards/hupu-vacoin-get-coin-overview/SKILL.md +52 -0
- package/skills/business/rewards/hupu-vacoin-get-session-coins/SKILL.md +44 -0
- package/skills/business/rewards/hupu-vacoin-reset-session-id/SKILL.md +39 -0
- package/skills/business/rewards/hupu-vatask/SKILL.md +63 -0
- package/skills/business/rewards/hupu-vatask-complete-reward-video/SKILL.md +43 -0
- package/skills/business/rewards/hupu-vatask-consume-activity-chance/SKILL.md +48 -0
- package/skills/business/rewards/hupu-vatask-get-activity-task-state/SKILL.md +49 -0
- package/skills/business/runtime/README.md +13 -0
- package/skills/business/runtime/hupu-add-to-desktop/SKILL.md +51 -0
- package/skills/business/runtime/hupu-close-webview/SKILL.md +48 -0
- package/skills/business/runtime/hupu-cloud-auth/SKILL.md +43 -0
- package/skills/business/runtime/hupu-cloud-request/SKILL.md +56 -0
- package/skills/business/runtime/hupu-fullscreen-safe-top/SKILL.md +33 -0
- package/skills/business/runtime/hupu-navigate-to/SKILL.md +45 -0
- package/skills/business/runtime/hupu-request/SKILL.md +67 -0
- package/skills/business/runtime/hupu-seer-chat/SKILL.md +183 -0
- package/skills/business/runtime/hupu-track-report/SKILL.md +71 -0
- package/skills/business/sharing/README.md +7 -0
- package/skills/business/sharing/hupu-oss-upload-file/SKILL.md +40 -0
- package/skills/business/sharing/hupu-result-poster-posting/SKILL.md +37 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/README.md +14 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/cloudfunctions/activity_api/.cloudignore +3 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/cloudfunctions/activity_api/index.js +187 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/cloudfunctions/activity_api/package.json +15 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/cloudfunctions/activity_api/scf_bootstrap +3 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/index.html +256 -0
- package/skills/business/sharing/hupu-result-poster-posting/example/migrations/20260828213000_create_result_poster_results.sql +60 -0
- package/skills/business/sharing/hupu-result-poster-posting/references/api-contract.md +46 -0
- package/skills/business/sharing/hupu-social-share/SKILL.md +27 -0
- package/skills/business/sports/README.md +27 -0
- package/skills/business/sports/hupu-request-basketball-player-info/SKILL.md +131 -0
- package/skills/business/sports/hupu-request-basketball-single-match/SKILL.md +158 -0
- package/skills/business/sports/hupu-request-basketball-team-info/SKILL.md +96 -0
- package/skills/business/sports/hupu-request-basketball-team-player-list/SKILL.md +108 -0
- package/skills/business/sports/hupu-request-basketball-team-salary-info/SKILL.md +85 -0
- package/skills/business/sports/hupu-request-football-coach-info/SKILL.md +76 -0
- package/skills/business/sports/hupu-request-football-live-room-news-list/SKILL.md +85 -0
- package/skills/business/sports/hupu-request-football-match-info/SKILL.md +126 -0
- package/skills/business/sports/hupu-request-football-player-info/SKILL.md +82 -0
- package/skills/business/sports/hupu-request-football-team-info/SKILL.md +83 -0
- package/skills/business/sports/hupu-request-football-team-player-season-stats/SKILL.md +73 -0
- package/skills/business/sports/hupu-request-football-team-season-year/SKILL.md +68 -0
- package/skills/business/sports/hupu-request-kog-playbyplay/SKILL.md +77 -0
- package/skills/business/sports/hupu-request-live-tab-info-list/SKILL.md +85 -0
- package/skills/business/sports/hupu-request-live-tab-list/SKILL.md +66 -0
- package/skills/business/sports/hupu-request-lol-playbyplay/SKILL.md +77 -0
- package/skills/business/sports/hupu-request-match-get-tab-detail-schedule-list/SKILL.md +113 -0
- package/skills/business/sports/hupu-request-match-query-all-diagram-info-by-id/SKILL.md +79 -0
- package/skills/business/sports/hupu-request-match-query-match-stats-by-match-info/SKILL.md +85 -0
- package/skills/business/sports/hupu-request-news-news-common-list/SKILL.md +90 -0
- package/skills/business/sports/hupu-request-news-player-news-list/SKILL.md +79 -0
- package/skills/business/sports/hupu-request-news-subject-news/SKILL.md +89 -0
- package/skills/business/sports/hupu-request-news-team-news-list/SKILL.md +76 -0
- package/skills/business/storage/README.md +9 -0
- package/skills/business/storage/hupu-cloud-save/SKILL.md +129 -0
- package/skills/business/storage/hupu-cloud-save/references/legacy-migration.md +111 -0
- package/skills/business/storage/hupu-cloud-save-load/SKILL.md +41 -0
- package/skills/business/storage/hupu-cloud-save-save/SKILL.md +45 -0
- package/skills/business/storage/hupu-storage-get-value/SKILL.md +26 -0
- package/skills/business/storage/hupu-storage-set-value/SKILL.md +42 -0
- package/skills/business/user/README.md +6 -0
- package/skills/business/user/hupu-auth-get-user-info/SKILL.md +47 -0
- package/skills/business/user/hupu-game-auth/SKILL.md +46 -0
- package/skills/core/hupu-business/SKILL.md +1 -1
- package/skills/core/hupu-business/references/runtime.md +17 -11
- package/skills/core/shaper-backend/SKILL.md +1 -1
- package/skills/core/shaper-backend/references/database.md +2 -2
- package/skills/core/shaper-backend/references/legacy.md +1 -1
- package/skills/core/shaper-backend/references/node-server.md +29 -20
- package/skills/core/shaper-development/SKILL.md +5 -1
- package/skills/core/shaper-development/references/project-setup.md +1 -1
- package/skills/core/shaper-game-development/SKILL.md +1 -1
- package/skills/core/shaper-release/SKILL.md +1 -1
- package/templates/cloud-service/README.md +4 -30
- package/templates/cloud-service/cloud.json +6 -9
- package/templates/cloud-service/package-lock.json +1090 -0
- package/templates/cloud-service/release.json +11 -0
- package/templates/cloud-service/server.cjs +37 -0
- package/templates/h5/package-lock.json +40 -40
- package/templates/leaderboard/README.md +3 -0
- package/templates/leaderboard/cloud/database/migrations/202611130001_leaderboard.sql +6 -0
- package/templates/leaderboard/cloud/functions/api/cloud.json +10 -0
- package/templates/leaderboard/cloud/functions/api/leaderboard.cjs +49 -0
- package/templates/leaderboard/cloud/functions/api/package-lock.json +1093 -0
- package/templates/leaderboard/cloud/functions/api/package.json +19 -0
- package/templates/leaderboard/cloud/functions/api/server.cjs +25 -0
- package/templates/leaderboard/cloud/gateway/routes.json +15 -0
- package/templates/leaderboard/docs/design.md +1 -0
- package/templates/leaderboard/docs/integration.md +12 -0
- package/templates/leaderboard/docs/product.md +1 -0
- package/templates/leaderboard/docs/validation.md +1 -0
- package/templates/leaderboard/index.html +12 -0
- package/templates/leaderboard/package-lock.json +828 -0
- package/templates/leaderboard/package.json +17 -0
- package/templates/leaderboard/public/.gitkeep +1 -0
- package/templates/leaderboard/shaper.config.json +7 -0
- package/templates/leaderboard/src/main.js +67 -0
- package/templates/leaderboard/src/style.css +69 -0
- package/templates/leaderboard/test/leaderboard.test.cjs +93 -0
- package/templates/offline-game/README.md +3 -0
- package/templates/offline-game/docs/design.md +1 -0
- package/templates/offline-game/docs/integration.md +10 -0
- package/templates/offline-game/docs/product.md +1 -0
- package/templates/offline-game/docs/validation.md +1 -0
- package/templates/offline-game/index.html +1 -0
- package/templates/offline-game/package-lock.json +828 -0
- package/templates/offline-game/package.json +16 -0
- package/templates/offline-game/public/.gitkeep +1 -0
- package/templates/offline-game/shaper.config.json +7 -0
- package/templates/offline-game/src/game.js +11 -0
- package/templates/offline-game/src/main.js +12 -0
- package/templates/offline-game/src/style.css +1 -0
- package/templates/offline-game/test/game.test.js +7 -0
- package/templates/phaser/package-lock.json +70 -70
- package/templates/react/package-lock.json +74 -74
- package/dist/shared-F5CQJEWB.js +0 -19
- package/templates/cloud-service/handlers.cjs +0 -46
- package/vendor/cloud-server/hupu-cloud-server-0.1.0.tgz +0 -0
- package/vendor/cloud-server/release.json +0 -12
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
const http = require("http");
|
|
2
|
+
const zlib = require("zlib");
|
|
3
|
+
const tcb = require("@cloudbase/node-sdk");
|
|
4
|
+
|
|
5
|
+
const app = tcb.init({
|
|
6
|
+
env: process.env.CLOUDBASE_ENV_ID || process.env.TCB_ENV,
|
|
7
|
+
accessKey: process.env.COLORBOX__ACCESS_KEY
|
|
8
|
+
});
|
|
9
|
+
const rdb = app.rdb({ database: "public" });
|
|
10
|
+
const RESULT_TABLE = "result_poster_results";
|
|
11
|
+
|
|
12
|
+
function apiPath(req) {
|
|
13
|
+
const pathname = new URL(req.url, "http://localhost").pathname || "/";
|
|
14
|
+
return pathname.replace(/^\/api(?=\/|$)/, "") || "/";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function readPuid(req) {
|
|
18
|
+
const raw = req.headers["x-cloudbase-context"];
|
|
19
|
+
if (!raw) {
|
|
20
|
+
const error = new Error("请先登录");
|
|
21
|
+
error.statusCode = 401;
|
|
22
|
+
throw error;
|
|
23
|
+
}
|
|
24
|
+
let buffer = Buffer.from(String(raw).trim(), "base64");
|
|
25
|
+
if (buffer.length >= 2 && buffer[0] === 0x1f && buffer[1] === 0x8b) {
|
|
26
|
+
buffer = zlib.gunzipSync(buffer);
|
|
27
|
+
}
|
|
28
|
+
const context = JSON.parse(buffer.toString("utf8"));
|
|
29
|
+
const puid = context.customUserId || context.userId || context.uid;
|
|
30
|
+
if (!puid) {
|
|
31
|
+
const error = new Error("请先登录");
|
|
32
|
+
error.statusCode = 401;
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
return String(puid);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function queryRows(result) {
|
|
39
|
+
if (!result) return [];
|
|
40
|
+
if (Array.isArray(result)) return result;
|
|
41
|
+
if (Array.isArray(result.data)) return result.data;
|
|
42
|
+
if (Array.isArray(result.rows)) return result.rows;
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function getJsonBody(req) {
|
|
47
|
+
return new Promise((resolve, reject) => {
|
|
48
|
+
let body = "";
|
|
49
|
+
req.on("data", (chunk) => {
|
|
50
|
+
body += chunk;
|
|
51
|
+
if (body.length > 65536) reject(new Error("请求内容过大"));
|
|
52
|
+
});
|
|
53
|
+
req.on("end", () => {
|
|
54
|
+
if (!body) return resolve({});
|
|
55
|
+
try { resolve(JSON.parse(body)); } catch { reject(new Error("请求格式不正确")); }
|
|
56
|
+
});
|
|
57
|
+
req.on("error", reject);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function resultData(row) {
|
|
62
|
+
if (!row) return null;
|
|
63
|
+
return {
|
|
64
|
+
id: row.id,
|
|
65
|
+
nickname: row.nickname,
|
|
66
|
+
rank: Number(row.rank),
|
|
67
|
+
score: Number(row.score),
|
|
68
|
+
percentile: row.percentile,
|
|
69
|
+
date: row.result_date,
|
|
70
|
+
shareCount: Number(row.share_count || 0),
|
|
71
|
+
updatedAt: row.updated_at
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function getRdbServiceToken() {
|
|
76
|
+
const credential = await app.auth().getClientCredential();
|
|
77
|
+
if (typeof credential === "string" && credential.trim()) return credential.trim();
|
|
78
|
+
if (credential && typeof credential.access_token === "string" && credential.access_token.trim()) {
|
|
79
|
+
return credential.access_token.trim();
|
|
80
|
+
}
|
|
81
|
+
const accessKey = process.env.COLORBOX__ACCESS_KEY;
|
|
82
|
+
if (accessKey && accessKey.trim()) return accessKey.trim();
|
|
83
|
+
throw new Error("数据库服务凭据不可用");
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async function saveResult(puid, payload) {
|
|
87
|
+
const token = await getRdbServiceToken();
|
|
88
|
+
const envId = process.env.CLOUDBASE_ENV_ID || process.env.TCB_ENV;
|
|
89
|
+
const response = await fetch(
|
|
90
|
+
`https://${envId}.api.tcloudbasegateway.com/v1/rdb/rest/rpc/save_result_poster_result`,
|
|
91
|
+
{
|
|
92
|
+
method: "POST",
|
|
93
|
+
headers: {
|
|
94
|
+
"Authorization": `Bearer ${token}`,
|
|
95
|
+
"X-Db-Instance": "default",
|
|
96
|
+
"Accept-Profile": "public",
|
|
97
|
+
"Content-Profile": "public",
|
|
98
|
+
"Content-Type": "application/json"
|
|
99
|
+
},
|
|
100
|
+
body: JSON.stringify({
|
|
101
|
+
p_puid: puid,
|
|
102
|
+
p_nickname: payload.nickname,
|
|
103
|
+
p_rank: payload.rank,
|
|
104
|
+
p_score: payload.score,
|
|
105
|
+
p_percentile: payload.percentile,
|
|
106
|
+
p_result_date: payload.date
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
const raw = await response.text();
|
|
111
|
+
let data = raw;
|
|
112
|
+
try { data = raw ? JSON.parse(raw) : null; } catch { /* preserve text for logs */ }
|
|
113
|
+
if (!response.ok) {
|
|
114
|
+
console.error("[Result Poster RPC Error]", response.status, data);
|
|
115
|
+
const error = new Error("结果暂时无法保存");
|
|
116
|
+
error.statusCode = 500;
|
|
117
|
+
throw error;
|
|
118
|
+
}
|
|
119
|
+
return Array.isArray(data) ? data[0] : data;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function handle(req, res) {
|
|
123
|
+
const headers = {
|
|
124
|
+
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
|
|
125
|
+
"Access-Control-Allow-Headers": "Content-Type, Authorization, X-Request-Id, X-CloudBase-Context",
|
|
126
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
127
|
+
};
|
|
128
|
+
if (req.method === "OPTIONS") {
|
|
129
|
+
res.writeHead(204, headers);
|
|
130
|
+
return res.end();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const path = apiPath(req);
|
|
134
|
+
try {
|
|
135
|
+
if (req.method === "GET" && path === "/health") {
|
|
136
|
+
res.writeHead(200, headers);
|
|
137
|
+
return res.end(JSON.stringify({ code: 0, message: "ok" }));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (req.method === "GET" && path === "/result/me") {
|
|
141
|
+
const puid = readPuid(req);
|
|
142
|
+
const result = await rdb.from(RESULT_TABLE)
|
|
143
|
+
.select("id, nickname, rank, score, percentile, result_date, share_count, updated_at")
|
|
144
|
+
.eq("puid", puid)
|
|
145
|
+
.limit(1);
|
|
146
|
+
const rows = queryRows(result);
|
|
147
|
+
res.writeHead(200, headers);
|
|
148
|
+
return res.end(JSON.stringify({ code: 0, message: "success", data: resultData(rows[0]) }));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (req.method === "POST" && path === "/result/save") {
|
|
152
|
+
const puid = readPuid(req);
|
|
153
|
+
const body = await getJsonBody(req);
|
|
154
|
+
const rank = Number(body.rank);
|
|
155
|
+
const score = Number(body.score);
|
|
156
|
+
if (!Number.isSafeInteger(rank) || rank < 1 || rank > 2147483647) {
|
|
157
|
+
const error = new Error("排名格式不正确");
|
|
158
|
+
error.statusCode = 400;
|
|
159
|
+
throw error;
|
|
160
|
+
}
|
|
161
|
+
if (!Number.isSafeInteger(score) || score < 0 || score > 2147483647) {
|
|
162
|
+
const error = new Error("积分格式不正确");
|
|
163
|
+
error.statusCode = 400;
|
|
164
|
+
throw error;
|
|
165
|
+
}
|
|
166
|
+
const nickname = typeof body.nickname === "string" && body.nickname.trim()
|
|
167
|
+
? body.nickname.trim().slice(0, 40)
|
|
168
|
+
: "Hupu User";
|
|
169
|
+
const percentile = typeof body.percentile === "string" ? body.percentile.trim().slice(0, 20) : "";
|
|
170
|
+
const date = typeof body.date === "string" ? body.date.trim().slice(0, 32) : "";
|
|
171
|
+
const row = await saveResult(puid, { nickname, rank, score, percentile, date });
|
|
172
|
+
res.writeHead(200, headers);
|
|
173
|
+
return res.end(JSON.stringify({ code: 0, message: "success", data: resultData(row) }));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
res.writeHead(404, headers);
|
|
177
|
+
return res.end(JSON.stringify({ code: 404, message: "not found" }));
|
|
178
|
+
} catch (error) {
|
|
179
|
+
console.error("[Result Poster API Error]", error);
|
|
180
|
+
const statusCode = error.statusCode || 500;
|
|
181
|
+
const message = statusCode < 500 ? (error.message || "请求失败") : "服务暂时不可用";
|
|
182
|
+
res.writeHead(statusCode, headers);
|
|
183
|
+
return res.end(JSON.stringify({ code: statusCode, message }));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
http.createServer(handle).listen(process.env.PORT || 9000);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "activity_api",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "CloudBase result poster activity API",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18.15"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@cloudbase/node-sdk": "^3.16.0"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>带结果海报发帖功能</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
font-family:
|
|
10
|
+
'PingFang SC',
|
|
11
|
+
-apple-system,
|
|
12
|
+
BlinkMacSystemFont,
|
|
13
|
+
'Segoe UI',
|
|
14
|
+
sans-serif;
|
|
15
|
+
color: #3d3d3d;
|
|
16
|
+
background: #f4f7f8;
|
|
17
|
+
}
|
|
18
|
+
* {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
body {
|
|
22
|
+
min-width: 320px;
|
|
23
|
+
min-height: 100vh;
|
|
24
|
+
margin: 0;
|
|
25
|
+
background: #f4f7f8;
|
|
26
|
+
}
|
|
27
|
+
main {
|
|
28
|
+
display: flex;
|
|
29
|
+
width: min(100%, 390px);
|
|
30
|
+
min-height: 100vh;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
padding: 34px 16px 16px;
|
|
33
|
+
margin: 0 auto;
|
|
34
|
+
background: #fff;
|
|
35
|
+
}
|
|
36
|
+
.artwork {
|
|
37
|
+
display: grid;
|
|
38
|
+
flex: 0 0 auto;
|
|
39
|
+
justify-items: center;
|
|
40
|
+
gap: 7px;
|
|
41
|
+
padding: 32px 12px 28px;
|
|
42
|
+
margin: 18px 0 16px;
|
|
43
|
+
color: #fff;
|
|
44
|
+
background: #4a8b8f;
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
.poster-mark {
|
|
48
|
+
display: grid;
|
|
49
|
+
width: 30px;
|
|
50
|
+
height: 30px;
|
|
51
|
+
place-items: center;
|
|
52
|
+
border: 2px solid #fff;
|
|
53
|
+
font-size: 22px;
|
|
54
|
+
line-height: 1;
|
|
55
|
+
}
|
|
56
|
+
.artwork span {
|
|
57
|
+
font-size: 11px;
|
|
58
|
+
}
|
|
59
|
+
.artwork strong {
|
|
60
|
+
font-size: 30px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
line-height: 1.2;
|
|
63
|
+
}
|
|
64
|
+
.artwork small {
|
|
65
|
+
color: #e3f1f1;
|
|
66
|
+
font-size: 9px;
|
|
67
|
+
}
|
|
68
|
+
button {
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
min-height: 36px;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
gap: 6px;
|
|
74
|
+
padding: 0 12px;
|
|
75
|
+
color: #fff;
|
|
76
|
+
font: inherit;
|
|
77
|
+
font-size: 11px;
|
|
78
|
+
background: #4a8b8f;
|
|
79
|
+
border: 1px solid #4a8b8f;
|
|
80
|
+
border-radius: 0;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
button:hover,
|
|
84
|
+
button:focus-visible {
|
|
85
|
+
background: #3d7579;
|
|
86
|
+
border-color: #3d7579;
|
|
87
|
+
outline: 2px solid #4a8b8f;
|
|
88
|
+
outline-offset: 2px;
|
|
89
|
+
}
|
|
90
|
+
button.complete {
|
|
91
|
+
color: #3f7d5a;
|
|
92
|
+
background: #eef7f1;
|
|
93
|
+
border-color: #cce7d5;
|
|
94
|
+
}
|
|
95
|
+
button:disabled {
|
|
96
|
+
cursor: wait;
|
|
97
|
+
opacity: 0.7;
|
|
98
|
+
}
|
|
99
|
+
.poster-canvas {
|
|
100
|
+
position: absolute;
|
|
101
|
+
width: 1px;
|
|
102
|
+
height: 1px;
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
.notice {
|
|
107
|
+
position: absolute;
|
|
108
|
+
width: 1px;
|
|
109
|
+
height: 1px;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
clip: rect(0 0 0 0);
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
}
|
|
114
|
+
@media (min-width: 480px) {
|
|
115
|
+
body {
|
|
116
|
+
display: grid;
|
|
117
|
+
place-items: center;
|
|
118
|
+
padding: 24px;
|
|
119
|
+
}
|
|
120
|
+
main {
|
|
121
|
+
min-height: 640px;
|
|
122
|
+
border: 1px solid #d8e3e8;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
126
|
+
</head>
|
|
127
|
+
<body>
|
|
128
|
+
<main>
|
|
129
|
+
<div class="artwork">
|
|
130
|
+
<div class="poster-mark" aria-hidden="true">+</div>
|
|
131
|
+
<span id="result-label">挑战完成</span>
|
|
132
|
+
<strong id="result-score">9,860</strong>
|
|
133
|
+
<small id="result-caption">本次活动积分</small>
|
|
134
|
+
</div>
|
|
135
|
+
<button id="share" type="button">分享结果海报</button>
|
|
136
|
+
<button id="redraw" type="button" hidden>重新生成</button>
|
|
137
|
+
<canvas id="poster" class="poster-canvas" width="800" height="1000" aria-label="结果海报预览"></canvas>
|
|
138
|
+
<div id="notice" class="notice" role="status" aria-live="polite"></div>
|
|
139
|
+
</main>
|
|
140
|
+
<script>
|
|
141
|
+
const result = {
|
|
142
|
+
title: "带结果海报发帖功能",
|
|
143
|
+
label: "挑战完成",
|
|
144
|
+
score: 9860,
|
|
145
|
+
caption: "本次活动积分",
|
|
146
|
+
nickname: "篮球爱好者",
|
|
147
|
+
rank: 4,
|
|
148
|
+
date: "2026.08.28"
|
|
149
|
+
};
|
|
150
|
+
const share = document.querySelector('#share');
|
|
151
|
+
const redraw = document.querySelector('#redraw');
|
|
152
|
+
const noticeNode = document.querySelector('#notice');
|
|
153
|
+
const canvas = document.querySelector('#poster');
|
|
154
|
+
const context = canvas && canvas.getContext('2d');
|
|
155
|
+
let phase = 'idle';
|
|
156
|
+
let busy = false;
|
|
157
|
+
let posterBlob = null;
|
|
158
|
+
let renderPromise = null;
|
|
159
|
+
|
|
160
|
+
document.querySelector('#result-label').textContent = result.label;
|
|
161
|
+
document.querySelector('#result-score').textContent = Number(result.score).toLocaleString('zh-CN');
|
|
162
|
+
document.querySelector('#result-caption').textContent = result.caption;
|
|
163
|
+
|
|
164
|
+
function notice(message) {
|
|
165
|
+
noticeNode.textContent = String(message || '');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function shortText(value, maxLength) {
|
|
169
|
+
const text = String(value == null ? '' : value);
|
|
170
|
+
return text.length > maxLength ? text.slice(0, Math.max(1, maxLength - 3)) + '...' : text;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function setBusy(nextBusy) {
|
|
174
|
+
busy = nextBusy;
|
|
175
|
+
share.disabled = nextBusy;
|
|
176
|
+
redraw.disabled = nextBusy;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function drawPoster() {
|
|
180
|
+
if (!context || !canvas || typeof canvas.toBlob !== 'function') {
|
|
181
|
+
return Promise.reject(new Error('当前环境不支持海报预览'));
|
|
182
|
+
}
|
|
183
|
+
context.fillStyle = '#4a8b8f';
|
|
184
|
+
context.fillRect(0, 0, canvas.width, canvas.height);
|
|
185
|
+
context.fillStyle = '#ffffff';
|
|
186
|
+
context.textAlign = 'center';
|
|
187
|
+
context.font = '600 42px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif';
|
|
188
|
+
context.fillText(shortText(result.label, 18), 400, 190);
|
|
189
|
+
context.font = '600 104px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif';
|
|
190
|
+
context.fillText(shortText(Number(result.score).toLocaleString('zh-CN'), 12), 400, 470);
|
|
191
|
+
context.font = '28px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif';
|
|
192
|
+
context.fillText(shortText(result.caption, 22), 400, 540);
|
|
193
|
+
context.font = '24px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif';
|
|
194
|
+
context.fillText(shortText(result.nickname, 18), 400, 720);
|
|
195
|
+
context.fillText(shortText(result.date, 20), 400, 880);
|
|
196
|
+
return new Promise((resolve) => canvas.toBlob(resolve, 'image/png', 0.92)).then((blob) => {
|
|
197
|
+
if (!blob) throw new Error('海报生成失败');
|
|
198
|
+
posterBlob = blob;
|
|
199
|
+
return blob;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function regenerate() {
|
|
204
|
+
if (busy) return;
|
|
205
|
+
phase = 'rendering';
|
|
206
|
+
renderPromise = drawPoster();
|
|
207
|
+
renderPromise.then(() => notice('海报已生成')).catch((error) => notice(error.message || '海报生成失败'));
|
|
208
|
+
return renderPromise;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
async function uploadAndPost() {
|
|
212
|
+
if (busy) return;
|
|
213
|
+
setBusy(true);
|
|
214
|
+
phase = 'rendering';
|
|
215
|
+
share.textContent = '正在准备分享';
|
|
216
|
+
notice('正在准备海报');
|
|
217
|
+
try {
|
|
218
|
+
const blob = renderPromise ? await renderPromise : await regenerate();
|
|
219
|
+
if (!blob || blob.size > 10 * 1024 * 1024) throw new Error('海报超过 10MB,请重试');
|
|
220
|
+
const sdk = window.ShaperAI;
|
|
221
|
+
if (!sdk?.oss?.uploadFile || !sdk?.request?.bbs?.openPostEditor) {
|
|
222
|
+
throw new Error('当前为本地演示模式,请在虎扑 App 内分享');
|
|
223
|
+
}
|
|
224
|
+
phase = 'uploading';
|
|
225
|
+
share.textContent = '正在上传海报';
|
|
226
|
+
const upload = await sdk.oss.uploadFile({ file: blob, filename: 'result-poster-' + Date.now() + '.png' });
|
|
227
|
+
const parsed = new URL(upload && upload.downloadUrl);
|
|
228
|
+
if (parsed.protocol !== 'https:' || !parsed.hostname) throw new Error('海报上传失败');
|
|
229
|
+
phase = 'opening';
|
|
230
|
+
share.textContent = '正在打开编辑器';
|
|
231
|
+
const post = await sdk.request.bbs.openPostEditor({
|
|
232
|
+
title: shortText(result.title, 40) + '|第' + shortText(result.rank, 8) + '名',
|
|
233
|
+
content: '我在活动中获得 ' + shortText(result.score, 12) + ' 分,排名第 ' + shortText(result.rank, 8) + '。',
|
|
234
|
+
imageUrl: parsed.href
|
|
235
|
+
});
|
|
236
|
+
if (!post || post.code !== 200) throw new Error(post?.message || '发帖编辑器打开失败');
|
|
237
|
+
phase = 'done';
|
|
238
|
+
share.classList.add('complete');
|
|
239
|
+
share.textContent = '已准备分享';
|
|
240
|
+
notice('已打开虎扑发帖编辑器');
|
|
241
|
+
} catch (error) {
|
|
242
|
+
phase = 'error';
|
|
243
|
+
share.classList.remove('complete');
|
|
244
|
+
share.textContent = '分享结果海报';
|
|
245
|
+
notice(error?.code === 'CANCELLED' || error?.code === 'CANCELED' ? '已取消发帖' : (error?.message || '分享失败,请稍后重试'));
|
|
246
|
+
} finally {
|
|
247
|
+
setBusy(false);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
redraw.addEventListener('click', regenerate);
|
|
252
|
+
share.addEventListener('click', uploadAndPost);
|
|
253
|
+
regenerate();
|
|
254
|
+
</script>
|
|
255
|
+
</body>
|
|
256
|
+
</html>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
-- Reuse the platform demo table as the activity result source.
|
|
2
|
+
alter table public.demo_items rename to result_poster_results;
|
|
3
|
+
truncate table public.result_poster_results;
|
|
4
|
+
|
|
5
|
+
alter table public.result_poster_results
|
|
6
|
+
alter column puid set not null,
|
|
7
|
+
add column if not exists nickname text not null default 'Hupu User',
|
|
8
|
+
add column if not exists rank integer not null default 0,
|
|
9
|
+
add column if not exists score integer not null default 0,
|
|
10
|
+
add column if not exists percentile text not null default '前 0%',
|
|
11
|
+
add column if not exists result_date text not null default '',
|
|
12
|
+
add column if not exists share_count integer not null default 0,
|
|
13
|
+
add column if not exists updated_at timestamptz not null default now();
|
|
14
|
+
|
|
15
|
+
create unique index if not exists result_poster_results_puid_uidx
|
|
16
|
+
on public.result_poster_results (puid);
|
|
17
|
+
create index if not exists result_poster_results_updated_idx
|
|
18
|
+
on public.result_poster_results (updated_at desc, id asc);
|
|
19
|
+
|
|
20
|
+
alter table public.result_poster_results disable row level security;
|
|
21
|
+
|
|
22
|
+
create or replace function public.save_result_poster_result(
|
|
23
|
+
p_puid text,
|
|
24
|
+
p_nickname text,
|
|
25
|
+
p_rank integer,
|
|
26
|
+
p_score integer,
|
|
27
|
+
p_percentile text,
|
|
28
|
+
p_result_date text
|
|
29
|
+
)
|
|
30
|
+
returns public.result_poster_results
|
|
31
|
+
language plpgsql
|
|
32
|
+
security definer
|
|
33
|
+
set search_path = public
|
|
34
|
+
as $$
|
|
35
|
+
declare
|
|
36
|
+
result public.result_poster_results;
|
|
37
|
+
begin
|
|
38
|
+
insert into public.result_poster_results
|
|
39
|
+
(puid, nickname, rank, score, percentile, result_date, created_at, updated_at)
|
|
40
|
+
values
|
|
41
|
+
(p_puid, p_nickname, p_rank, p_score, p_percentile, p_result_date, now(), now())
|
|
42
|
+
on conflict (puid) do update
|
|
43
|
+
set nickname = excluded.nickname,
|
|
44
|
+
rank = excluded.rank,
|
|
45
|
+
score = excluded.score,
|
|
46
|
+
percentile = excluded.percentile,
|
|
47
|
+
result_date = excluded.result_date,
|
|
48
|
+
updated_at = now()
|
|
49
|
+
returning * into result;
|
|
50
|
+
|
|
51
|
+
return result;
|
|
52
|
+
end;
|
|
53
|
+
$$;
|
|
54
|
+
|
|
55
|
+
grant all on table public.result_poster_results to public;
|
|
56
|
+
grant usage on schema public to anon, authenticated, service_role, public;
|
|
57
|
+
grant select on table public.result_poster_results to anon, authenticated, service_role, public;
|
|
58
|
+
grant insert, update, delete on table public.result_poster_results to authenticated, service_role, public;
|
|
59
|
+
grant execute on function public.save_result_poster_result(text, text, integer, integer, text, text)
|
|
60
|
+
to public, anon, authenticated, service_role;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 结果海报发帖接口契约
|
|
2
|
+
|
|
3
|
+
## OSS 上传
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
const blob = await new Promise((resolve) => canvas.toBlob(resolve, 'image/png', 0.92));
|
|
7
|
+
const response = await window.ShaperAI.oss.uploadFile({
|
|
8
|
+
file: blob,
|
|
9
|
+
filename: `result-poster-${Date.now()}.png`
|
|
10
|
+
});
|
|
11
|
+
if (!response || !response.downloadUrl) throw new Error('海报上传失败');
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`file` 必须是 HTML5 `File` 或 `Blob`。单文件不能超过 10MB;上传失败、未登录或返回缺少 `downloadUrl` 时立即结束分享流程。不要在页面保存 `authToken`,不要直连 OSS。
|
|
15
|
+
|
|
16
|
+
业务代码应在调用编辑器前用 `new URL(downloadUrl)` 校验返回值为带 hostname 的绝对 `https:` URL;不符合要求时停止流程,不得把不可信地址传给编辑器。
|
|
17
|
+
|
|
18
|
+
## 发帖编辑器
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
const bbs = await window.ShaperAI.bbsConfig.get();
|
|
22
|
+
const params = {
|
|
23
|
+
title: '我的活动结果',
|
|
24
|
+
content: '我在本次活动中获得 1280 分,排名第 4。',
|
|
25
|
+
imageUrl: uploadResponse.downloadUrl
|
|
26
|
+
};
|
|
27
|
+
if (bbs && typeof bbs.bbsTagId === 'string' && bbs.bbsTagId.trim() !== '') {
|
|
28
|
+
params.topicId = bbs.bbsTopicId;
|
|
29
|
+
params.tagId = bbs.bbsTagId;
|
|
30
|
+
params.topicName = bbs.bbsTopicName;
|
|
31
|
+
params.tagName = bbs.bbsTagName;
|
|
32
|
+
}
|
|
33
|
+
const response = await window.ShaperAI.request.bbs.openPostEditor(params);
|
|
34
|
+
if (!response || response.code !== 200) throw new Error(response?.message || '发帖编辑器打开失败');
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
只在用户主动点击分享按钮后调用。禁止用 `location`、`window.open` 或自拼 Schema 代替 SDK。`content` 可为字符串或富文本段落数组;结果正文应限制长度,避免把未校验的 HTML 当作富文本传入。专区/话题分三种情况:业务明确指定非空值时用该值;业务明确不要设置时不要传这四个字段、也不要从 `bbsConfig.get()` 补;业务未提及时先 `bbsConfig.get()`,必须先判断 `bbsTagId`,无值或空字符串时四个字段都不要传、也不要用页面其它字段兜底,仅当 `bbsTagId` 为非空字符串才传入页面值。不要写死其它专区/话题。
|
|
38
|
+
|
|
39
|
+
## 推荐流程
|
|
40
|
+
|
|
41
|
+
```text
|
|
42
|
+
结果数据 → Canvas 生成 PNG Blob → OSS uploadFile → 读取 downloadUrl
|
|
43
|
+
→ openPostEditor(title, content, imageUrl) → 展示成功/取消反馈
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
分享流程应可重复执行,但每次点击只能有一个进行中的上传/唤起操作。上传成功而编辑器失败时保留海报预览,并提示用户稍后重新点击分享;不要自动再次上传。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hupu-social-share
|
|
3
|
+
description: 唤起原生分享面板,支持分享微信、微博。当页面需要进行社交平台分享时引导 AI 调用。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Usage
|
|
7
|
+
|
|
8
|
+
- JS Path: `window.ShaperAI.social.share(params)`
|
|
9
|
+
|
|
10
|
+
# Parameters
|
|
11
|
+
|
|
12
|
+
| 参数名 | 类型 | 是否必填 | 说明 |
|
|
13
|
+
| --- | --- | --- | --- |
|
|
14
|
+
| title | string | 是 | 分享标题 |
|
|
15
|
+
| link | string | 是 | 分享链接 URL,必须是 http/https 开头的完整链接 |
|
|
16
|
+
| text | string | 否 | 可选,分享的副标题/描述文本 |
|
|
17
|
+
| imageUrl | string | 否 | 可选,分享卡片的缩略图图片 URL |
|
|
18
|
+
|
|
19
|
+
# Returns
|
|
20
|
+
|
|
21
|
+
- Type: `Promise<void>`
|
|
22
|
+
|
|
23
|
+
# Examples
|
|
24
|
+
|
|
25
|
+
```javascript
|
|
26
|
+
window.ShaperAI.bridge.device.share({ title: "活动开始啦", link: window.location.href, text: "快来一起参与投票赢大奖吧!", imageUrl: "https://example.com/thumb.png" });
|
|
27
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# 赛事与资讯
|
|
2
|
+
|
|
3
|
+
篮球、足球、电竞、赛程与新闻。本目录仅分类,技能内容暂不重构。
|
|
4
|
+
|
|
5
|
+
- [hupu-request-basketball-player-info](hupu-request-basketball-player-info/SKILL.md)
|
|
6
|
+
- [hupu-request-basketball-single-match](hupu-request-basketball-single-match/SKILL.md)
|
|
7
|
+
- [hupu-request-basketball-team-info](hupu-request-basketball-team-info/SKILL.md)
|
|
8
|
+
- [hupu-request-basketball-team-player-list](hupu-request-basketball-team-player-list/SKILL.md)
|
|
9
|
+
- [hupu-request-basketball-team-salary-info](hupu-request-basketball-team-salary-info/SKILL.md)
|
|
10
|
+
- [hupu-request-football-coach-info](hupu-request-football-coach-info/SKILL.md)
|
|
11
|
+
- [hupu-request-football-live-room-news-list](hupu-request-football-live-room-news-list/SKILL.md)
|
|
12
|
+
- [hupu-request-football-match-info](hupu-request-football-match-info/SKILL.md)
|
|
13
|
+
- [hupu-request-football-player-info](hupu-request-football-player-info/SKILL.md)
|
|
14
|
+
- [hupu-request-football-team-info](hupu-request-football-team-info/SKILL.md)
|
|
15
|
+
- [hupu-request-football-team-player-season-stats](hupu-request-football-team-player-season-stats/SKILL.md)
|
|
16
|
+
- [hupu-request-football-team-season-year](hupu-request-football-team-season-year/SKILL.md)
|
|
17
|
+
- [hupu-request-kog-playbyplay](hupu-request-kog-playbyplay/SKILL.md)
|
|
18
|
+
- [hupu-request-live-tab-info-list](hupu-request-live-tab-info-list/SKILL.md)
|
|
19
|
+
- [hupu-request-live-tab-list](hupu-request-live-tab-list/SKILL.md)
|
|
20
|
+
- [hupu-request-lol-playbyplay](hupu-request-lol-playbyplay/SKILL.md)
|
|
21
|
+
- [hupu-request-match-get-tab-detail-schedule-list](hupu-request-match-get-tab-detail-schedule-list/SKILL.md)
|
|
22
|
+
- [hupu-request-match-query-all-diagram-info-by-id](hupu-request-match-query-all-diagram-info-by-id/SKILL.md)
|
|
23
|
+
- [hupu-request-match-query-match-stats-by-match-info](hupu-request-match-query-match-stats-by-match-info/SKILL.md)
|
|
24
|
+
- [hupu-request-news-news-common-list](hupu-request-news-news-common-list/SKILL.md)
|
|
25
|
+
- [hupu-request-news-player-news-list](hupu-request-news-player-news-list/SKILL.md)
|
|
26
|
+
- [hupu-request-news-subject-news](hupu-request-news-subject-news/SKILL.md)
|
|
27
|
+
- [hupu-request-news-team-news-list](hupu-request-news-team-news-list/SKILL.md)
|