@ttmg/cli 0.4.8 → 0.4.9-alpha.0
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 +0 -10
- package/README.md +7 -42
- package/dist/index.js +1446 -1698
- package/dist/index.js.map +1 -1
- package/dist/package.json +5 -4
- package/dist/public/assets/{Card-hIN4OSH3.js → Card-BC5ydRHh.js} +1 -1
- package/dist/public/assets/Detail-DPCqXgFa.js +1 -0
- package/dist/public/assets/Detail-DPCqXgFa.js.br +0 -0
- package/dist/public/assets/MonetizationMode-BGXVb7wG.js +1 -0
- package/dist/public/assets/MonetizationModeSummary-LeYQ02Tv.js +1 -0
- package/dist/public/assets/{SectionHeader-CnHCh7yA.js → SectionHeader-BQDU_6TX.js} +1 -1
- package/dist/public/assets/{baseForm-t_NrFk0x.js → baseForm-dqhahTXM.js} +2 -2
- package/dist/public/assets/baseForm-dqhahTXM.js.br +0 -0
- package/dist/public/assets/{compass-CeFvwCmG.js → compass-DfWJoWl3.js} +1 -1
- package/dist/public/assets/index-3FxbJxwu.css +1 -0
- package/dist/public/assets/{index-CIX6OSmR.js → index-3IxvKwO3.js} +1 -1
- package/dist/public/assets/index-AtMMzkp0.css +1 -0
- package/dist/public/assets/{index-CHfngLxh.js → index-BAmVtXgk.js} +1 -1
- package/dist/public/assets/index-BAmVtXgk.js.br +0 -0
- package/dist/public/assets/index-BBHaV7vS.js +1 -0
- package/dist/public/assets/index-BIkx7MZA.js +1 -0
- package/dist/public/assets/index-BIkx7MZA.js.br +0 -0
- package/dist/public/assets/index-Ba7wrRXG.js +1 -0
- package/dist/public/assets/index-Ba7wrRXG.js.br +0 -0
- package/dist/public/assets/index-BdixrK5I.css +1 -0
- package/dist/public/assets/index-BdixrK5I.css.br +0 -0
- package/dist/public/assets/{index-B0tBBQNM.js → index-BhTApVX6.js} +1 -1
- package/dist/public/assets/{index-yEl03rPV.js → index-BkbwTqmH.js} +1 -1
- package/dist/public/assets/{index-vJ1StYwi.js → index-BmS73Skw.js} +1 -1
- package/dist/public/assets/{index-BHIhYKfz.css → index-BoFbvk-8.css} +1 -1
- package/dist/public/assets/index-BoFbvk-8.css.br +0 -0
- package/dist/public/assets/{index-D88nGIrd.js → index-BqslPc39.js} +1 -1
- package/dist/public/assets/index-C0-lsmcf.js +1 -0
- package/dist/public/assets/index-C947zURI.js +1 -0
- package/dist/public/assets/index-C947zURI.js.br +0 -0
- package/dist/public/assets/index-CC4YJwDI.js +1 -0
- package/dist/public/assets/index-CDxeVVlI.js +1 -0
- package/dist/public/assets/index-CF4RJ3VA.js +1 -0
- package/dist/public/assets/index-CSOt669g.js +1 -0
- package/dist/public/assets/{index-n-a8bnJy.js → index-CbUw1wBM.js} +1 -1
- package/dist/public/assets/index-CbUw1wBM.js.br +0 -0
- package/dist/public/assets/index-Czg0RYGI.css +1 -0
- package/dist/public/assets/index-Czg0RYGI.css.br +0 -0
- package/dist/public/assets/{index-CCYAfkkd.css → index-DKxf26_O.css} +1 -1
- package/dist/public/assets/index-DRKEUX85.js +1 -0
- package/dist/public/assets/index-DRKEUX85.js.br +0 -0
- package/dist/public/assets/{index-BbAB3ylH.js → index-DS-Ah-pZ.js} +1 -1
- package/dist/public/assets/index-DcpswdR4.js +21 -0
- package/dist/public/assets/index-DcpswdR4.js.br +0 -0
- package/dist/public/assets/index-DfVst8q1.css +1 -0
- package/dist/public/assets/index-DpCdlpoj.js +1 -0
- package/dist/public/assets/index-FKgvaTum.js +1 -0
- package/dist/public/assets/index-FKgvaTum.js.br +0 -0
- package/dist/public/assets/index-HqjZ5P-l.css +1 -0
- package/dist/public/assets/index-WyNc-BTG.css +1 -0
- package/dist/public/assets/index-WyNc-BTG.css.br +0 -0
- package/dist/public/assets/index-_IVh5FZw.js +1 -0
- package/dist/public/assets/{index-DJgKNXSG.css → index-docEsXsM.css} +1 -1
- package/dist/public/assets/index-docEsXsM.css.br +0 -0
- package/dist/public/assets/index-ejkbZVVo.js +1 -0
- package/dist/public/assets/index-faRHENEQ.css +1 -0
- package/dist/public/assets/index-wGfWSqnF.js +1 -0
- package/dist/public/assets/index-xPCWyPvk.js +2 -0
- package/dist/public/assets/layers-kzl3dc3j.js +1 -0
- package/dist/public/assets/{list-checks-DYOelRzb.js → list-checks-Ce0l0Ylc.js} +1 -1
- package/dist/public/assets/{sparkles-BDWC6uCQ.js → sparkles-Dnyv9lnL.js} +1 -1
- package/dist/public/assets/{triangle-alert-DHzwEo5k.js → triangle-alert-BaPLcm_f.js} +1 -1
- package/dist/public/assets/{zap-ByAYRk2l.js → zap-DyzOTCOX.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/scripts/dev-remote-resources-smoke.js +1 -2
- package/dist/scripts/verify-agent-contract.js +8 -13
- package/dist/scripts/worker.js +1 -0
- package/package.json +5 -4
- package/dist/public/assets/Detail-ySFmflhQ.js +0 -1
- package/dist/public/assets/Detail-ySFmflhQ.js.br +0 -0
- package/dist/public/assets/MonetizationMode-Cu52igtn.js +0 -1
- package/dist/public/assets/MonetizationModeSummary-OwjWh0LR.js +0 -1
- package/dist/public/assets/baseForm-t_NrFk0x.js.br +0 -0
- package/dist/public/assets/chevron-right-GDVyTyUp.js +0 -1
- package/dist/public/assets/circle-check-CoS-kyHi.js +0 -1
- package/dist/public/assets/index-B5YK1BrP.css +0 -1
- package/dist/public/assets/index-B5YK1BrP.css.br +0 -0
- package/dist/public/assets/index-BHIhYKfz.css.br +0 -0
- package/dist/public/assets/index-BHg_s4I9.js +0 -1
- package/dist/public/assets/index-C6lW7Zjz.js +0 -1
- package/dist/public/assets/index-C9BUllr0.js +0 -1
- package/dist/public/assets/index-C9BUllr0.js.br +0 -0
- package/dist/public/assets/index-C9h2if-G.js +0 -1
- package/dist/public/assets/index-CAlbYpul.js +0 -1
- package/dist/public/assets/index-CAlbYpul.js.br +0 -0
- package/dist/public/assets/index-CEbZ4IEL.js +0 -1
- package/dist/public/assets/index-CEmEOml-.css +0 -1
- package/dist/public/assets/index-CHfngLxh.js.br +0 -0
- package/dist/public/assets/index-CHvRzJfA.js +0 -1
- package/dist/public/assets/index-CN48pR5h.css +0 -1
- package/dist/public/assets/index-CTVCQm_e.js +0 -1
- package/dist/public/assets/index-CZP2ErD4.js +0 -1
- package/dist/public/assets/index-CaNXgeLN.css +0 -1
- package/dist/public/assets/index-Cc4ScSCv.js +0 -1
- package/dist/public/assets/index-CeDioqbo.js +0 -1
- package/dist/public/assets/index-D0ap_iEL.js +0 -1
- package/dist/public/assets/index-DA4Kkz7E.js +0 -1
- package/dist/public/assets/index-DHe58AF2.css +0 -1
- package/dist/public/assets/index-DHe58AF2.css.br +0 -0
- package/dist/public/assets/index-DJgKNXSG.css.br +0 -0
- package/dist/public/assets/index-DQC7-8WJ.js +0 -1
- package/dist/public/assets/index-Dju1-uxC.js +0 -1
- package/dist/public/assets/index-Dju1-uxC.js.br +0 -0
- package/dist/public/assets/index-DusVz4qh.css +0 -1
- package/dist/public/assets/index-YJB7hrl4.js +0 -21
- package/dist/public/assets/index-YJB7hrl4.js.br +0 -0
- package/dist/public/assets/index-_E01H4Eg.js +0 -1
- package/dist/public/assets/index-_E01H4Eg.js.br +0 -0
- package/dist/public/assets/index-kykURETO.css +0 -1
- package/dist/public/assets/index-kykURETO.css.br +0 -0
- package/dist/public/assets/index-n-a8bnJy.js.br +0 -0
- package/dist/public/assets/index-zyypH9vs.css +0 -1
- package/dist/public/assets/info-CXVvw540.js +0 -1
- package/dist/public/assets/integrationMetadata-DJN4qhTl.js +0 -1
- package/dist/public/assets/layers-A_WDqv_u.js +0 -1
- package/dist/public/assets/package-KM_YN61y.js +0 -1
- package/dist/public/assets/platformCapabilities-X9JVc715.js +0 -1
- package/dist/public/assets/refresh-cw-By5amaxb.js +0 -1
- package/dist/public/assets/smartphone-DFFbplpM.js +0 -1
package/dist/index.js
CHANGED
|
@@ -14,6 +14,10 @@ var worker_threads = require('worker_threads');
|
|
|
14
14
|
var crypto$1 = require('node:crypto');
|
|
15
15
|
var child_process = require('child_process');
|
|
16
16
|
var http = require('http');
|
|
17
|
+
var fs$1 = require('node:fs');
|
|
18
|
+
var os$1 = require('node:os');
|
|
19
|
+
var path$1 = require('node:path');
|
|
20
|
+
var glob = require('glob');
|
|
17
21
|
var FormData$1 = require('form-data');
|
|
18
22
|
var https = require('https');
|
|
19
23
|
var promises = require('timers/promises');
|
|
@@ -32,19 +36,15 @@ var require$$1$2 = require('stream');
|
|
|
32
36
|
var dns = require('dns');
|
|
33
37
|
var boxen = require('boxen');
|
|
34
38
|
var semver = require('semver');
|
|
35
|
-
var path$1 = require('node:path');
|
|
36
39
|
var archiver = require('archiver');
|
|
37
|
-
var glob = require('glob');
|
|
38
40
|
var got = require('got');
|
|
39
41
|
var ttmgPack = require('ttmg-pack');
|
|
40
42
|
var express = require('express');
|
|
41
43
|
var expressStaticGzip = require('express-static-gzip');
|
|
42
44
|
var fileUpload = require('express-fileupload');
|
|
43
|
-
var fs$1 = require('node:fs');
|
|
44
|
-
var acorn = require('acorn');
|
|
45
|
-
var os$1 = require('node:os');
|
|
46
45
|
var zlib = require('zlib');
|
|
47
46
|
var promises$1 = require('fs/promises');
|
|
47
|
+
var acorn = require('acorn');
|
|
48
48
|
var node_util = require('node:util');
|
|
49
49
|
var fsp = require('node:fs/promises');
|
|
50
50
|
var node_child_process = require('node:child_process');
|
|
@@ -73,12 +73,12 @@ var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
|
73
73
|
var os__namespace = /*#__PURE__*/_interopNamespaceDefault(os);
|
|
74
74
|
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
75
75
|
var http__namespace = /*#__PURE__*/_interopNamespaceDefault(http);
|
|
76
|
+
var fs__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(fs$1);
|
|
77
|
+
var path__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(path$1);
|
|
78
|
+
var glob__namespace = /*#__PURE__*/_interopNamespaceDefault(glob);
|
|
76
79
|
var net__namespace = /*#__PURE__*/_interopNamespaceDefault(net);
|
|
77
80
|
var require$$1__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$1$1);
|
|
78
81
|
var dns__namespace = /*#__PURE__*/_interopNamespaceDefault(dns);
|
|
79
|
-
var path__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(path$1);
|
|
80
|
-
var glob__namespace = /*#__PURE__*/_interopNamespaceDefault(glob);
|
|
81
|
-
var fs__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(fs$1);
|
|
82
82
|
|
|
83
83
|
async function openUrl(url) {
|
|
84
84
|
const { launch } = await import('chrome-launcher');
|
|
@@ -7091,7 +7091,7 @@ var ja$1 = {
|
|
|
7091
7091
|
"cli.preload.failed": "サブパッケージの収集に失敗しました: {reason}",
|
|
7092
7092
|
"cli.preload.result": "サブパッケージの収集結果 (デバイス検証は別途のまま):",
|
|
7093
7093
|
"cli.integration.desc": "共有 DevTool 統合チェックリストを読みます (ゲームの検査や検証は行いません)",
|
|
7094
|
-
"cli.integration.mode": "収益化モード: iaa、iap、または iaap
|
|
7094
|
+
"cli.integration.mode": "収益化モード: iaa、iap、または iaap",
|
|
7095
7095
|
"cli.integration.language": "チェックリストの言語: en-US、zh-CN、ja-JP、ko-KR",
|
|
7096
7096
|
"cli.integration.invalid": "チェックリストのオプションが無効です。モード iaa/iap/iaap、言語 en-US/zh-CN/ja-JP/ko-KR、形式 text/json を使用します。",
|
|
7097
7097
|
"upload.precheck.scope": "アカウント、アプリケーション アクセス、ディレクトリのみをチェックしています。コードチェックは実行されていません。",
|
|
@@ -7566,7 +7566,7 @@ var ko$1 = {
|
|
|
7566
7566
|
"cli.preload.failed": "하위 패키지 수집 실패: {reason}",
|
|
7567
7567
|
"cli.preload.result": "하위 패키지 수집 결과(장치 확인은 별도로 유지됨):",
|
|
7568
7568
|
"cli.integration.desc": "공유된 DevTool 통합 체크리스트 읽기(게임을 검사하거나 확인하지 않음)",
|
|
7569
|
-
"cli.integration.mode": "수익화 모드: iaa, iap 또는 iaap
|
|
7569
|
+
"cli.integration.mode": "수익화 모드: iaa, iap 또는 iaap",
|
|
7570
7570
|
"cli.integration.language": "체크리스트 언어: en-US, zh-CN, ja-JP 또는 ko-KR",
|
|
7571
7571
|
"cli.integration.invalid": "체크리스트 옵션이 잘못되었습니다. 모드 iaa/iap/iaap, 언어 en-US/zh-CN/ja-JP/ko-KR 및 형식 text/json을 사용합니다.",
|
|
7572
7572
|
"upload.precheck.scope": "계정, 애플리케이션 액세스 및 디렉토리만 확인합니다. 코드 검사가 실행되지 않았습니다.",
|
|
@@ -8042,7 +8042,7 @@ const baseMessages = {
|
|
|
8042
8042
|
'cli.preload.failed': 'Subpackage collection failed: {reason}',
|
|
8043
8043
|
'cli.preload.result': 'Subpackage collection result (device verification remains separate):',
|
|
8044
8044
|
'cli.integration.desc': 'Read the shared DevTool integration checklist (does not inspect or verify a game)',
|
|
8045
|
-
'cli.integration.mode': 'Monetization mode: iaa, iap or iaap
|
|
8045
|
+
'cli.integration.mode': 'Monetization mode: iaa, iap or iaap',
|
|
8046
8046
|
'cli.integration.language': 'Checklist language: en-US, zh-CN, ja-JP or ko-KR',
|
|
8047
8047
|
'cli.integration.invalid': 'Invalid checklist options. Use mode iaa/iap/iaap, language en-US/zh-CN/ja-JP/ko-KR and format text/json.',
|
|
8048
8048
|
'upload.precheck.scope': 'Checking account, application access and directory only; code checks have not run.',
|
|
@@ -8535,7 +8535,7 @@ Vibe QR upload (real PPE trial):
|
|
|
8535
8535
|
'cli.preload.failed': '子包采集失败:{reason}',
|
|
8536
8536
|
'cli.preload.result': '子包采集结果(真机效果仍需另行验证):',
|
|
8537
8537
|
'cli.integration.desc': '读取与 DevTool 页面共用的接入清单(不检查或验证游戏)',
|
|
8538
|
-
'cli.integration.mode': '变现方式:iaa、iap 或 iaap
|
|
8538
|
+
'cli.integration.mode': '变现方式:iaa、iap 或 iaap',
|
|
8539
8539
|
'cli.integration.language': '清单语言:en-US、zh-CN、ja-JP 或 ko-KR',
|
|
8540
8540
|
'cli.integration.invalid': '清单参数无效,请使用 iaa/iap/iaap、en-US/zh-CN/ja-JP/ko-KR 及 text/json。',
|
|
8541
8541
|
'upload.precheck.scope': '仅检查账号、应用权限和目录,尚未执行代码检查。',
|
|
@@ -16724,19 +16724,6 @@ const PREVIEW_PAGE_CONTROL_PATH = '/__ttmg/preview-page/update';
|
|
|
16724
16724
|
const PREVIEW_PAGE_STATE_DIR = 'ttmg-preview-pages';
|
|
16725
16725
|
const PREVIEW_PAGE_LOCK_TIMEOUT_MS = 3000;
|
|
16726
16726
|
const PREVIEW_PAGE_LOCK_STALE_MS = 10000;
|
|
16727
|
-
function previewRecovery(input, language) {
|
|
16728
|
-
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
16729
|
-
const messages = {
|
|
16730
|
-
'en-US': 'This page has expired. Reopen the existing version without uploading again:',
|
|
16731
|
-
'zh-CN': '页面已过期。运行以下命令重新打开已有版本,无需重新上传:',
|
|
16732
|
-
'ja-JP': 'ページの有効期限が切れました。再アップロードせずに既存のバージョンを開き直せます:',
|
|
16733
|
-
'ko-KR': '페이지가 만료되었습니다. 다시 업로드하지 않고 기존 버전을 다시 열 수 있습니다:',
|
|
16734
|
-
};
|
|
16735
|
-
return {
|
|
16736
|
-
message: messages[language],
|
|
16737
|
-
command: `ttmg preview --client-key ${quote(input.clientKey)} --version-id ${quote(input.versionId)} --wait --serve-preview-page`,
|
|
16738
|
-
};
|
|
16739
|
-
}
|
|
16740
16727
|
function createPreviewPageServerResult(url, expiresAt) {
|
|
16741
16728
|
return {
|
|
16742
16729
|
status: 'ready',
|
|
@@ -16910,8 +16897,7 @@ async function renderPreviewPage(input, expiresAt, language = 'en-US') {
|
|
|
16910
16897
|
const versionId = escapeHtml$1(input.versionId);
|
|
16911
16898
|
const authorizationUrl = escapeHtml$1(input.authorizationUrl);
|
|
16912
16899
|
const previewUrl = escapeHtml$1(input.previewUrl);
|
|
16913
|
-
const
|
|
16914
|
-
const rerunCommand = escapeHtml$1(recovery.command);
|
|
16900
|
+
const rerunCommand = escapeHtml$1(`ttmg upload --preview --serve-preview-page --client-key ${input.clientKey}`);
|
|
16915
16901
|
return `<!doctype html>
|
|
16916
16902
|
<html lang="${language}">
|
|
16917
16903
|
<head>
|
|
@@ -17025,7 +17011,7 @@ async function renderPreviewPage(input, expiresAt, language = 'en-US') {
|
|
|
17025
17011
|
</div>
|
|
17026
17012
|
<section id="expired-view" class="expired-view" hidden>
|
|
17027
17013
|
<h1>${text('This preview page has expired')}</h1>
|
|
17028
|
-
<p>${
|
|
17014
|
+
<p>${text('Run the upload command again from your Mini Game project to generate a new preview page and preview build.')}</p>
|
|
17029
17015
|
<code class="expired-command">${rerunCommand}</code>
|
|
17030
17016
|
</section>
|
|
17031
17017
|
</main>
|
|
@@ -17068,8 +17054,7 @@ async function renderPreviewPage(input, expiresAt, language = 'en-US') {
|
|
|
17068
17054
|
function renderExpiredPreviewPage(input, language = 'en-US') {
|
|
17069
17055
|
const text = (value) => escapeHtml$1(translatedText(value, language));
|
|
17070
17056
|
const projectName = escapeHtml$1(input.projectName);
|
|
17071
|
-
const
|
|
17072
|
-
const rerunCommand = escapeHtml$1(recovery.command);
|
|
17057
|
+
const rerunCommand = escapeHtml$1(`ttmg upload --preview --serve-preview-page --client-key ${input.clientKey}`);
|
|
17073
17058
|
return `<!doctype html>
|
|
17074
17059
|
<html lang="${language}">
|
|
17075
17060
|
<head>
|
|
@@ -17091,7 +17076,7 @@ function renderExpiredPreviewPage(input, language = 'en-US') {
|
|
|
17091
17076
|
<main>
|
|
17092
17077
|
<div class="mark" aria-hidden="true"></div>
|
|
17093
17078
|
<h1>${text('This preview page has expired')}</h1>
|
|
17094
|
-
<p>${
|
|
17079
|
+
<p>${text('Run the upload command again from your Mini Game project to generate a new preview page and preview build.')}</p>
|
|
17095
17080
|
<code>${rerunCommand}</code>
|
|
17096
17081
|
</main>
|
|
17097
17082
|
</body>
|
|
@@ -17600,1469 +17585,233 @@ async function testAccountAdd(options, dependencies = {}) {
|
|
|
17600
17585
|
}
|
|
17601
17586
|
}
|
|
17602
17587
|
|
|
17603
|
-
const
|
|
17604
|
-
|
|
17605
|
-
|
|
17606
|
-
|
|
17607
|
-
|
|
17608
|
-
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
{
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
|
|
17641
|
-
|
|
17642
|
-
|
|
17643
|
-
|
|
17644
|
-
|
|
17645
|
-
|
|
17646
|
-
|
|
17647
|
-
{
|
|
17648
|
-
|
|
17649
|
-
|
|
17650
|
-
|
|
17651
|
-
|
|
17652
|
-
|
|
17653
|
-
|
|
17654
|
-
|
|
17655
|
-
|
|
17656
|
-
|
|
17657
|
-
|
|
17658
|
-
|
|
17659
|
-
|
|
17660
|
-
|
|
17661
|
-
|
|
17662
|
-
|
|
17663
|
-
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17667
|
-
|
|
17668
|
-
|
|
17669
|
-
|
|
17670
|
-
|
|
17671
|
-
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
|
|
17678
|
-
|
|
17679
|
-
|
|
17680
|
-
|
|
17681
|
-
|
|
17682
|
-
|
|
17683
|
-
|
|
17684
|
-
|
|
17685
|
-
|
|
17686
|
-
|
|
17687
|
-
|
|
17688
|
-
|
|
17689
|
-
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
|
|
17693
|
-
|
|
17694
|
-
|
|
17695
|
-
|
|
17696
|
-
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
|
|
17700
|
-
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
17704
|
-
|
|
17705
|
-
|
|
17706
|
-
|
|
17707
|
-
|
|
17708
|
-
|
|
17709
|
-
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
|
-
|
|
17713
|
-
|
|
17714
|
-
|
|
17715
|
-
|
|
17716
|
-
|
|
17717
|
-
|
|
17718
|
-
|
|
17719
|
-
|
|
17720
|
-
|
|
17721
|
-
|
|
17722
|
-
|
|
17723
|
-
|
|
17724
|
-
type: 'external',
|
|
17725
|
-
href: 'https://bytedance.sg.larkoffice.com/docx/CesGdxcyJorqE1xIuf3lAXEhguh',
|
|
17726
|
-
target: '_blank',
|
|
17727
|
-
theme: 'solid',
|
|
17728
|
-
},
|
|
17729
|
-
],
|
|
17730
|
-
},
|
|
17731
|
-
{
|
|
17732
|
-
key: 'share_story',
|
|
17733
|
-
icon: '📣',
|
|
17734
|
-
titleKey: 'ia.menu.shareStory',
|
|
17735
|
-
summaryKey: 'ia.shareStory.summary',
|
|
17736
|
-
hidden: true,
|
|
17737
|
-
apiTags: ['shareToStory', 'query', 'story asset'],
|
|
17738
|
-
highlightKeys: ['ia.shareStory.highlight1', 'ia.shareStory.highlight2'],
|
|
17739
|
-
prerequisiteKeys: ['ia.shareStory.prerequisite1', 'ia.shareStory.prerequisite2'],
|
|
17740
|
-
stepKeys: ['ia.shareStory.step1', 'ia.shareStory.step2', 'ia.shareStory.step3'],
|
|
17741
|
-
tipKeys: ['ia.shareStory.tip1', 'ia.shareStory.tip2'],
|
|
17742
|
-
actions: [],
|
|
17743
|
-
},
|
|
17744
|
-
{
|
|
17745
|
-
key: 'subpackage',
|
|
17746
|
-
icon: '📦',
|
|
17747
|
-
titleKey: 'ia.menu.subpackage',
|
|
17748
|
-
summaryKey: 'ia.subpackage.summary',
|
|
17749
|
-
apiTags: ['preDownloadSubpackage', 'loadSubpackage', 'loadSubpackageSync'],
|
|
17750
|
-
highlightKeys: ['ia.subpackage.highlight1', 'ia.subpackage.highlight2'],
|
|
17751
|
-
prerequisiteKeys: ['ia.subpackage.prerequisite1', 'ia.subpackage.prerequisite2'],
|
|
17752
|
-
stepKeys: ['ia.subpackage.step1', 'ia.subpackage.step2', 'ia.subpackage.step3'],
|
|
17753
|
-
tipKeys: ['ia.subpackage.tip1', 'ia.subpackage.tip2'],
|
|
17754
|
-
actions: [
|
|
17755
|
-
{ labelKey: 'ia.action.openCapabilityDoc', type: 'external', href: 'https://developers.tiktok.com/docs/en/mini-games-sdk-subpackage-loading', target: '_blank' },
|
|
17756
|
-
{ labelKey: 'ia.action.goSubpackageCollect', type: 'route', path: '/subpackage_collect' },
|
|
17757
|
-
],
|
|
17758
|
-
},
|
|
17759
|
-
{
|
|
17760
|
-
key: 'network',
|
|
17761
|
-
icon: '🌐',
|
|
17762
|
-
titleKey: 'ia.menu.network',
|
|
17763
|
-
summaryKey: 'ia.network.summary',
|
|
17764
|
-
apiTags: ['request', 'downloadFile', 'connectSocket'],
|
|
17765
|
-
highlightKeys: ['ia.network.highlight1', 'ia.network.highlight2'],
|
|
17766
|
-
prerequisiteKeys: ['ia.network.prerequisite1', 'ia.network.prerequisite2'],
|
|
17767
|
-
stepKeys: ['ia.network.step1', 'ia.network.step2', 'ia.network.step3'],
|
|
17768
|
-
tipKeys: ['ia.network.tip1', 'ia.network.tip2'],
|
|
17769
|
-
actions: [
|
|
17770
|
-
{ labelKey: 'ia.action.openCapabilityDoc', type: 'external', href: 'https://developers.tiktok.com/docs/en/mini-games-sdk-network-request', target: '_blank' },
|
|
17771
|
-
{ labelKey: 'ia.action.goNetworkDiagnostics', type: 'route', path: '/network_diagnostics' },
|
|
17772
|
-
],
|
|
17773
|
-
},
|
|
17774
|
-
{
|
|
17775
|
-
key: 'sidebar_revisit',
|
|
17776
|
-
icon: '🧭',
|
|
17777
|
-
titleKey: 'ia.menu.sidebarRevisit',
|
|
17778
|
-
summaryKey: 'ia.sidebar.summary',
|
|
17779
|
-
sceneKey: 'scene_center',
|
|
17780
|
-
apiTags: ['startEntranceMission', 'getEntranceMissionReward', 'canIUse'],
|
|
17781
|
-
highlightKeys: ['ia.sidebar.highlight1', 'ia.sidebar.highlight2'],
|
|
17782
|
-
prerequisiteKeys: ['ia.sidebar.prerequisite1', 'ia.sidebar.prerequisite2'],
|
|
17783
|
-
stepKeys: ['ia.sidebar.step1', 'ia.sidebar.step2', 'ia.sidebar.step3'],
|
|
17784
|
-
tipKeys: ['ia.sidebar.tip1', 'ia.sidebar.tip2'],
|
|
17785
|
-
actions: [
|
|
17786
|
-
{
|
|
17787
|
-
labelKey: 'ia.action.openCapabilityDoc',
|
|
17788
|
-
type: 'external',
|
|
17789
|
-
href: 'https://bytedance.larkoffice.com/wiki/Pl9Jwg8ujiZp6ckhhQzcujujnfb',
|
|
17790
|
-
target: '_blank',
|
|
17791
|
-
theme: 'solid',
|
|
17588
|
+
const DEV_PORT = 3000;
|
|
17589
|
+
const DEV_WS_PORT = 4000;
|
|
17590
|
+
path.join(os.homedir(), '__TTMG__');
|
|
17591
|
+
const PKG_SIZE_LIMIT = {
|
|
17592
|
+
pkgSizeLimit: 30 * 1024 * 1024,
|
|
17593
|
+
mainPkgSizeLimit: 4 * 1024 * 1024,
|
|
17594
|
+
independentSubPkgSizeLimit: 4 * 1024 * 1024,
|
|
17595
|
+
};
|
|
17596
|
+
const NATIVE_GAME_ENTRY_FILES = [
|
|
17597
|
+
'game.js',
|
|
17598
|
+
'game.json',
|
|
17599
|
+
'project.config.json',
|
|
17600
|
+
];
|
|
17601
|
+
const SUBPACKAGE_FIELD_NAMES = ['subpackages', 'subPackages'];
|
|
17602
|
+
const SUBPACKAGE_CONFIG_FILE_NAME = 'game.json';
|
|
17603
|
+
|
|
17604
|
+
const defaultDependencies$5 = {
|
|
17605
|
+
checkPackages: ttmgPack.checkPkgs,
|
|
17606
|
+
operationId: () => `check_${crypto.randomUUID()}`,
|
|
17607
|
+
};
|
|
17608
|
+
function normalizeFormat$2(format) {
|
|
17609
|
+
const value = (format || 'text').toLowerCase();
|
|
17610
|
+
if (value !== 'text' && value !== 'json') {
|
|
17611
|
+
throw new Error(t('check.error.invalidFormat', { format: value }));
|
|
17612
|
+
}
|
|
17613
|
+
return value;
|
|
17614
|
+
}
|
|
17615
|
+
function normalizeFailOn(failOn) {
|
|
17616
|
+
const value = (failOn || 'error').toLowerCase();
|
|
17617
|
+
if (value !== 'error' && value !== 'warning') {
|
|
17618
|
+
throw new Error(t('check.error.invalidFailOn', { failOn: value }));
|
|
17619
|
+
}
|
|
17620
|
+
return value;
|
|
17621
|
+
}
|
|
17622
|
+
function codePart(value) {
|
|
17623
|
+
return value
|
|
17624
|
+
.replace(/[^a-zA-Z0-9]+/g, '_')
|
|
17625
|
+
.replace(/^_+|_+$/g, '')
|
|
17626
|
+
.toUpperCase();
|
|
17627
|
+
}
|
|
17628
|
+
function toCheckDiagnostic(result) {
|
|
17629
|
+
result = localizePackCheckResult(result);
|
|
17630
|
+
const type = result.type || 'unknown';
|
|
17631
|
+
const name = result.name || result.dimension || 'project';
|
|
17632
|
+
return {
|
|
17633
|
+
code: `TTMG_CHECK_${codePart(type)}_${codePart(name)}`,
|
|
17634
|
+
severity: result.level || (result.passed ? 'info' : 'error'),
|
|
17635
|
+
passed: result.passed,
|
|
17636
|
+
type,
|
|
17637
|
+
dimension: result.dimension || 'project',
|
|
17638
|
+
name,
|
|
17639
|
+
required: result.required === true,
|
|
17640
|
+
message: result.msg,
|
|
17641
|
+
location: {
|
|
17642
|
+
file: result.file || null,
|
|
17643
|
+
files: Array.isArray(result.files) ? result.files : [],
|
|
17644
|
+
},
|
|
17645
|
+
metrics: {
|
|
17646
|
+
sizeBytes: typeof result.size === 'number' ? result.size : null,
|
|
17647
|
+
},
|
|
17648
|
+
help: {
|
|
17649
|
+
url: result.detail?.link || null,
|
|
17650
|
+
text: result.detail?.text || null,
|
|
17651
|
+
},
|
|
17652
|
+
};
|
|
17653
|
+
}
|
|
17654
|
+
function createFailedReport({ operationId, directory, code, message, }) {
|
|
17655
|
+
const diagnostic = {
|
|
17656
|
+
code,
|
|
17657
|
+
severity: 'error',
|
|
17658
|
+
passed: false,
|
|
17659
|
+
type: 'project',
|
|
17660
|
+
dimension: 'project',
|
|
17661
|
+
name: 'project',
|
|
17662
|
+
required: true,
|
|
17663
|
+
message,
|
|
17664
|
+
location: { file: null, files: [] },
|
|
17665
|
+
metrics: { sizeBytes: null },
|
|
17666
|
+
help: { url: null, text: null },
|
|
17667
|
+
};
|
|
17668
|
+
return {
|
|
17669
|
+
schemaVersion: '1',
|
|
17670
|
+
operationId,
|
|
17671
|
+
command: 'check',
|
|
17672
|
+
status: 'failed',
|
|
17673
|
+
project: { directory },
|
|
17674
|
+
summary: { total: 1, passed: 0, warnings: 0, errors: 1 },
|
|
17675
|
+
diagnostics: [diagnostic],
|
|
17676
|
+
errorCode: code,
|
|
17677
|
+
error: message,
|
|
17678
|
+
};
|
|
17679
|
+
}
|
|
17680
|
+
async function executeCheck(options, dependencies = {}) {
|
|
17681
|
+
const deps = { ...defaultDependencies$5, ...dependencies };
|
|
17682
|
+
const operationId = deps.operationId();
|
|
17683
|
+
const directory = path.resolve(process.cwd(), options.dir || '.');
|
|
17684
|
+
if (!fs.existsSync(directory) || !fs.statSync(directory).isDirectory()) {
|
|
17685
|
+
return createFailedReport({
|
|
17686
|
+
operationId,
|
|
17687
|
+
directory,
|
|
17688
|
+
code: 'CHECK_DIRECTORY_NOT_FOUND',
|
|
17689
|
+
message: t('check.error.dirNotExist', { dir: directory }),
|
|
17690
|
+
});
|
|
17691
|
+
}
|
|
17692
|
+
const hasEntry = NATIVE_GAME_ENTRY_FILES.some(file => fs.existsSync(path.join(directory, file)));
|
|
17693
|
+
if (!hasEntry) {
|
|
17694
|
+
return createFailedReport({
|
|
17695
|
+
operationId,
|
|
17696
|
+
directory,
|
|
17697
|
+
code: 'CHECK_INVALID_PROJECT',
|
|
17698
|
+
message: t('native.check.notWorkspace'),
|
|
17699
|
+
});
|
|
17700
|
+
}
|
|
17701
|
+
try {
|
|
17702
|
+
const results = await deps.checkPackages({
|
|
17703
|
+
entry: directory,
|
|
17704
|
+
output: directory,
|
|
17705
|
+
dev: {
|
|
17706
|
+
enable: true,
|
|
17707
|
+
enableSourcemap: false,
|
|
17708
|
+
enableLog: false,
|
|
17792
17709
|
},
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
key: 'shortcut_revisit',
|
|
17798
|
-
icon: '📌',
|
|
17799
|
-
titleKey: 'ia.menu.shortcutRevisit',
|
|
17800
|
-
summaryKey: 'ia.shortcut.summary',
|
|
17801
|
-
sceneKey: 'scene_shortcut',
|
|
17802
|
-
apiTags: ['addShortcut', 'getShortcutMissionReward', 'canIUse'],
|
|
17803
|
-
highlightKeys: ['ia.shortcut.highlight1', 'ia.shortcut.highlight2'],
|
|
17804
|
-
prerequisiteKeys: ['ia.shortcut.prerequisite1', 'ia.shortcut.prerequisite2'],
|
|
17805
|
-
stepKeys: ['ia.shortcut.step1', 'ia.shortcut.step2', 'ia.shortcut.step3'],
|
|
17806
|
-
tipKeys: ['ia.shortcut.tip1', 'ia.shortcut.tip2'],
|
|
17807
|
-
actions: [
|
|
17808
|
-
{
|
|
17809
|
-
labelKey: 'ia.action.openCapabilityDoc',
|
|
17810
|
-
type: 'external',
|
|
17811
|
-
href: 'https://bytedance.larkoffice.com/wiki/AW4JwueaXiiKtTkK0c9cIo4lnud',
|
|
17812
|
-
target: '_blank',
|
|
17813
|
-
theme: 'solid',
|
|
17710
|
+
build: {
|
|
17711
|
+
enableOdr: false,
|
|
17712
|
+
enableAPICheck: true,
|
|
17713
|
+
...PKG_SIZE_LIMIT,
|
|
17814
17714
|
},
|
|
17815
|
-
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
{
|
|
17832
|
-
labelKey: 'ia.action.openCapabilityDoc',
|
|
17833
|
-
type: 'external',
|
|
17834
|
-
href: 'https://bytedance.sg.larkoffice.com/docx/VZ3odoD8DoSxFXxANh5lLxVMgPx',
|
|
17835
|
-
target: '_blank',
|
|
17836
|
-
theme: 'solid',
|
|
17715
|
+
}, { lang: getPackLanguage() });
|
|
17716
|
+
const allDiagnostics = results.map(toCheckDiagnostic);
|
|
17717
|
+
const errors = allDiagnostics.filter(item => !item.passed && item.severity === 'error').length;
|
|
17718
|
+
const warnings = allDiagnostics.filter(item => !item.passed && item.severity === 'warning').length;
|
|
17719
|
+
const passed = allDiagnostics.filter(item => item.passed).length;
|
|
17720
|
+
return {
|
|
17721
|
+
schemaVersion: '1',
|
|
17722
|
+
operationId,
|
|
17723
|
+
command: 'check',
|
|
17724
|
+
status: errors > 0 ? 'failed' : warnings > 0 ? 'warning' : 'passed',
|
|
17725
|
+
project: { directory },
|
|
17726
|
+
summary: {
|
|
17727
|
+
total: allDiagnostics.length,
|
|
17728
|
+
passed,
|
|
17729
|
+
warnings,
|
|
17730
|
+
errors,
|
|
17837
17731
|
},
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17732
|
+
diagnostics: options.includePassed
|
|
17733
|
+
? allDiagnostics
|
|
17734
|
+
: allDiagnostics.filter(item => !item.passed),
|
|
17735
|
+
errorCode: errors > 0 ? 'CHECK_FAILED' : null,
|
|
17736
|
+
error: null,
|
|
17737
|
+
};
|
|
17738
|
+
}
|
|
17739
|
+
catch (error) {
|
|
17740
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
17741
|
+
return createFailedReport({
|
|
17742
|
+
operationId,
|
|
17743
|
+
directory,
|
|
17744
|
+
code: 'CHECK_EXECUTION_FAILED',
|
|
17745
|
+
message,
|
|
17746
|
+
});
|
|
17747
|
+
}
|
|
17748
|
+
}
|
|
17749
|
+
function printText(report) {
|
|
17750
|
+
const color = report.status === 'failed'
|
|
17751
|
+
? chalk.red
|
|
17752
|
+
: report.status === 'warning'
|
|
17753
|
+
? chalk.yellow
|
|
17754
|
+
: chalk.green;
|
|
17755
|
+
console.log(color.bold(t('check.summary', {
|
|
17756
|
+
status: report.status,
|
|
17757
|
+
passed: report.summary.passed,
|
|
17758
|
+
warnings: report.summary.warnings,
|
|
17759
|
+
errors: report.summary.errors,
|
|
17760
|
+
})));
|
|
17761
|
+
for (const diagnostic of report.diagnostics) {
|
|
17762
|
+
const location = diagnostic.location.file
|
|
17763
|
+
? ` (${diagnostic.location.file})`
|
|
17764
|
+
: '';
|
|
17765
|
+
console.log(`${diagnostic.severity.toUpperCase()} ${diagnostic.code}: ${diagnostic.message}${location}`);
|
|
17766
|
+
if (diagnostic.help.url)
|
|
17767
|
+
console.log(` ${diagnostic.help.url}`);
|
|
17768
|
+
}
|
|
17769
|
+
}
|
|
17770
|
+
async function checkCommand(options = {}) {
|
|
17771
|
+
let format = 'text';
|
|
17772
|
+
let failOn = 'error';
|
|
17773
|
+
try {
|
|
17774
|
+
format = normalizeFormat$2(options.format);
|
|
17775
|
+
failOn = normalizeFailOn(options.failOn);
|
|
17776
|
+
}
|
|
17777
|
+
catch (error) {
|
|
17778
|
+
const report = createFailedReport({
|
|
17779
|
+
operationId: `check_${crypto.randomUUID()}`,
|
|
17780
|
+
directory: path.resolve(process.cwd(), options.dir || '.'),
|
|
17781
|
+
code: 'CHECK_INVALID_ARGUMENT',
|
|
17782
|
+
message: error instanceof Error ? error.message : String(error),
|
|
17783
|
+
});
|
|
17784
|
+
if (options.format === 'json')
|
|
17785
|
+
console.log(JSON.stringify(report));
|
|
17786
|
+
else
|
|
17787
|
+
printText(report);
|
|
17788
|
+
process.exitCode = 1;
|
|
17789
|
+
return report;
|
|
17790
|
+
}
|
|
17791
|
+
const report = await executeCheck(options);
|
|
17792
|
+
if (format === 'json')
|
|
17793
|
+
console.log(JSON.stringify(report));
|
|
17794
|
+
else
|
|
17795
|
+
printText(report);
|
|
17796
|
+
if (report.status === 'failed' ||
|
|
17797
|
+
(failOn === 'warning' && report.status === 'warning')) {
|
|
17798
|
+
process.exitCode = 1;
|
|
17799
|
+
}
|
|
17800
|
+
return report;
|
|
17801
|
+
}
|
|
17864
17802
|
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
"capabilityCheck.not_detected": "No related calls detected",
|
|
17871
|
-
"capabilityCheck.not_checked": "Unable to check",
|
|
17872
|
-
"capabilityCheck.unity_binary": "Unity binary calls cannot be checked by this JavaScript scan",
|
|
17873
|
-
"capabilityCheck.scan_incomplete": "Some files could not be parsed or scanned; aliases and dynamic calls may also be missed",
|
|
17874
|
-
"capabilityCheck.guide": "Integration guide",
|
|
17875
|
-
"capabilityCheck.verify": "After rebuilding, open Local pre-check for package results and capability hints, then verify the actual behavior on a phone.",
|
|
17876
|
-
"ia.action.goLaunchMode": "Open Launch mode",
|
|
17877
|
-
"ia.action.goSubpackageCollect": "Open Subpackage Collection",
|
|
17878
|
-
"ia.action.goNetworkDiagnostics": "Open Network Diagnostics",
|
|
17879
|
-
"ia.action.goPrecheck": "Open Local pre-check",
|
|
17880
|
-
"ia.action.goProjectDetail": "Open Project detail",
|
|
17881
|
-
"ia.action.openCapabilityDoc": "Detailed guide",
|
|
17882
|
-
"ia.ad.highlight1": "Enable IAA and create placements first, then debug code paths; unreleased apps often cannot even finish placement setup.",
|
|
17883
|
-
"ia.ad.highlight2": "Rewarded video needs accurate post-play rewards, while interstitials need strict pacing and low disruption.",
|
|
17884
|
-
"ia.ad.prerequisite1": "Complete business verification and contract signing first, then enable In-App Ads in Monetization. Unreleased apps are usually blocked from creating usable ad placements.",
|
|
17885
|
-
"ia.ad.prerequisite2": "For U.S. / EU launch, start Sensitive Data, USDS / TPRM, and related compliance work early, and prepare both IAA Mock and real-device verification paths.",
|
|
17886
|
-
"ia.ad.step1": "Confirm IAA is enabled and the app is already released, then go to Ad placements and create the required placement ids.",
|
|
17887
|
-
"ia.ad.step2": "In business code, integrate ad instance creation, load, show, and callback handling, and separately verify rewarded-video and interstitial success, failure, and close branches.",
|
|
17888
|
-
"ia.ad.step3": "Focus the final regression on reward accuracy, frequency control, and experience boundaries: rewarded video should grant rewards only after full playback, and interstitials need at least a 60-second gap between triggers.",
|
|
17889
|
-
"ia.ad.summary": "IAA ads cover rewarded video and interstitial formats, and the core chain is enablement, ad-placement creation, ad load/show, and close / reward callback handling without damaging the core experience.",
|
|
17890
|
-
"ia.ad.tip1": "Make reward delivery idempotent so repeated callbacks, page switches, or re-entry do not cause duplicate rewards.",
|
|
17891
|
-
"ia.ad.tip2": "Do not force ads into initialization, tutorial, or other high-frequency paths. If platform compliance or release gating is still blocked, fix that first.",
|
|
17892
|
-
"ia.authorize.highlight1": "The key is not direct client-side profile access, but explicit extra-scope consent after `login`.",
|
|
17893
|
-
"ia.authorize.highlight2": "Nickname, avatar, and other profile data should ultimately be fetched by the backend with `access_token`, not returned in one client call.",
|
|
17894
|
-
"ia.authorize.prerequisite1": "Fill in Terms URL and Privacy URL in Project detail first, and make sure the `login` flow can already exchange for `open_id/access_token` reliably.",
|
|
17895
|
-
"ia.authorize.prerequisite2": "Define scopes from real business needs. Do not assume profile fields such as nickname or avatar come directly from the client; they should come from backend OpenAPI calls after consent.",
|
|
17896
|
-
"ia.authorize.step1": "Use `tt.login` to get the one-time `auth_code`, then exchange it on your backend for `open_id` / `access_token` so the base identity state is ready.",
|
|
17897
|
-
"ia.authorize.step2": "Call `tt.authorize` only in flows that truly need extra profile data or permissions, for example `scope: 'user.info.basic'`, and cover first-consent, reject, and re-entry branches.",
|
|
17898
|
-
"ia.authorize.step3": "After the user agrees, let the backend call OpenAPI with `access_token`, then verify the returned scopes, profile fields, and fallback behavior all match the business path.",
|
|
17899
|
-
"ia.authorize.summary": "Authorization asks users for extra scopes such as `user.info.basic` after `login` has already established base identity, then lets your backend use `access_token` to fetch profile data or complete permission checks.",
|
|
17900
|
-
"ia.authorize.tip1": "Do not collapse authorization into login. `login` establishes identity, while `authorize` requests extra scopes, so their failure handling should stay separate.",
|
|
17901
|
-
"ia.authorize.tip2": "Do not block the default flow on non-essential permissions. If users reject consent, the base flow should still work and there should be a clear re-trigger entry.",
|
|
17902
|
-
"ia.directPlay.highlight1": "It reaches users in Feed with a previously played game card, and the main CTA is `Play now`.",
|
|
17903
|
-
"ia.directPlay.highlight2": "It works well as a shared reproduction path for growth, delivery, and QA when recalling high-value users.",
|
|
17904
|
-
"ia.directPlay.prerequisite1": "Stage 1 only focuses on the mini game package runtime. TT Feed presentation, forced insertion, and the `Play now` handoff are out of scope there.",
|
|
17905
|
-
"ia.directPlay.prerequisite2": "Before moving into stage 2, make sure package launch, first-screen loading, and the core in-game path are already stable under the direct-play scene.",
|
|
17906
|
-
"ia.directPlay.step1": "Open Launch mode, choose the direct-play scene, and save a dedicated mode for package debugging.",
|
|
17907
|
-
"ia.directPlay.step2": "Return to Home and scan to launch. Verify that the package can enter reliably and complete the basic in-game flow under that scene.",
|
|
17908
|
-
"ia.directPlay.step3": "Only after the package itself is stable should you come back here to validate the direct-play card presentation and handoff with a preview QR code, then manage the same card's live status.",
|
|
17909
|
-
"ia.directPlay.summary": "Direct-play debugging is best split into three stages: first verify the mini game package itself, then use a preview QR code to validate the card presentation and handoff path, and finally manage the verified card's live status.",
|
|
17910
|
-
"ia.directPlay.tip1": "If stage 1 fails, debug it like a normal package/runtime issue first instead of attributing it to Feed presentation or delivery logic too early.",
|
|
17911
|
-
"ia.directPlay.tip2": "When stage 2 fails, separate package runtime issues from card configuration, asset, or handoff-path issues; stage 3 only manages the live status of the card already verified in stage 2.",
|
|
17912
|
-
"ia.login.highlight1": "The core output is an `auth_code`, which your backend exchanges for `open_id` / session state.",
|
|
17913
|
-
"ia.login.highlight2": "`login` and `authorize` are different paths: `login` establishes identity, while `authorize` requests extra scopes.",
|
|
17914
|
-
"ia.login.prerequisite1": "Make sure the active `client_key` matches the terminal debug configuration and is injected correctly into the `tt.login` call path at runtime.",
|
|
17915
|
-
"ia.login.prerequisite2": "Your backend should already expose the code-exchange API for `auth_code` -> `open_id` / session, with clear retry, error-code, and session-expiration handling.",
|
|
17916
|
-
"ia.login.requirementScope": "Login is required for IAP and features that identify players, such as cross-device saves or leaderboards. An ad-supported game without those features does not need login. Verify the backend session and success/failure paths on a phone.",
|
|
17917
|
-
"ia.login.step1": "Call `tt.login` (or your business wrapper) from the business page and confirm the client can return a stable `auth_code`.",
|
|
17918
|
-
"ia.login.step2": "Send the `auth_code` to your backend and verify the `open_id` / session exchange, session persistence, and downstream request propagation all work correctly.",
|
|
17919
|
-
"ia.login.step3": "Cover user cancel, network failure, expired `auth_code`, and backend exchange failure branches, then confirm the UI fallback and retry strategy are usable.",
|
|
17920
|
-
"ia.login.summary": "Login is the mini game identity capability. It gets an `auth_code` on the client, then your backend exchanges that code for `open_id` / session state.",
|
|
17921
|
-
"ia.login.tip1": "Get the main `auth_code -> open_id / session` path stable first, then expand into profile, analytics, or other business flows that depend on login state.",
|
|
17922
|
-
"ia.login.tip2": "In the current SDK, `login` defaults to `user.info.open_id`. If you need more user data or extra scopes, request them separately in `authorize`.",
|
|
17923
|
-
"ia.menu.ad": "Ads",
|
|
17924
|
-
"ia.menu.authorize": "Authorization",
|
|
17925
|
-
"ia.menu.directPlayCard": "Direct play card",
|
|
17926
|
-
"ia.menu.login": "Login",
|
|
17927
|
-
"ia.menu.network": "Network and realtime",
|
|
17928
|
-
"ia.menu.payment": "Payment",
|
|
17929
|
-
"ia.menu.shareMessage": "In-app message share",
|
|
17930
|
-
"ia.menu.shareStory": "Share to Story",
|
|
17931
|
-
"ia.menu.shortcutRevisit": "Shortcut revisit",
|
|
17932
|
-
"ia.menu.sidebarRevisit": "Sidebar revisit",
|
|
17933
|
-
"ia.menu.subpackage": "Subpackage and preload",
|
|
17934
|
-
"ia.menu.uiAdaptation": "UI adaptation",
|
|
17935
|
-
"ia.menu.wasmSplit": "Wasm Code Split",
|
|
17936
|
-
"ia.monetization.mode.iaa.desc": "Configure ad placements and verify ad requests and callbacks. Add login if your game needs an account or server session, and request profile authorization only when needed. Verify network failures and revisit paths that your game uses.",
|
|
17937
|
-
"ia.monetization.mode.iaa.summary": "Verify ad placements, requests, and callbacks. Add login only for identity-dependent features. Both revisit entries are required.",
|
|
17938
|
-
"ia.monetization.mode.iaa.title": "Ads",
|
|
17939
|
-
"ia.monetization.mode.iaap.desc": "Integrate `login`, then verify ads and payments separately, including errors in the same player session. Add `authorize` only when extra user profile data is needed. Verify both revisit paths as well.",
|
|
17940
|
-
"ia.monetization.mode.iaap.summary": "Ads and payments run together, so validate overall stability on top of the shared user system.",
|
|
17941
|
-
"ia.monetization.mode.iaap.title": "Hybrid monetization",
|
|
17942
|
-
"ia.monetization.mode.iap.desc": "For purchase-driven games, start with `login`, order creation, payment invocation, backend verification, and fulfillment as one closed loop. Add `authorize` only when extra profile data or additional scopes are required, pay special attention to weak-network, payment-cancel, and duplicate-order cases, and use revisit capabilities to validate the return path for paying users.",
|
|
17943
|
-
"ia.monetization.mode.iap.summary": "The payment loop comes first, with order creation, payment, verification, and fulfillment kept consistent end to end.",
|
|
17944
|
-
"ia.monetization.mode.iap.title": "In-app purchases",
|
|
17945
|
-
"ia.network.highlight1": "This topic is about weak-network and recovery behavior, not only single-request success on a good connection.",
|
|
17946
|
-
"ia.network.highlight2": "Request, download, and realtime paths should each have explicit recovery rules.",
|
|
17947
|
-
"ia.network.prerequisite1": "Unify request, download, and realtime paths before debugging so timeout, retry, and error visibility are not implemented differently in each page.",
|
|
17948
|
-
"ia.network.prerequisite2": "Prepare different fallback and user feedback for HTTP, downloads, and long connections instead of treating them as the same failure type.",
|
|
17949
|
-
"ia.network.step1": "Wrap request, download, and Socket calls behind a shared layer so timeout, cancel, retry, and logs are handled consistently.",
|
|
17950
|
-
"ia.network.step2": "Use `getNetworkType`, network-change listeners, and weak-network listeners to verify that pages react to network changes instead of failing silently.",
|
|
17951
|
-
"ia.network.step3": "On device, focus regression on weak-network, reconnect, interrupted downloads, and Socket recovery so state restoration is actually complete.",
|
|
17952
|
-
"ia.network.summary": "Network and realtime covers `request`, `downloadFile`, `connectSocket`, and network-status observation, with the focus on usable weak-network, disconnect, and recovery behavior.",
|
|
17953
|
-
"ia.network.tip1": "Do not test only ideal network. Most real issues come from timeout, half-downloaded assets, broken connections, and repeated reconnect attempts.",
|
|
17954
|
-
"ia.network.tip2": "Realtime flows should explicitly cover close, background/foreground transition, and resubscribe logic after recovery.",
|
|
17955
|
-
"ia.overview.section.foundation.desc": "Adapt the interface, configure network access, and plan resource loading and subpackages as needed for your game.",
|
|
17956
|
-
"ia.overview.section.foundation.title": "Core capabilities",
|
|
17957
|
-
"ia.overview.section.growth.desc": "Both revisit entries are required. Handle unavailable entries gracefully and test real return paths after release. Rewards are optional.",
|
|
17958
|
-
"ia.overview.section.growth.title": "Growth and revisit",
|
|
17959
|
-
"ia.overview.section.identity.desc": "Use login for IAP or features that need player identity. Request extra profile data or permission scopes only when needed.",
|
|
17960
|
-
"ia.overview.section.identity.title": "Login and authorization",
|
|
17961
|
-
"ia.overview.section.monetization.desc": "Revenue mainly comes from payment and ads, and both require portal enablement, business-loop validation, and device regression.",
|
|
17962
|
-
"ia.overview.section.monetization.title": "Monetization",
|
|
17963
|
-
"ia.overview.section.share.desc": "Help players share the game and return to the right in-game scene.",
|
|
17964
|
-
"ia.overview.section.share.title": "Sharing and growth",
|
|
17965
|
-
"ia.payment.highlight1": "The real payment loop is order creation, payment invocation, verification, and fulfillment, not just opening the pay panel.",
|
|
17966
|
-
"ia.payment.highlight2": "Use IAP Mock to iterate faster, then validate real Beans payment against backend results on device.",
|
|
17967
|
-
"ia.payment.prerequisite1": "Complete business verification and contract signing first, then enable In-App Purchases in Monetization. The payout entity should match the verified business entity.",
|
|
17968
|
-
"ia.payment.prerequisite2": "Prepare product config, test accounts, and backend capabilities for order creation, persistence, and verification. For local iteration, enable IAP Mock first to cover the main branches.",
|
|
17969
|
-
"ia.payment.step1": "Finish portal enablement, product setup, and payout info, then connect backend order creation, order persistence, and payment-result verification.",
|
|
17970
|
-
"ia.payment.step2": "Integrate client payment invocation and callback handling, and use IAP Mock first to cover success, failure, cancel, and repeated-tap branches.",
|
|
17971
|
-
"ia.payment.step3": "Then switch to real-device preview or real-device debug and verify real payment, backend verification, fulfillment / crediting, and retry handling as a complete loop.",
|
|
17972
|
-
"ia.payment.summary": "IAP monetization is the full chain of backend order creation, client-side payment invocation, and backend verification / fulfillment for virtual goods or value-added services, with TikTok Beans as the only supported payment method.",
|
|
17973
|
-
"ia.payment.tip1": "Do not treat the client success callback as the final truth. Fulfillment or crediting should rely on backend verification or the authoritative order state.",
|
|
17974
|
-
"ia.payment.tip2": "Mock is useful for iteration speed, but real-device regression is still required before release, especially for weak-network, duplicate-order, cancel, and timeout cases.",
|
|
17975
|
-
"ia.shareMessage.highlight1": "For `shareAppMessage`, the card title, description, and cover come from the game basic info in the developer portal, not from dynamic business-side customization.",
|
|
17976
|
-
"ia.shareMessage.highlight2": "What the business side really needs to design is `query`, so proactive share, mission share, and campaign sharing can land in the correct in-game scenario.",
|
|
17977
|
-
"ia.shareMessage.prerequisite1": "Confirm client-version support first and probe availability with `TTMinis.game.canIUse('shareAppMessage')` instead of assuming the capability exists on every runtime.",
|
|
17978
|
-
"ia.shareMessage.prerequisite2": "Make sure the game basic info is correctly configured in the developer portal first, because the in-app message card title, description, and cover are sourced from that portal config. Then focus the business logic on `query` and landing behavior.",
|
|
17979
|
-
"ia.shareMessage.step1": "Integrate `TTMinis.game.shareAppMessage` in pages that fit acquisition, recall, or campaign sharing, and verify that the `query` value accurately represents the current business scenario.",
|
|
17980
|
-
"ia.shareMessage.step2": "Focus on success, cancel, failure, and repeated-tap branches so the in-app message share action, callbacks, and user feedback all stay stable.",
|
|
17981
|
-
"ia.shareMessage.step3": "On device, verify the message-card presentation and post-share return path so recipients land on the right page and the query-driven state is restored correctly.",
|
|
17982
|
-
"ia.shareMessage.summary": "`shareAppMessage` is TikTok in-app message sharing. The card title, description, and cover come from the game basic info configured in the developer portal, while the business-side design focus is how `query` carries the exact in-game share scenario.",
|
|
17983
|
-
"ia.shareMessage.tip1": "This is better described as an in-app message card share capability, but the card title, description, and cover are not dynamically customized by business code at share time. What you really control is `query` and the landing flow.",
|
|
17984
|
-
"ia.shareMessage.tip2": "If many share entries exist, centralize `query` generation and parsing. Maintain the game basic info separately in the developer portal instead of assuming share-time overrides are supported.",
|
|
17985
|
-
"ia.shareStory.highlight1": "`shareToStory` is more visual, but what the business side still needs to design carefully is `query`, so the share can return to the right in-game scenario.",
|
|
17986
|
-
"ia.shareStory.highlight2": "Do dedicated device regression for Story, checking both asset presentation quality and `query`-driven return-path stability.",
|
|
17987
|
-
"ia.shareStory.prerequisite1": "Identify which campaign, gameplay, or result pages are actually suitable for Story sharing instead of forcing a Story entry into every flow.",
|
|
17988
|
-
"ia.shareStory.prerequisite2": "Prepare Story-appropriate assets first, then design the `query` value and landing behavior together. Do not optimize only for visual materials while leaving the in-game return logic ambiguous.",
|
|
17989
|
-
"ia.shareStory.step1": "Integrate `shareToStory` on pages that are appropriate for visual propagation and verify that both the selected asset and the `query` value represent the active business scenario correctly.",
|
|
17990
|
-
"ia.shareStory.step2": "Cover trigger, cancel, failure, and multiple-asset branches so the Story-sharing presentation and user feedback both behave as expected.",
|
|
17991
|
-
"ia.shareStory.step3": "On device, verify the return path after Story sharing and confirm that the target page, campaign state, and params are restored correctly.",
|
|
17992
|
-
"ia.shareStory.summary": "`shareToStory` focuses on Story sharing. The visible presentation depends more on the Story asset itself, while the business-side design focus is still the `query` value and the post-share landing flow.",
|
|
17993
|
-
"ia.shareStory.tip1": "Story sharing should not be treated as a simple copy of message sharing. Asset expression is one part, but `query` and the post-share landing flow still need deliberate business-side design.",
|
|
17994
|
-
"ia.shareStory.tip2": "If Story depends on strong visual materials, do focused real-device checks on both asset presentation and whether the `query`-driven return path restores the right page state.",
|
|
17995
|
-
"ia.shortcut.highlight1": "Verify the path from adding the shortcut to returning from the home screen and checking reward eligibility.",
|
|
17996
|
-
"ia.shortcut.highlight2": "Check the entry scene and `canReceiveReward`, then verify how your game grants the reward.",
|
|
17997
|
-
"ia.shortcut.prerequisite1": "Compatibility: probe support via `TTMinis.game.canIUse('addShortcut')`. Validate on TikTok 41.0.0+ (iOS requires 41.40+).",
|
|
17998
|
-
"ia.shortcut.prerequisite2": "Reward verification: in the real user flow, `TTMinis.game.getShortcutMissionReward()` returns `canReceiveReward=true` only when the session is launched from the home-screen shortcut. Under `scene_shortcut` Launch mode, the session itself already simulates that entry.",
|
|
17999
|
-
"ia.shortcut.step1": "Add a clear entry point in your UI: check `canIUse('addShortcut')`, then call `TTMinis.game.addShortcut()`, and log `errorCode/errorMsg` on failures for debugging.",
|
|
18000
|
-
"ia.shortcut.step2": "Use `ttmg dev` and Launch mode `scene_shortcut` to simulate entry handling. Simulation does not prove a real revisit. The home-screen shortcut opens the released version, not the local build or platform Preview.",
|
|
18001
|
-
"ia.shortcut.step3": "After release, leave and reopen from the real home-screen shortcut. Verify the version and gameplay. If offering rewards, treat `getShortcutMissionReward` as a client hint; grant rewards only after independent server verification.",
|
|
18002
|
-
"ia.shortcut.summary": "Guide players to add a home-screen shortcut and return through it. Keep the game playable when unavailable; rewards are optional.",
|
|
18003
|
-
"ia.shortcut.tip1": "`canReceiveReward` and simulated entry results do not prove a real revisit or server-verified reward eligibility.",
|
|
18004
|
-
"ia.shortcut.tip2": "Do not grant revisit rewards without a trusted independent verification method. If rewards are enabled, also prevent duplicate grants.",
|
|
18005
|
-
"ia.sidebar.highlight1": "Verify the sidebar entry, task state, and reward eligibility together.",
|
|
18006
|
-
"ia.sidebar.highlight2": "Choose a suitable in-game entry and verify the return and reward flows on a device.",
|
|
18007
|
-
"ia.sidebar.prerequisite1": "Confirm the account region is within the supported rollout and check capability support with `canIUse` in business code first.",
|
|
18008
|
-
"ia.sidebar.prerequisite2": "Use a dedicated sidebar-revisit scene in Launch mode instead of keeping the default QR path.",
|
|
18009
|
-
"ia.sidebar.step1": "Add an in-game entry that checks support and calls `TTMinis.game.startEntranceMission`. Handle unavailable capability, cancellation and failure without blocking gameplay.",
|
|
18010
|
-
"ia.sidebar.step2": "Use `ttmg dev` and Launch mode `scene_center` to simulate sidebar entry handling. This tests the simulated scene, not the real sidebar return path.",
|
|
18011
|
-
"ia.sidebar.step3": "After release, reopen from the real sidebar and verify which version opens and that gameplay works. If offering rewards, treat `getEntranceMissionReward` as a client hint; grant rewards only after independent server verification.",
|
|
18012
|
-
"ia.sidebar.summary": "Provide a sidebar-revisit guide and verify the real return path. Keep the game playable when unavailable; rewards are optional.",
|
|
18013
|
-
"ia.sidebar.tip1": "This capability strongly depends on scene and region conditions, so do not describe or validate it only through the default QR path.",
|
|
18014
|
-
"ia.sidebar.tip2": "Check scene, account/region availability and client support on failure. Do not grant revisit rewards without trusted independent verification; prevent duplicate grants when enabled.",
|
|
18015
|
-
"ia.subpackage.highlight1": "Split-package quality depends on boundary definition, preload timing, and fallback, not on splitting as much as possible.",
|
|
18016
|
-
"ia.subpackage.highlight2": "Validate both first-screen speed and later scene transitions under weak network.",
|
|
18017
|
-
"ia.subpackage.prerequisite1": "Identify what is truly required on the first screen versus what belongs to later gameplay or optional resources.",
|
|
18018
|
-
"ia.subpackage.prerequisite2": "Prepare consistent loading fallback, retry, and loading-state UX instead of scattering split-package logic inside business pages.",
|
|
18019
|
-
"ia.subpackage.step1": "Declare each name and root under `subpackages` in `game.json`, and check that the package root has a `game.js` entry. Keep first-screen resources in the main package.",
|
|
18020
|
-
"ia.subpackage.step2": "Use `preDownloadSubpackage` to download ahead of time. Use `loadSubpackage` to download and execute the package entry; before entering the scene, wait for required assets and initialization.",
|
|
18021
|
-
"ia.subpackage.step3": "Run device and weak-network regression on first-screen enter, later jumps, and split-package failure recovery so users do not get stuck mid-load.",
|
|
18022
|
-
"ia.subpackage.summary": "Subpackage and preload focuses on first-package size, split boundaries, and resource loading timing so later content can arrive smoothly without hurting first-screen speed.",
|
|
18023
|
-
"ia.subpackage.tip1": "Preload does not mean ready-to-use. Validate the actual business transition when the split package is truly needed.",
|
|
18024
|
-
"ia.subpackage.tip2": "Do not over-split just to chase a smaller main package. Timing, fallback, and dependency correctness matter more than raw split count.",
|
|
18025
|
-
"ia.uiAdaptation.highlight1": "The goal is not one-off page fixes but a shared layout baseline for safe area, capsule button, and window metrics.",
|
|
18026
|
-
"ia.uiAdaptation.highlight2": "Validate on real devices with different sizes so titles, floating buttons, and bottom action areas stay unobstructed.",
|
|
18027
|
-
"ia.uiAdaptation.prerequisite1": "List the key pages that depend on top bars, floating actions, fixed bottom areas, or full-screen visuals instead of patching only one page.",
|
|
18028
|
-
"ia.uiAdaptation.prerequisite2": "Prepare real-device or multi-size preview coverage, especially across different aspect ratios, top safe areas, and bottom gesture areas.",
|
|
18029
|
-
"ia.uiAdaptation.step1": "First centralize window-size, safe-area, and capsule-button metrics into a layout baseline instead of hardcoding them separately in each page.",
|
|
18030
|
-
"ia.uiAdaptation.step2": "Adapt top title areas, top-right actions, bottom fixed controls, and modal content so they do not overlap with the capsule button or system safe areas.",
|
|
18031
|
-
"ia.uiAdaptation.step3": "Run real-device regression on key pages and check aspect-ratio changes, scroll containers, full-screen backgrounds, and tap targets across devices.",
|
|
18032
|
-
"ia.uiAdaptation.summary": "UI adaptation focuses on screen-size, capsule-button, and safe-area handling so key UI stays visible, tappable, and correctly aligned across devices.",
|
|
18033
|
-
"ia.uiAdaptation.tip1": "Do not look only at visual alignment. Tap areas, modal close affordances, and bottom reachability are part of UI adaptation too.",
|
|
18034
|
-
"ia.uiAdaptation.tip2": "Do not hardcode the capsule-button position with fixed pixels; base layout on platform metrics and safe-area data.",
|
|
18035
|
-
"ia.wasmSplit.summary": "Split the Unity Wasm bundle into on-demand chunks to shrink the initial payload and improve cold start. Unity engines only.",
|
|
18036
|
-
scene_ad: "For Your feed ads",
|
|
18037
|
-
scene_center: "Sidebar",
|
|
18038
|
-
scene_fyf_promotion_direct_feed_play: "For You feed direct play",
|
|
18039
|
-
scene_scan_qrcode: "Scan QR code",
|
|
18040
|
-
scene_shortcut: "Desktop Shortcut"
|
|
18041
|
-
},
|
|
18042
|
-
"zh-CN": {
|
|
18043
|
-
"capabilityCheck.title": "平台能力检查",
|
|
18044
|
-
"capabilityCheck.description": "仅检测静态调用线索。检测到不代表功能可用,未检测到也不代表未接入;请结合接入要求判断,并在手机上验证实际功能。",
|
|
18045
|
-
"capabilityCheck.detected": "检测到相关调用",
|
|
18046
|
-
"capabilityCheck.not_detected": "未检测到相关调用",
|
|
18047
|
-
"capabilityCheck.not_checked": "无法检查",
|
|
18048
|
-
"capabilityCheck.unity_binary": "此 JavaScript 扫描无法检查 Unity 二进制中的调用",
|
|
18049
|
-
"capabilityCheck.scan_incomplete": "部分文件无法解析或扫描;别名与动态调用也可能无法识别",
|
|
18050
|
-
"capabilityCheck.guide": "接入指引",
|
|
18051
|
-
"capabilityCheck.verify": "重新构建后,到“本地预检”查看包检查结果和能力提示,再在手机上验证实际功能。",
|
|
18052
|
-
"ia.action.goLaunchMode": "打开启动模式",
|
|
18053
|
-
"ia.action.goSubpackageCollect": "打开子包采集",
|
|
18054
|
-
"ia.action.goNetworkDiagnostics": "打开网络诊断",
|
|
18055
|
-
"ia.action.goPrecheck": "打开本地预检",
|
|
18056
|
-
"ia.action.goProjectDetail": "打开项目详情",
|
|
18057
|
-
"ia.action.openCapabilityDoc": "详细引导",
|
|
18058
|
-
"ia.ad.highlight1": "先开通 IAA 并创建广告位,再看代码联调;未上线应用通常连广告位都配不起来。",
|
|
18059
|
-
"ia.ad.highlight2": "激励视频要保证完整播放后准确发奖,插屏要控制频率和打断感。",
|
|
18060
|
-
"ia.ad.prerequisite1": "先完成企业认证、合同签署,并在 Monetization 中启用 In-App Ads;未上线应用通常无法正常创建广告位。",
|
|
18061
|
-
"ia.ad.prerequisite2": "如涉及 US / EU,上线前尽早补齐 Sensitive Data、USDS / TPRM 等合规要求,并准备好 IAA Mock / 真机联调方案。",
|
|
18062
|
-
"ia.ad.step1": "先在平台确认 IAA 已开通且应用已上线,再进入 Ad placements 创建广告位并拿到对应 placement id。",
|
|
18063
|
-
"ia.ad.step2": "在业务中接入广告实例创建、加载、展示和回调处理,分别验证激励视频和插屏的成功、失败、关闭分支。",
|
|
18064
|
-
"ia.ad.step3": "重点回归奖励发放、频控与体验边界:激励视频完整播放后要准确发奖,插屏两次触发间隔需不少于 60 秒。",
|
|
18065
|
-
"ia.ad.summary": "IAA 广告能力覆盖激励视频与插屏广告,核心链路是“开通广告能力 -> 创建广告位 -> 加载/展示广告 -> 处理关闭与发奖回调”,用于变现且不打断核心体验。",
|
|
18066
|
-
"ia.ad.tip1": "广告回调和奖励发放要做幂等处理,避免重复回调、页面切换或重进场景导致重复发奖。",
|
|
18067
|
-
"ia.ad.tip2": "不要在初始化、新手引导或高频操作链路强插广告;若平台侧合规或上线门槛未过,先处理这些阻塞项。",
|
|
18068
|
-
"ia.authorize.highlight1": "核心不是在客户端直接拿资料,而是在 `login` 之后由用户显式授权额外 scope。",
|
|
18069
|
-
"ia.authorize.highlight2": "昵称、头像等资料最终由服务端携带 `access_token` 调 OpenAPI 获取,不是客户端一键返回。",
|
|
18070
|
-
"ia.authorize.prerequisite1": "先在项目详情页补齐 Terms URL 与 Privacy URL,并确认 `login` 主链路已能稳定换取 `open_id/access_token`。",
|
|
18071
|
-
"ia.authorize.prerequisite2": "按业务场景梳理所需 scope;昵称、头像等资料不应假设由客户端直接返回,而要通过授权后的服务端 OpenAPI 获取。",
|
|
18072
|
-
"ia.authorize.step1": "先通过 `tt.login` 获取一次性 `auth_code`,由服务端换取 `open_id` / `access_token`,建立基础身份态。",
|
|
18073
|
-
"ia.authorize.step2": "在真正需要资料或额外权限的场景调用 `tt.authorize`(如 `scope: 'user.info.basic'`),覆盖首次授权、拒绝授权和再次进入三类路径。",
|
|
18074
|
-
"ia.authorize.step3": "用户同意后,由服务端携带 `access_token` 调用 OpenAPI 拉取资料并落到业务链路,确认 scope、资料字段和降级兜底一致。",
|
|
18075
|
-
"ia.authorize.summary": "授权能力用于在 `login` 已拿到基础身份后,显式向用户申请 `user.info.basic` 等额外 scope;授权完成后,再由服务端结合 `access_token` 拉取资料或完成权限校验。",
|
|
18076
|
-
"ia.authorize.tip1": "不要把授权和登录混成一步:`login` 建立基础身份,`authorize` 申请额外 scope,两个失败分支都要单独处理。",
|
|
18077
|
-
"ia.authorize.tip2": "非必需权限不要做成默认拦截;用户拒绝后也应能继续基础流程,并保留明确的二次触发入口。",
|
|
18078
|
-
"ia.directPlay.highlight1": "在 Feed 中通过历史玩过游戏卡片触达用户,主按钮是 “Play now”。",
|
|
18079
|
-
"ia.directPlay.highlight2": "更适合高价值用户召回,可作为投放、增长和 QA 的统一复现入口。",
|
|
18080
|
-
"ia.directPlay.prerequisite1": "阶段一只关注小游戏包自身运行,不涉及 TT Feed 卡面、强插或 “Play now” 承接效果。",
|
|
18081
|
-
"ia.directPlay.prerequisite2": "进入阶段二前,建议先把推荐流直玩 scene 下的包体启动、首屏加载和核心游戏路径跑通。",
|
|
18082
|
-
"ia.directPlay.step1": "在“启动模式”里选择推荐流直玩 scene,保存一个专用启动模式用于游戏包调试。",
|
|
18083
|
-
"ia.directPlay.step2": "回到首页扫码启动,确认小游戏包在该 scene 下能够稳定进入并完成基础业务流程。",
|
|
18084
|
-
"ia.directPlay.step3": "只有当包体本身稳定后,再回到本页使用预览二维码验证直玩卡卡面与承接路径,确认无误后再管理同一张卡的上线状态。",
|
|
18085
|
-
"ia.directPlay.summary": "直玩卡联调建议拆成三个阶段:先调试小游戏包本身,再用预览二维码验证卡面和承接路径,最后管理已验证直玩卡的上线状态。",
|
|
18086
|
-
"ia.directPlay.tip1": "阶段一遇到的问题优先按普通包体调试处理,不要过早归因到 Feed 卡面或投放链路。",
|
|
18087
|
-
"ia.directPlay.tip2": "阶段二若出现问题,建议区分是包体运行异常,还是卡片配置、素材或承接链路异常;阶段三只管理阶段二已验证卡片的上线状态。",
|
|
18088
|
-
"ia.login.highlight1": "先把 `tt.login` 的 `auth_code -> open_id` 主链路跑通:`open_id` 是业务侧的用户主键与会话索引。",
|
|
18089
|
-
"ia.login.highlight2": "默认只拿 `user.info.open_id`;如需昵称/头像等资料或额外 scope,请走 `tt.authorize` 并在服务端完成资料获取与权限校验。",
|
|
18090
|
-
"ia.login.prerequisite1": "先在项目详情页补齐 Terms URL 与 Privacy URL,并确认运行时注入的 `client_key` 与当前调试环境一致(`tt.login` 默认 scope 为 `user.info.open_id`)。",
|
|
18091
|
-
"ia.login.prerequisite2": "业务服务端需提供 `code -> open_id` 的换取接口:使用 `auth_code` 调用 TikTok OpenAPI `https://open.tiktokapis.com/v2/oauth/token/`(`grant_type=authorization_code`),并持久化 `open_id`(及必要的令牌/过期时间)。",
|
|
18092
|
-
"ia.login.requirementScope": "IAP 和跨设备存档、排行榜等需要识别玩家的功能必须接入登录;没有这些需求的广告游戏无需登录。请在手机上验证后端会话及成功、失败流程。",
|
|
18093
|
-
"ia.login.step1": "在业务页调用 `tt.login()`(或业务封装),确认回调稳定返回 `code`(对应 `auth_code`);失败分支记录 `errorCode/errorMsg` 便于联调定位。",
|
|
18094
|
-
"ia.login.step2": "将 `code` 立即传给服务端(短时效、一次性),服务端以 `application/x-www-form-urlencoded` 请求 `https://open.tiktokapis.com/v2/oauth/token/` 换取 `open_id`(如业务需要也会同时返回 `access_token/refresh_token`)。",
|
|
18095
|
-
"ia.login.step3": "用 `open_id` 建立业务会话并落库:补齐用户取消、弱网重试、防重复消费同一 `code`、`invalid_grant/invalid_client` 等异常;如需长期调用受保护资源,按 `grant_type=refresh_token` 刷新并更新存储。",
|
|
18096
|
-
"ia.login.summary": "登录(`tt.login`)用于在客户端获取一次性 `auth_code`(这里透出的字段为 `code`),再由业务服务端换取 `open_id` 并建立会话态。",
|
|
18097
|
-
"ia.login.tip1": "不要在客户端使用或下发 `client_secret`;所有 `auth_code -> token/open_id` 的交换必须在服务端完成。",
|
|
18098
|
-
"ia.login.tip2": "排障优先级建议:Terms/Privacy 缺失(常见 `102102`)→ `client_key/client_secret` 不匹配(`invalid_client`)→ `auth_code` 过期或重复使用(`invalid_grant`)→ 请求头/参数格式错误(`invalid_request`)。",
|
|
18099
|
-
"ia.menu.ad": "广告",
|
|
18100
|
-
"ia.menu.authorize": "授权",
|
|
18101
|
-
"ia.menu.directPlayCard": "直玩卡",
|
|
18102
|
-
"ia.menu.login": "登录",
|
|
18103
|
-
"ia.menu.network": "网络与实时通信",
|
|
18104
|
-
"ia.menu.payment": "支付",
|
|
18105
|
-
"ia.menu.shareMessage": "站内信分享",
|
|
18106
|
-
"ia.menu.shareStory": "分享 Story",
|
|
18107
|
-
"ia.menu.shortcutRevisit": "桌面快捷方式",
|
|
18108
|
-
"ia.menu.sidebarRevisit": "侧边栏回访",
|
|
18109
|
-
"ia.menu.subpackage": "分包与预下载",
|
|
18110
|
-
"ia.menu.uiAdaptation": "UI 适配",
|
|
18111
|
-
"ia.menu.wasmSplit": "Wasm 分包",
|
|
18112
|
-
"ia.monetization.mode.iaa.desc": "先配置广告位,验证广告请求和回调。游戏需要账号或服务端会话时接入 `login`;需要额外用户资料时再接入 `authorize`。同时验证网络异常,以及游戏实际使用的复访路径。",
|
|
18113
|
-
"ia.monetization.mode.iaa.summary": "验证广告位、请求和回调;需要玩家身份时再接入登录。两个回访入口均须接入。",
|
|
18114
|
-
"ia.monetization.mode.iaa.title": "广告",
|
|
18115
|
-
"ia.monetization.mode.iaap.desc": "接入 `login`,分别验证广告和支付,以及同一玩家会话下的异常处理。需要额外用户资料时再接入 `authorize`,并验证两个回访入口。",
|
|
18116
|
-
"ia.monetization.mode.iaap.summary": "广告与支付双链路并行,优先验证共用用户体系下的整体联调稳定性。",
|
|
18117
|
-
"ia.monetization.mode.iaap.title": "混合变现",
|
|
18118
|
-
"ia.monetization.mode.iap.desc": "以内购变现为主,建议先打通 `login`、下单、支付拉起、服务端验单与发货闭环;`authorize` 仅在需要额外用户资料或扩展 scope 时再接入,同时要重点关注弱网、取消支付、重复下单等订单校验场景,并结合复访能力验证付费用户的回流承接。",
|
|
18119
|
-
"ia.monetization.mode.iap.summary": "支付闭环优先,重点验证下单、支付、验单与发货链路的一致性。",
|
|
18120
|
-
"ia.monetization.mode.iap.title": "内购",
|
|
18121
|
-
"ia.network.highlight1": "网络专题重点是弱网、断线与恢复,不是只看理想网络下的单次请求成功。",
|
|
18122
|
-
"ia.network.highlight2": "请求、下载和实时通信应分别设计错误处理和状态恢复策略。",
|
|
18123
|
-
"ia.network.prerequisite1": "先统一梳理项目里的请求、下载与实时通信路径,避免每个页面各自处理 timeout、重试和错误提示。",
|
|
18124
|
-
"ia.network.prerequisite2": "为 HTTP 请求、资源下载和长连接分别设计失败兜底与状态提示,不要把它们混成同一种异常处理。",
|
|
18125
|
-
"ia.network.step1": "先封装统一的请求/下载/Socket 调用入口,把超时、取消、重试和日志能力收拢到一层处理。",
|
|
18126
|
-
"ia.network.step2": "结合 `getNetworkType`、网络变化监听和弱网监听,验证页面能对网络波动做出合理反馈,而不是静默失败。",
|
|
18127
|
-
"ia.network.step3": "在真机上重点回归弱网、断网恢复、下载中断和 Socket 重连场景,确认状态恢复与用户提示是完整的。",
|
|
18128
|
-
"ia.network.summary": "网络与实时通信专题覆盖 `request`、`downloadFile`、`connectSocket` 以及网络状态监听,重点是让弱网、断线和重连场景也保持可用。",
|
|
18129
|
-
"ia.network.tip1": "不要只测理想网络;多数线上问题都发生在请求超时、资源半下载、连接闪断和重复重连上。",
|
|
18130
|
-
"ia.network.tip2": "实时通信场景要单独验证连接关闭、前后台切换和恢复后的重订阅逻辑,不要只看首次连接成功。",
|
|
18131
|
-
"ia.overview.section.foundation.desc": "按游戏需要完成界面适配、网络配置、资源加载和分包。",
|
|
18132
|
-
"ia.overview.section.foundation.title": "基础能力",
|
|
18133
|
-
"ia.overview.section.growth.desc": "两个回访入口均须接入;入口不可用时正常降级,发布后验证真实返回路径。回访奖励按需提供。",
|
|
18134
|
-
"ia.overview.section.growth.title": "增长与复访",
|
|
18135
|
-
"ia.overview.section.identity.desc": "IAP 或需要玩家身份的功能接入登录;需要额外资料或权限 scope 时再申请授权。",
|
|
18136
|
-
"ia.overview.section.identity.title": "登录与授权",
|
|
18137
|
-
"ia.overview.section.monetization.desc": "收入链路主要分为支付和广告,两者都需要先打通平台开通、业务闭环和真机回归。",
|
|
18138
|
-
"ia.overview.section.monetization.title": "商业化变现",
|
|
18139
|
-
"ia.overview.section.share.desc": "让玩家分享游戏,并在返回时进入正确的游戏场景。",
|
|
18140
|
-
"ia.overview.section.share.title": "分享与裂变",
|
|
18141
|
-
"ia.payment.highlight1": "支付闭环重点是“下单、拉起支付、验单、发货”,不是只把支付面板调起来。",
|
|
18142
|
-
"ia.payment.highlight2": "建议先用 IAP Mock 提速,再用真机验证真实 Beans 支付与服务端结果一致性。",
|
|
18143
|
-
"ia.payment.prerequisite1": "先完成企业认证、合同签署,并在 Monetization 中启用 In-App Purchases;收款主体需与企业认证主体一致。",
|
|
18144
|
-
"ia.payment.prerequisite2": "提前准备商品配置、测试账号,以及服务端下单、订单落库和验单能力;本地联调可先打开 IAP Mock 覆盖主分支。",
|
|
18145
|
-
"ia.payment.step1": "先在平台完成 IAP 开通、商品配置和收款信息填写,再在服务端打通创建订单、订单持久化和支付结果校验。",
|
|
18146
|
-
"ia.payment.step2": "客户端接入支付唤起与回调处理,先用 IAP Mock 验证成功、失败、取消、重复点击等基础分支。",
|
|
18147
|
-
"ia.payment.step3": "最后切到真机预览或真机调试,验证真实支付、服务端验单、发货/到账以及异常重试链路是否闭环。",
|
|
18148
|
-
"ia.payment.summary": "IAP 支付用于售卖虚拟道具或增值服务,核心链路是“服务端创建订单 -> 客户端发起支付 -> 服务端验单/发货”,当前仅支持 TikTok Beans。",
|
|
18149
|
-
"ia.payment.tip1": "不要只看客户端支付成功回调;最终发货或到账应以后端验单结果或权威订单状态为准。",
|
|
18150
|
-
"ia.payment.tip2": "Mock 适合提效,但提审前必须做真机回归,并覆盖弱网、重复下单、取消支付和超时回调。",
|
|
18151
|
-
"ia.shareMessage.highlight1": "`shareAppMessage` 的卡片标题、描述和封面来自开发者平台的游戏基本信息,不是业务侧在分享时动态自定义。",
|
|
18152
|
-
"ia.shareMessage.highlight2": "业务侧真正要设计的是 `query` 参数,让主动分享、任务分享和活动传播都能落到正确的游戏内场景。",
|
|
18153
|
-
"ia.shareMessage.prerequisite1": "先确认客户端版本和能力前置,按文档建议通过 `TTMinis.game.canIUse('shareAppMessage')` 判断是否可用,不要默认所有端上都支持。",
|
|
18154
|
-
"ia.shareMessage.prerequisite2": "先在开发者平台补齐并确认游戏基本信息,因为站内信卡片展示的标题、描述和封面取自平台配置;业务侧再重点设计 `query` 参数和落地页承接规则。",
|
|
18155
|
-
"ia.shareMessage.step1": "在适合拉新、召回或活动传播的页面接入 `TTMinis.game.shareAppMessage`,并重点确认不同入口下传入的 `query` 能准确表达当前业务场景。",
|
|
18156
|
-
"ia.shareMessage.step2": "重点验证站内信分享的成功、取消、失败和重复点击分支,确认分享动作本身、回调和用户反馈都稳定。",
|
|
18157
|
-
"ia.shareMessage.step3": "在真机检查站内信卡片的展示效果与回流路径,确认用户打开后能进入正确页面,且 query 对应的业务状态恢复正常。",
|
|
18158
|
-
"ia.shareMessage.summary": "`shareAppMessage` 对应 TikTok 站内信分享,其中卡片标题、描述和封面来自开发者平台的游戏基本信息,开发者真正需要设计的是 `query` 参数如何承接具体分享场景。",
|
|
18159
|
-
"ia.shareMessage.tip1": "这张卡更接近“站内信卡片分享”能力,但卡片标题、描述和封面并不是业务侧实时自定义的,真正可控的是 `query` 和分享后的承接逻辑。",
|
|
18160
|
-
"ia.shareMessage.tip2": "如果分享入口很多,建议统一封装 `query` 生成和解析逻辑;平台侧游戏基本信息则应单独在开发者平台维护,不要误以为能在分享时动态覆盖。",
|
|
18161
|
-
"ia.shareStory.highlight1": "`shareToStory` 更偏视觉传播,但业务侧真正需要设计的仍是 `query`,让分享后能回到正确的游戏内场景。",
|
|
18162
|
-
"ia.shareStory.highlight2": "Story 分享建议单独做真机回归,同时检查素材展示效果和 `query` 驱动的回流路径是否稳定。",
|
|
18163
|
-
"ia.shareStory.prerequisite1": "先梳理哪些活动、玩法或结果页适合 Story 分享,避免把不适合视觉传播的场景也强行套用 Story 入口。",
|
|
18164
|
-
"ia.shareStory.prerequisite2": "提前准备符合 Story 场景的素材资源,并同步设计 `query` 参数和落地页承接方案;不要只准备视觉素材而忽略回流后的游戏内逻辑。",
|
|
18165
|
-
"ia.shareStory.step1": "在适合传播的页面接入 `shareToStory`,确认素材选择和传入的 `query` 都能准确表达当前业务场景。",
|
|
18166
|
-
"ia.shareStory.step2": "验证 Story 分享触发、取消、失败与不同素材组合分支,确认视觉展示和交互反馈都符合预期。",
|
|
18167
|
-
"ia.shareStory.step3": "结合真机检查 Story 分享后的回流路径,确认用户回到小游戏时目标页面、活动状态和参数恢复正常。",
|
|
18168
|
-
"ia.shareStory.summary": "`shareToStory` 聚焦 Story 分享,其中展示效果更依赖 Story 素材本身,而业务侧真正要设计的是 `query` 参数和分享后的回流承接逻辑。",
|
|
18169
|
-
"ia.shareStory.tip1": "Story 分享不是普通消息分享的简单复用,素材表达是一部分,但业务侧仍要把 `query` 和回流承接链路单独设计清楚。",
|
|
18170
|
-
"ia.shareStory.tip2": "如果 Story 场景依赖强视觉素材,提审前建议同时回归素材展示效果和 `query` 对应的页面恢复是否稳定。",
|
|
18171
|
-
"ia.shortcut.highlight1": "验证添加快捷方式、从桌面返回和检查奖励资格的完整过程。",
|
|
18172
|
-
"ia.shortcut.highlight2": "先检查入口 scene 和 `canReceiveReward`,再验证游戏内的发奖逻辑。",
|
|
18173
|
-
"ia.shortcut.prerequisite1": "兼容性:先用 `TTMinis.game.canIUse('addShortcut')` 做能力探测;推荐在 TikTok 41.0.0+ 版本验证(iOS 需 41.40+)。",
|
|
18174
|
-
"ia.shortcut.prerequisite2": "奖励校验:真实用户链路里,`TTMinis.game.getShortcutMissionReward()` 的 `canReceiveReward` 只有在“从桌面图标进入”时才可能为 true;而在 `scene_shortcut` 启动模式里,会话本身就在模拟该入口。",
|
|
18175
|
-
"ia.shortcut.step1": "在业务入口准备“添加到桌面”触发点:先判断 `canIUse('addShortcut')`,再调用 `TTMinis.game.addShortcut()`,并记录 fail 分支的 `errorCode/errorMsg`。",
|
|
18176
|
-
"ia.shortcut.step2": "用 `ttmg dev` 和启动模式 `scene_shortcut` 模拟入口处理。模拟结果不证明真实回访;桌面快捷方式打开已发布版本,不是本地构建或平台 Preview。",
|
|
18177
|
-
"ia.shortcut.step3": "发布后离开游戏,再从真实桌面快捷方式打开,核对版本和玩法。提供奖励时,`getShortcutMissionReward` 只作客户端线索;服务器独立验证资格后才能发奖。",
|
|
18178
|
-
"ia.shortcut.summary": "引导玩家添加桌面快捷方式并从该入口返回。入口不可用时保持可玩;回访奖励按需提供。",
|
|
18179
|
-
"ia.shortcut.tip1": "`canReceiveReward` 和模拟入口结果不能证明真实回访,也不能代替服务器验证奖励资格。",
|
|
18180
|
-
"ia.shortcut.tip2": "没有可信的独立验证方法时,不发放回访奖励。提供奖励时,还须防止重复领取。",
|
|
18181
|
-
"ia.sidebar.highlight1": "一起验证侧边栏入口、任务状态和奖励领取条件。",
|
|
18182
|
-
"ia.sidebar.highlight2": "选择合适的游戏内入口,并在真机验证返回游戏和领取奖励的流程。",
|
|
18183
|
-
"ia.sidebar.prerequisite1": "确认账号地区在能力开放范围内,并在业务代码里先做 `canIUse` 探测。",
|
|
18184
|
-
"ia.sidebar.prerequisite2": "在启动模式中把进入场景切到侧边栏复访入口,避免继续沿用普通扫码场景。",
|
|
18185
|
-
"ia.sidebar.step1": "在游戏内提供引导入口,检查能力支持后调用 `TTMinis.game.startEntranceMission`;能力不可用、玩家取消或调用失败时允许继续游玩。",
|
|
18186
|
-
"ia.sidebar.step2": "用 `ttmg dev` 和启动模式 `scene_center` 模拟侧边栏入口处理;该结果只验证模拟场景,不证明真实侧边栏回访。",
|
|
18187
|
-
"ia.sidebar.step3": "发布后从真实侧边栏返回,核对实际打开的版本和玩法。提供奖励时,`getEntranceMissionReward` 只作客户端线索;服务器独立验证资格后才能发奖。",
|
|
18188
|
-
"ia.sidebar.summary": "提供侧边栏回访引导并验证真实返回路径。入口不可用时保持可玩;回访奖励按需提供。",
|
|
18189
|
-
"ia.sidebar.tip1": "这类能力强依赖入口场景与地区条件,不能只用默认扫码路径描述或验证。",
|
|
18190
|
-
"ia.sidebar.tip2": "失败时检查 scene、账号与地区可用范围、客户端支持。没有可信的独立验证方法时不发放回访奖励;提供奖励时须防止重复领取。",
|
|
18191
|
-
"ia.subpackage.highlight1": "分包的核心不是拆得多,而是主包边界、预下载时机和失败兜底是否合理。",
|
|
18192
|
-
"ia.subpackage.highlight2": "要同时回归首屏速度、后续场景切换和弱网下的加载体验。",
|
|
18193
|
-
"ia.subpackage.prerequisite1": "先梳理首屏必需资源与后续场景资源,明确哪些内容应该留在主包,哪些适合拆到分包。",
|
|
18194
|
-
"ia.subpackage.prerequisite2": "为分包加载失败、弱网重试和加载中反馈准备统一兜底,避免把加载逻辑散落在业务页面里。",
|
|
18195
|
-
"ia.subpackage.step1": "在 `game.json` 的 `subpackages` 中声明分包名称和根目录,确认分包根目录包含 `game.js` 入口。首屏必需资源保留在主包。",
|
|
18196
|
-
"ia.subpackage.step2": "使用 `preDownloadSubpackage` 提前下载;需要加载并执行分包入口时使用 `loadSubpackage`。进入场景前,等待所需资源和初始化完成。",
|
|
18197
|
-
"ia.subpackage.step3": "在真机与弱网场景回归首屏进入、后续跳转和分包失败重试,确认用户不会卡死在资源加载链路里。",
|
|
18198
|
-
"ia.subpackage.summary": "分包与预下载专题关注首包体积、分包边界与资源加载时机,核心目标是在不拖慢首屏的前提下,让后续内容更平滑地进入。",
|
|
18199
|
-
"ia.subpackage.tip1": "预下载不等于立即可用;仍然要验证真正进入业务场景时资源是否已经准备完成。",
|
|
18200
|
-
"ia.subpackage.tip2": "不要为了追求首包小而过度拆包;分包数量、加载时机和失败兜底比机械地“拆得越多越好”更重要。",
|
|
18201
|
-
"ia.uiAdaptation.highlight1": "重点不是单页修样式,而是把安全区、胶囊按钮和窗口尺寸沉淀成统一布局基线。",
|
|
18202
|
-
"ia.uiAdaptation.highlight2": "要用真机覆盖多尺寸和异形屏,确认标题、悬浮按钮、底部操作区都不被遮挡。",
|
|
18203
|
-
"ia.uiAdaptation.prerequisite1": "先梳理项目里与顶栏、浮层、固定按钮、全屏背景相关的核心页面,避免只在单一页面补样式。",
|
|
18204
|
-
"ia.uiAdaptation.prerequisite2": "优先准备真机或多尺寸预览环境,特别覆盖不同长宽比、顶部安全区和底部手势区域差异。",
|
|
18205
|
-
"ia.uiAdaptation.step1": "先统一读取设备窗口尺寸、安全区和胶囊按钮位置相关信息,沉淀成布局基线,而不是在页面里分散硬编码。",
|
|
18206
|
-
"ia.uiAdaptation.step2": "对顶部标题区、右上角操作按钮、底部固定操作区和弹窗内容做适配,确认不会与胶囊按钮或系统安全区重叠。",
|
|
18207
|
-
"ia.uiAdaptation.step3": "在多机型回归关键页面,重点检查横竖比例变化、滚动容器、全屏背景和点击热区是否仍然自然可用。",
|
|
18208
|
-
"ia.uiAdaptation.summary": "UI 适配专题聚焦屏幕尺寸、胶囊按钮与安全区适配,核心目标是在不同设备上保证关键 UI 不被遮挡、裁切或错位。",
|
|
18209
|
-
"ia.uiAdaptation.tip1": "不要只看视觉对齐;按钮点击区域、弹窗可关闭区域和底部可达性同样属于 UI 适配问题。",
|
|
18210
|
-
"ia.uiAdaptation.tip2": "避免把胶囊按钮位置写死成固定像素,优先基于平台返回信息和安全区做动态布局。",
|
|
18211
|
-
"ia.wasmSplit.summary": "把 Unity Wasm 拆分为按需加载的子包,缩小首包体积、提升冷启表现;仅对 Unity 引擎可用。",
|
|
18212
|
-
scene_ad: "推荐页广告",
|
|
18213
|
-
scene_center: "复访奖励 - 侧边栏",
|
|
18214
|
-
scene_fyf_promotion_direct_feed_play: "推荐流直玩",
|
|
18215
|
-
scene_scan_qrcode: "扫码打开",
|
|
18216
|
-
scene_shortcut: "桌面快捷方式"
|
|
18217
|
-
},
|
|
18218
|
-
"ja-JP": {
|
|
18219
|
-
"capabilityCheck.title": "プラットフォーム機能チェック",
|
|
18220
|
-
"capabilityCheck.description": "静的な呼び出しのみを検出します。検出されても動作確認済みではなく、未検出でも未実装とは限りません。接続要件を確認し、実機で機能を検証してください。",
|
|
18221
|
-
"capabilityCheck.detected": "関連する呼び出しを検出",
|
|
18222
|
-
"capabilityCheck.not_detected": "関連する呼び出しは未検出",
|
|
18223
|
-
"capabilityCheck.not_checked": "チェック不可",
|
|
18224
|
-
"capabilityCheck.unity_binary": "この JavaScript スキャンでは Unity バイナリ内の呼び出しを確認できません",
|
|
18225
|
-
"capabilityCheck.scan_incomplete": "一部のファイルを解析またはスキャンできませんでした。別名や動的な呼び出しも検出できない場合があります",
|
|
18226
|
-
"capabilityCheck.guide": "接続ガイド",
|
|
18227
|
-
"capabilityCheck.verify": "再ビルド後、「ローカル事前チェック」でパッケージの結果と機能の案内を確認し、実機で動作を検証してください。",
|
|
18228
|
-
"ia.action.goLaunchMode": "起動モードを開く",
|
|
18229
|
-
"ia.action.goSubpackageCollect": "サブパッケージ収集を開く",
|
|
18230
|
-
"ia.action.goNetworkDiagnostics": "ネットワーク診断を開く",
|
|
18231
|
-
"ia.action.goPrecheck": "ローカル事前チェックを開く",
|
|
18232
|
-
"ia.action.goProjectDetail": "プロジェクトの詳細を開く",
|
|
18233
|
-
"ia.action.openCapabilityDoc": "詳細ガイド",
|
|
18234
|
-
"ia.ad.highlight1": "IAA を有効にして、最初にプレースメントを作成してから、コード パスをデバッグします。リリースされていないアプリは、配置のセットアップを完了できないことがよくあります。",
|
|
18235
|
-
"ia.ad.highlight2": "リワード付きビデオには正確な再生後のリワードが必要ですが、インタースティシャルには厳密なペースと中断の少ないことが必要です。",
|
|
18236
|
-
"ia.ad.prerequisite1": "まずビジネスの検証と契約の署名を完了してから、収益化でアプリ内広告を有効にします。通常、リリースされていないアプリは、使用可能な広告プレースメントの作成がブロックされます。",
|
|
18237
|
-
"ia.ad.prerequisite2": "米国 / EU での発売に向けて、機密データ、USDS / TPRM、および関連するコンプライアンス作業を早期に開始し、IAA モックと実デバイス検証パスの両方を準備します。",
|
|
18238
|
-
"ia.ad.step1": "IAA が有効であり、アプリがすでにリリースされていることを確認し、[広告プレースメント] に移動して必要なプレースメント ID を作成します。",
|
|
18239
|
-
"ia.ad.step2": "ビジネス コードで、広告インスタンスの作成、読み込み、表示、コールバック処理を統合し、リワードビデオとインタースティシャルの成功、失敗を個別に検証し、ブランチを閉じます。",
|
|
18240
|
-
"ia.ad.step3": "最終回帰は報酬の精度、頻度制御、エクスペリエンスの境界に焦点を当てます。報酬付きビデオは完全に再生された後にのみ報酬を付与する必要があり、インタースティシャルはトリガー間に少なくとも 60 秒のギャップが必要です。",
|
|
18241
|
-
"ia.ad.summary": "IAA 広告はリワードビデオとインタースティシャルフォーマットをカバーしており、コアチェーンはイネーブルメント、広告プレースメントの作成、広告の読み込み/表示、およびクローズ/リワードコールバック処理であり、コアエクスペリエンスを損なうことはありません。",
|
|
18242
|
-
"ia.ad.tip1": "繰り返しのコールバック、ページ切り替え、または再エントリによって報酬が重複しないように、報酬配信を冪等にします。",
|
|
18243
|
-
"ia.ad.tip2": "初期化、チュートリアル、またはその他の高頻度パスに広告を強制的に挿入しないでください。プラットフォームのコンプライアンスまたはリリース ゲートがまだブロックされている場合は、まずそれを修正してください。",
|
|
18244
|
-
"ia.authorize.highlight1": "重要なのは、クライアント側のプロファイルへの直接アクセスではなく、`login` 後の明示的なスコープ外の同意です。",
|
|
18245
|
-
"ia.authorize.highlight2": "ニックネーム、アバター、その他のプロフィール データは、最終的に `access_token` を使用してバックエンドによってフェッチされる必要があり、1 回のクライアント呼び出しで返されることはありません。",
|
|
18246
|
-
"ia.authorize.prerequisite1": "まずプロジェクトの詳細に条件 URL とプライバシー URL を入力し、`login` フローが既に `open_id/access_token` と確実に交換できることを確認してください。",
|
|
18247
|
-
"ia.authorize.prerequisite2": "実際のビジネス ニーズに基づいてスコープを定義します。ニックネームやアバターなどのプロフィール フィールドがクライアントから直接取得されると想定しないでください。これらは、同意後のバックエンド OpenAPI 呼び出しから取得される必要があります。",
|
|
18248
|
-
"ia.authorize.step1": "`tt.login` を使用してワンタイム `auth_code` を取得し、バックエンドでそれを `open_id` / `access_token` と交換して、基本アイデンティティ状態の準備が整います。",
|
|
18249
|
-
"ia.authorize.step2": "追加のプロファイル データまたは権限が本当に必要なフロー (`scope: 'user.info.basic'` など) でのみ `tt.authorize` を呼び出し、最初の同意、拒否、および再エントリのブランチをカバーします。",
|
|
18250
|
-
"ia.authorize.step3": "ユーザーが同意した後、バックエンドで `access_token` を使用して OpenAPI を呼び出し、返されたスコープ、プロファイル フィールド、およびフォールバック動作がすべてビジネス パスと一致することを確認します。",
|
|
18251
|
-
"ia.authorize.summary": "承認では、`login` が基本 ID をすでに確立した後、`user.info.basic` などの追加のスコープをユーザーに要求し、バックエンドが `access_token` を使用してプロファイル データを取得したり、権限チェックを完了したりできるようにします。",
|
|
18252
|
-
"ia.authorize.tip1": "認証をログインに統合しないでください。 `login` は ID を確立しますが、`authorize` は追加のスコープを要求するため、それらの障害処理は分離されたままにする必要があります。",
|
|
18253
|
-
"ia.authorize.tip2": "必須ではないアクセス許可のデフォルト フローをブロックしないでください。ユーザーが同意を拒否した場合でも、基本フローは引き続き機能し、明確な再トリガー エントリが存在する必要があります。",
|
|
18254
|
-
"ia.directPlay.highlight1": "以前にプレイしたゲーム カードがフィード内のユーザーに届き、メイン CTA は `Play now` です。",
|
|
18255
|
-
"ia.directPlay.highlight2": "これは、価値の高いユーザーをリコールする際の、成長、配信、QA のための共有再生産パスとしてうまく機能します。",
|
|
18256
|
-
"ia.directPlay.prerequisite1": "ステージ 1 では、ミニゲーム パッケージのランタイムのみに焦点を当てます。ここでは、TT フィードのプレゼンテーション、強制挿入、および `Play now` ハンドオフは対象外です。",
|
|
18257
|
-
"ia.directPlay.prerequisite2": "ステージ 2 に進む前に、パッケージの起動、最初の画面の読み込み、およびコアのゲーム内パスがダイレクト プレイ シーンですでに安定していることを確認してください。",
|
|
18258
|
-
"ia.directPlay.step1": "起動モードを開き、ダイレクトプレイ シーンを選択し、パッケージ デバッグ用の専用モードを保存します。",
|
|
18259
|
-
"ia.directPlay.step2": "ホームに戻り、スキャンして起動します。パッケージが確実に入力できることを確認し、そのシーンで基本的なゲーム内フローを完了します。",
|
|
18260
|
-
"ia.directPlay.step3": "パッケージ自体が安定した後でのみ、ここに戻ってダイレクト プレイ カードのプレゼンテーションとプレビュー QR コードでのハンドオフを検証し、同じカードのライブ ステータスを管理する必要があります。",
|
|
18261
|
-
"ia.directPlay.summary": "ダイレクトプレイ デバッグは 3 つの段階に分割するのが最適です。最初にミニ ゲーム パッケージ自体を検証し、次にプレビュー QR コードを使用してカードのプレゼンテーションとハンドオフ パスを検証し、最後に検証されたカードのライブ ステータスを管理します。",
|
|
18262
|
-
"ia.directPlay.tip1": "ステージ 1 が失敗した場合は、フィードのプレゼンテーションや配信ロジックが早すぎたことが原因であると考えるのではなく、最初に通常のパッケージ/ランタイムの問題と同様にデバッグします。",
|
|
18263
|
-
"ia.directPlay.tip2": "ステージ 2 が失敗した場合、パッケージのランタイムの問題をカード構成、資産、またはハンドオフ パスの問題から分離します。ステージ 3 は、ステージ 2 で検証済みのカードのライブ ステータスのみを管理します。",
|
|
18264
|
-
"ia.login.highlight1": "コア出力は `auth_code` で、バックエンドはこれを `open_id` / セッション状態と交換します。",
|
|
18265
|
-
"ia.login.highlight2": "`login` と `authorize` は異なるパスです。`login` は ID を確立しますが、`authorize` は追加のスコープを要求します。",
|
|
18266
|
-
"ia.login.prerequisite1": "アクティブな `client_key` が端末のデバッグ構成と一致し、実行時に `tt.login` 呼び出しパスに正しく挿入されていることを確認してください。",
|
|
18267
|
-
"ia.login.prerequisite2": "バックエンドは、明確な再試行、エラーコード、およびセッション有効期限の処理を備えた、`auth_code` -> `open_id` / セッションのコード交換 API をすでに公開している必要があります。",
|
|
18268
|
-
"ia.login.requirementScope": "IAP や端末間セーブ、ランキングなどプレイヤーを識別する機能にはログインが必須です。それらを使わない広告ゲームでは不要です。実機でバックエンドのセッションと成功・失敗の処理を検証してください。",
|
|
18269
|
-
"ia.login.step1": "ビジネス ページから `tt.login` (またはビジネス ラッパー) を呼び出し、クライアントが安定した `auth_code` を返せることを確認します。",
|
|
18270
|
-
"ia.login.step2": "`auth_code` をバックエンドに送信し、`open_id` / セッション交換、セッション永続性、およびダウンストリーム要求伝播がすべて正しく機能することを確認します。",
|
|
18271
|
-
"ia.login.step3": "ユーザーのキャンセル、ネットワーク障害、期限切れの `auth_code`、バックエンド交換失敗ブランチをカバーし、UI フォールバックと再試行戦略が使用可能であることを確認します。",
|
|
18272
|
-
"ia.login.summary": "ログインはミニゲームの ID 機能です。クライアントで `auth_code` を取得すると、バックエンドはそのコードを `open_id` / セッション状態と交換します。",
|
|
18273
|
-
"ia.login.tip1": "まずメインの `auth_code -> open_id / session` パスを安定させてから、ログイン状態に依存するプロファイル、分析、またはその他のビジネス フローに拡張します。",
|
|
18274
|
-
"ia.login.tip2": "現在の SDK では、`login` はデフォルトで `user.info.open_id` になります。さらに多くのユーザー データまたは追加のスコープが必要な場合は、`authorize` で個別にリクエストしてください。",
|
|
18275
|
-
"ia.menu.ad": "広告",
|
|
18276
|
-
"ia.menu.authorize": "ユーザー認可",
|
|
18277
|
-
"ia.menu.directPlayCard": "ダイレクトプレイカード",
|
|
18278
|
-
"ia.menu.login": "ログイン",
|
|
18279
|
-
"ia.menu.network": "ネットワークとリアルタイム",
|
|
18280
|
-
"ia.menu.payment": "お支払い",
|
|
18281
|
-
"ia.menu.shareMessage": "アプリ内メッセージの共有",
|
|
18282
|
-
"ia.menu.shareStory": "ストーリーにシェア",
|
|
18283
|
-
"ia.menu.shortcutRevisit": "ショートカット再訪",
|
|
18284
|
-
"ia.menu.sidebarRevisit": "サイドバーの再訪",
|
|
18285
|
-
"ia.menu.subpackage": "サブパッケージとプリロード",
|
|
18286
|
-
"ia.menu.uiAdaptation": "UIの適応",
|
|
18287
|
-
"ia.menu.wasmSplit": "Wasm コード分割",
|
|
18288
|
-
"ia.monetization.mode.iaa.desc": "広告枠を設定し、広告リクエストとコールバックを確認します。アカウントやサーバーセッションが必要な場合は `login` を実装し、追加のプロフィール情報が必要な場合は `authorize` を使用します。ネットワーク障害と、ゲームで使用する再訪経路も確認します。",
|
|
18289
|
-
"ia.monetization.mode.iaa.summary": "広告枠、リクエスト、コールバックを検証します。ユーザー識別が必要な場合のみログインを追加します。両方の再訪問入口は必須です。",
|
|
18290
|
-
"ia.monetization.mode.iaa.title": "広告",
|
|
18291
|
-
"ia.monetization.mode.iaap.desc": "`login` を実装し、広告と決済を個別に検証します。同じプレイヤーのセッションでエラー処理も確認してください。追加のユーザー情報が必要な場合のみ `authorize` を実装し、両方の再訪経路も検証します。",
|
|
18292
|
-
"ia.monetization.mode.iaap.summary": "広告と支払いは同時に実行されるため、共有ユーザー システム上で全体的な安定性が検証されます。",
|
|
18293
|
-
"ia.monetization.mode.iaap.title": "ハイブリッド収益化",
|
|
18294
|
-
"ia.monetization.mode.iap.desc": "購入主導のゲームの場合、`login` から開始し、注文の作成、支払いの呼び出し、バックエンドの検証、およびフルフィルメントを 1 つの閉じたループとして実行します。追加のプロファイル データまたは追加のスコープが必要な場合にのみ `authorize` を追加し、脆弱なネットワーク、支払いキャンセル、注文の重複のケースに特別な注意を払い、再訪機能を使用して支払いユーザーのリターン パスを検証します。",
|
|
18295
|
-
"ia.monetization.mode.iap.summary": "支払いループが最初に行われ、注文の作成、支払い、検証、履行がエンドツーエンドで一貫して保たれます。",
|
|
18296
|
-
"ia.monetization.mode.iap.title": "アプリ内購入",
|
|
18297
|
-
"ia.network.highlight1": "このトピックは、良好な接続での単一リクエストの成功だけではなく、弱いネットワークと回復動作についても扱います。",
|
|
18298
|
-
"ia.network.highlight2": "リクエスト、ダウンロード、およびリアルタイム パスには、それぞれ明示的な回復ルールが必要です。",
|
|
18299
|
-
"ia.network.prerequisite1": "デバッグ前にリクエスト、ダウンロード、およびリアルタイムのパスを統合することで、タイムアウト、再試行、およびエラーの可視性が各ページで異なる実装にならないようにします。",
|
|
18300
|
-
"ia.network.prerequisite2": "HTTP、ダウンロード、長時間接続を同じ障害タイプとして扱うのではなく、異なるフォールバックとユーザー フィードバックを用意します。",
|
|
18301
|
-
"ia.network.step1": "リクエスト、ダウンロード、およびソケット呼び出しを共有レイヤーの背後でラップするため、タイムアウト、キャンセル、再試行、およびログが一貫して処理されます。",
|
|
18302
|
-
"ia.network.step2": "`getNetworkType`、ネットワーク変更リスナー、および弱いネットワーク リスナーを使用して、ページがサイレントに失敗するのではなくネットワーク変更に反応することを検証します。",
|
|
18303
|
-
"ia.network.step3": "デバイス上で、状態の復元が実際に完了するように、弱いネットワーク、再接続、ダウンロードの中断、およびソケットの回復に焦点を当てます。",
|
|
18304
|
-
"ia.network.summary": "ネットワークとリアルタイムでは、使用可能な弱いネットワーク、切断、および回復動作に焦点を当てて、`request`、`downloadFile`、`connectSocket`、およびネットワーク ステータスの観察をカバーします。",
|
|
18305
|
-
"ia.network.tip1": "理想的なネットワークだけをテストしないでください。実際の問題のほとんどは、タイムアウト、ダウンロード途中のアセット、切断された接続、および繰り返しの再接続試行によって発生します。",
|
|
18306
|
-
"ia.network.tip2": "リアルタイム フローは、クローズ、バックグラウンド/フォアグラウンド遷移、および回復後の再サブスクライブ ロジックを明示的にカバーする必要があります。",
|
|
18307
|
-
"ia.overview.section.foundation.desc": "ゲームに必要な画面適応、ネットワーク設定、リソース読み込み、サブパッケージを準備します。",
|
|
18308
|
-
"ia.overview.section.foundation.title": "コア機能",
|
|
18309
|
-
"ia.overview.section.growth.desc": "両方の再訪問入口は必須です。利用不可でもプレイを継続できるようにし、公開後に実際の復帰を検証します。報酬は任意です。",
|
|
18310
|
-
"ia.overview.section.growth.title": "成長と再訪",
|
|
18311
|
-
"ia.overview.section.identity.desc": "IAP やユーザー識別が必要な機能にログインを実装します。追加情報や権限は必要な場合のみ要求します。",
|
|
18312
|
-
"ia.overview.section.identity.title": "ログインとユーザー認可",
|
|
18313
|
-
"ia.overview.section.monetization.desc": "収益は主に支払いと広告から来ており、どちらもポータルの有効化、ビジネス ループの検証、デバイスの回帰が必要です。",
|
|
18314
|
-
"ia.overview.section.monetization.title": "収益化",
|
|
18315
|
-
"ia.overview.section.share.desc": "プレイヤーがゲームを共有し、正しいゲーム内シーンに戻れるようにします。",
|
|
18316
|
-
"ia.overview.section.share.title": "共有と成長",
|
|
18317
|
-
"ia.payment.highlight1": "実際の支払いループは、支払いパネルを開くだけではなく、注文の作成、支払いの呼び出し、検証、履行です。",
|
|
18318
|
-
"ia.payment.highlight2": "IAP モックを使用して反復処理を高速化し、デバイス上のバックエンド結果に対して実際の Beans の支払いを検証します。",
|
|
18319
|
-
"ia.payment.prerequisite1": "まずビジネスの検証と契約の署名を完了してから、収益化でアプリ内購入を有効にします。支払いエンティティは、検証されたビジネス エンティティと一致する必要があります。",
|
|
18320
|
-
"ia.payment.prerequisite2": "製品構成、テストアカウント、注文の作成、永続化、検証のためのバックエンド機能を準備します。ローカル反復の場合は、最初に IAP モックを有効にしてメイン ブランチをカバーします。",
|
|
18321
|
-
"ia.payment.step1": "ポータルの有効化、製品の設定、支払い情報を完了し、バックエンド注文の作成、注文の永続化、支払い結果の検証を接続します。",
|
|
18322
|
-
"ia.payment.step2": "クライアントの支払い呼び出しとコールバック処理を統合し、最初に IAP モックを使用して、成功、失敗、キャンセル、および繰り返しタップの分岐をカバーします。",
|
|
18323
|
-
"ia.payment.step3": "次に、実デバイスのプレビューまたは実デバイスのデバッグに切り替え、実際の支払い、バックエンド検証、フルフィルメント/クレジット、および完全なループとしての再試行処理を検証します。",
|
|
18324
|
-
"ia.payment.summary": "IAP 収益化は、バックエンド注文の作成、クライアント側の支払い呼び出し、および仮想商品または付加価値サービスのバックエンド検証/履行の完全なチェーンであり、サポートされている唯一の支払い方法として TikTok Bean が使用されます。",
|
|
18325
|
-
"ia.payment.tip1": "クライアントの成功コールバックを最終的な真実として扱わないでください。フルフィルメントまたはクレジットは、バックエンド検証または正式な注文状態に依存する必要があります。",
|
|
18326
|
-
"ia.payment.tip2": "モックは反復速度の点で便利ですが、特に弱いネットワーク、重複した順序、キャンセル、およびタイムアウトの場合には、リリース前に実際のデバイスの回帰が依然として必要です。",
|
|
18327
|
-
"ia.shareMessage.highlight1": "`shareAppMessage` の場合、カードのタイトル、説明、およびカバーは、ビジネス側の動的なカスタマイズからではなく、開発者ポータルのゲームの基本情報から取得されます。",
|
|
18328
|
-
"ia.shareMessage.highlight2": "ビジネス側が本当に設計する必要があるのは `query` です。これにより、プロアクティブな共有、ミッションの共有、およびキャンペーンの共有が正しいゲーム内シナリオに反映されるようになります。",
|
|
18329
|
-
"ia.shareMessage.prerequisite1": "機能がすべてのランタイムに存在すると仮定するのではなく、最初にクライアント バージョンのサポートを確認し、`TTMinis.game.canIUse('shareAppMessage')` で可用性を調べます。",
|
|
18330
|
-
"ia.shareMessage.prerequisite2": "アプリ内メッセージ カードのタイトル、説明、カバーはそのポータル設定から取得されるため、最初にゲームの基本情報が開発者ポータルで正しく設定されていることを確認してください。次に、ビジネス ロジックを `query` と着陸動作に焦点を当てます。",
|
|
18331
|
-
"ia.shareMessage.step1": "獲得、リコール、またはキャンペーン共有に適合するページに `TTMinis.game.shareAppMessage` を統合し、`query` 値が現在のビジネス シナリオを正確に表していることを確認します。",
|
|
18332
|
-
"ia.shareMessage.step2": "成功、キャンセル、失敗、繰り返しタップの分岐に焦点を当て、アプリ内メッセージ共有アクション、コールバック、ユーザーフィードバックがすべて安定した状態を維持できるようにします。",
|
|
18333
|
-
"ia.shareMessage.step3": "デバイス上でメッセージ カードのプレゼンテーションと共有後のリターン パスを確認し、受信者が適切なページに到達し、クエリ主導の状態が正しく復元されるようにします。",
|
|
18334
|
-
"ia.shareMessage.summary": "`shareAppMessage` は TikTok のアプリ内メッセージ共有です。カードのタイトル、説明、カバーは開発者ポータルで設定されたゲームの基本情報から取得されますが、ビジネス側の設計の焦点は、`query` が正確なゲーム内共有シナリオをどのように実行するかです。",
|
|
18335
|
-
"ia.shareMessage.tip1": "これは、アプリ内メッセージ カードの共有機能として説明した方が適切ですが、カードのタイトル、説明、および表紙は、共有時にビジネス コードによって動的にカスタマイズされません。実際にコントロールするのは、`query` と着陸の流れです。",
|
|
18336
|
-
"ia.shareMessage.tip2": "多くの共有エントリが存在する場合、`query` の生成と解析を集中化します。共有時間オーバーライドがサポートされていると想定するのではなく、開発者ポータルでゲームの基本情報を個別に管理します。",
|
|
18337
|
-
"ia.shareStory.highlight1": "`shareToStory` はより視覚的ですが、ビジネス側が慎重に設計する必要があるのは `query` です。これにより、シェアは正しいゲーム内シナリオに戻ることができます。",
|
|
18338
|
-
"ia.shareStory.highlight2": "Story の専用デバイス回帰を実行し、アセットのプレゼンテーション品質と `query` 主導のリターンパスの安定性の両方をチェックします。",
|
|
18339
|
-
"ia.shareStory.prerequisite1": "ストーリーエントリをすべてのフローに強制するのではなく、どのキャンペーン、ゲームプレイ、結果ページがストーリー共有に実際に適しているかを特定します。",
|
|
18340
|
-
"ia.shareStory.prerequisite2": "まずストーリーに適したアセットを準備し、次に `query` 値とランディング動作を一緒に設計します。ゲーム内の返品ロジックを曖昧にしたまま、ビジュアル素材のみを最適化しないでください。",
|
|
18341
|
-
"ia.shareStory.step1": "視覚的な伝播に適したページに `shareToStory` を統合し、選択した資産と `query` 値の両方がアクティブなビジネス シナリオを正しく表していることを確認します。",
|
|
18342
|
-
"ia.shareStory.step2": "ストーリー共有プレゼンテーションとユーザー フィードバックの両方が期待どおりに動作するように、トリガー、キャンセル、失敗、および複数アセットのブランチをカバーします。",
|
|
18343
|
-
"ia.shareStory.step3": "デバイスで、ストーリー共有後のリターン パスを確認し、ターゲット ページ、キャンペーンの状態、パラメータが正しく復元されていることを確認します。",
|
|
18344
|
-
"ia.shareStory.summary": "`shareToStory` はストーリーの共有に重点を置いています。表示されるプレゼンテーションはストーリー アセット自体に大きく依存しますが、ビジネス側の設計の焦点は依然として `query` 値と共有ランディング後のフローです。",
|
|
18345
|
-
"ia.shareStory.tip1": "ストーリー共有は、メッセージ共有の単純なコピーとして扱われるべきではありません。資産表現は一部ですが、`query` と共有ランディング後のフローは、依然としてビジネス側の慎重な設計が必要です。",
|
|
18346
|
-
"ia.shareStory.tip2": "Story が強力なビジュアル素材に依存している場合は、アセットのプレゼンテーションと、`query` 主導のリターン パスが正しいページ状態を復元するかどうかの両方について、集中的な実デバイス チェックを実行します。",
|
|
18347
|
-
"ia.shortcut.highlight1": "ショートカットの追加、ホーム画面からの復帰、報酬の受け取り条件を確認します。",
|
|
18348
|
-
"ia.shortcut.highlight2": "入口のシーンと `canReceiveReward` を確認し、ゲーム内の報酬付与を検証します。",
|
|
18349
|
-
"ia.shortcut.prerequisite1": "互換性: `TTMinis.game.canIUse('addShortcut')` によるプローブのサポート。 TikTok 41.0.0+ で検証します (iOS には 41.40+ が必要です)。",
|
|
18350
|
-
"ia.shortcut.prerequisite2": "報酬の検証: 実際のユーザー フローでは、セッションがホーム画面のショートカットから起動された場合にのみ、`TTMinis.game.getShortcutMissionReward()` は `canReceiveReward=true` を返します。 `scene_shortcut` 起動モードでは、セッション自体がすでにそのエントリをシミュレートしています。",
|
|
18351
|
-
"ia.shortcut.step1": "UI に明確なエントリ ポイントを追加します。`canIUse('addShortcut')` をチェックしてから、`TTMinis.game.addShortcut()` を呼び出し、デバッグの失敗時に `errorCode/errorMsg` を記録します。",
|
|
18352
|
-
"ia.shortcut.step2": "`ttmg dev` と起動モード `scene_shortcut` で入口処理を模擬します。実際の再訪問の証明にはなりません。ショートカットはローカルビルドやプラットフォーム Preview ではなく公開済みバージョンを開きます。",
|
|
18353
|
-
"ia.shortcut.step3": "公開後にゲームを離れ、実際のショートカットから再度開き、バージョンとプレイを確認します。報酬を提供する場合、`getShortcutMissionReward` は手掛かりとして扱い、サーバーが独立して検証した後にのみ付与します。",
|
|
18354
|
-
"ia.shortcut.summary": "ホーム画面へのショートカット追加と再訪問を案内します。利用不可でもプレイを継続できるようにします。報酬は任意です。",
|
|
18355
|
-
"ia.shortcut.tip1": "`canReceiveReward` や模擬結果は実際の再訪問を証明せず、報酬資格のサーバー検証にも代わりません。",
|
|
18356
|
-
"ia.shortcut.tip2": "信頼できる独立した検証方法がなければ再訪問報酬を付与しないでください。提供時は重複付与も防いでください。",
|
|
18357
|
-
"ia.sidebar.highlight1": "サイドバーの入口、タスク状態、報酬の受け取り条件をまとめて確認します。",
|
|
18358
|
-
"ia.sidebar.highlight2": "ゲーム内の適切な入口を選び、ゲームへの復帰と報酬の受け取りを実機で確認します。",
|
|
18359
|
-
"ia.sidebar.prerequisite1": "アカウントのリージョンがサポートされているロールアウト内にあることを確認し、最初にビジネス コードの `canIUse` で機能のサポートを確認してください。",
|
|
18360
|
-
"ia.sidebar.prerequisite2": "デフォルトの QR パスを維持する代わりに、起動モードで専用のサイドバー再訪シーンを使用します。",
|
|
18361
|
-
"ia.sidebar.step1": "ゲーム内に入口を設け、対応状況を確認して `TTMinis.game.startEntranceMission` を呼び出します。利用不可、キャンセル、失敗でもプレイを継続できるようにします。",
|
|
18362
|
-
"ia.sidebar.step2": "`ttmg dev` と起動モード `scene_center` で入口処理を模擬します。結果が示すのは模擬シーンの処理であり、実際のサイドバー再訪問ではありません。",
|
|
18363
|
-
"ia.sidebar.step3": "公開後に実際のサイドバーから開き、バージョンとプレイを確認します。報酬を提供する場合、`getEntranceMissionReward` は手掛かりとして扱い、サーバーが独立して検証した後にのみ付与します。",
|
|
18364
|
-
"ia.sidebar.summary": "サイドバー再訪問を案内し、実際の復帰経路を確認します。利用不可でもプレイを継続できるようにします。報酬は任意です。",
|
|
18365
|
-
"ia.sidebar.tip1": "この機能はシーンと領域の条件に大きく依存するため、デフォルトの QR パスのみを介して説明または検証しないでください。",
|
|
18366
|
-
"ia.sidebar.tip2": "失敗時はシーン、アカウント・地域での利用可否、クライアント対応を確認します。信頼できる独立検証なしに報酬を付与せず、提供時は重複付与も防いでください。",
|
|
18367
|
-
"ia.subpackage.highlight1": "分割パッケージの品質は、可能な限り分割することではなく、境界定義、プリロードのタイミング、およびフォールバックに依存します。",
|
|
18368
|
-
"ia.subpackage.highlight2": "弱いネットワーク下での最初の画面の速度とその後のシーン遷移の両方を検証します。",
|
|
18369
|
-
"ia.subpackage.prerequisite1": "最初の画面で本当に必要なものと、後のゲームプレイまたはオプションのリソースに属するものを識別します。",
|
|
18370
|
-
"ia.subpackage.prerequisite2": "ビジネス ページ内に分割パッケージ ロジックを分散させるのではなく、一貫した読み込みフォールバック、再試行、読み込み状態の UX を準備します。",
|
|
18371
|
-
"ia.subpackage.step1": "`game.json` の `subpackages` に名前とルートを宣言し、サブパッケージのルートに `game.js` エントリがあることを確認します。初期画面に必要なリソースはメインパッケージに残します。",
|
|
18372
|
-
"ia.subpackage.step2": "事前ダウンロードには `preDownloadSubpackage` を使用します。サブパッケージのエントリを読み込んで実行するには `loadSubpackage` を使用します。シーンに入る前に必要なリソースの読み込みと初期化を完了してください。",
|
|
18373
|
-
"ia.subpackage.step3": "最初の画面の開始時、その後のジャンプ時、および分割パッケージの障害回復時にデバイスと弱いネットワークの回帰を実行して、ユーザーが負荷の途中でスタックしないようにします。",
|
|
18374
|
-
"ia.subpackage.summary": "サブパッケージとプリロードは、最初のパッケージのサイズ、分割境界、リソースの読み込みタイミングに重点を置いているため、最初の画面の速度を損なうことなく、後のコンテンツがスムーズに到着できます。",
|
|
18375
|
-
"ia.subpackage.tip1": "プリロードはすぐに使用できることを意味するものではありません。分割パッケージが本当に必要な場合は、実際のビジネス移行を検証します。",
|
|
18376
|
-
"ia.subpackage.tip2": "より小さなメインパッケージを追求するためだけに過度に分割しないでください。生の分割数よりも、タイミング、フォールバック、依存関係の正確さが重要です。",
|
|
18377
|
-
"ia.uiAdaptation.highlight1": "目標は 1 回限りのページ修正ではなく、セーフ エリア、カプセル ボタン、ウィンドウ メトリクスの共有レイアウト ベースラインです。",
|
|
18378
|
-
"ia.uiAdaptation.highlight2": "タイトル、フローティング ボタン、下部のアクション エリアが妨げられないように、さまざまなサイズの実際のデバイスで検証します。",
|
|
18379
|
-
"ia.uiAdaptation.prerequisite1": "1 ページのみをパッチするのではなく、トップ バー、フローティング アクション、固定下部領域、または全画面ビジュアルに依存する主要なページをリストします。",
|
|
18380
|
-
"ia.uiAdaptation.prerequisite2": "実際のデバイスまたはマルチサイズのプレビュー範囲を、特に異なるアスペクト比、上部の安全領域、および下部のジェスチャ領域にわたって準備します。",
|
|
18381
|
-
"ia.uiAdaptation.step1": "まず、ウィンドウ サイズ、セーフ エリア、およびカプセル ボタンのメトリクスを、各ページで個別にハードコーディングするのではなく、レイアウト ベースラインに集中化します。",
|
|
18382
|
-
"ia.uiAdaptation.step2": "カプセルボタンやシステムセーフエリアと重ならないように、上部のタイトル領域、右上のアクション、下部の固定コントロール、およびモーダルコンテンツを調整します。",
|
|
18383
|
-
"ia.uiAdaptation.step3": "主要なページで実デバイス回帰を実行し、アスペクト比の変更、コンテナのスクロール、全画面の背景、デバイス間のタップ ターゲットを確認します。",
|
|
18384
|
-
"ia.uiAdaptation.summary": "UI の適応は、画面サイズ、カプセル ボタン、安全領域の処理に重点を置いており、主要な UI がデバイス間で表示され、タップ可能で、正しく配置されたままになります。",
|
|
18385
|
-
"ia.uiAdaptation.tip1": "視覚的な位置合わせだけを見てはいけません。タップ領域、モーダルクローズアフォーダンス、下部到達可能性も UI 適応の一部です。",
|
|
18386
|
-
"ia.uiAdaptation.tip2": "カプセルボタンの位置を固定ピクセルでハードコーディングしないでください。プラットフォームのメトリクスと安全領域データに基づく基本レイアウト。",
|
|
18387
|
-
"ia.wasmSplit.summary": "Unity Wasm バンドルをオンデマンドのチャンクに分割して、初期ペイロードを縮小し、コールド スタートを改善します。 Unity エンジンのみ。",
|
|
18388
|
-
scene_ad: "フィード広告用",
|
|
18389
|
-
scene_center: "サイドバー",
|
|
18390
|
-
scene_fyf_promotion_direct_feed_play: "For You フィード ダイレクト プレイ",
|
|
18391
|
-
scene_scan_qrcode: "QR コードをスキャンします",
|
|
18392
|
-
scene_shortcut: "デスクトップショートカット"
|
|
18393
|
-
},
|
|
18394
|
-
"ko-KR": {
|
|
18395
|
-
"capabilityCheck.title": "플랫폼 기능 검사",
|
|
18396
|
-
"capabilityCheck.description": "정적 호출만 탐지합니다. 탐지되어도 실제 동작을 확인한 것은 아니며, 미탐지가 미구현을 뜻하지도 않습니다. 연동 요구 사항을 확인하고 휴대폰에서 기능을 검증하세요.",
|
|
18397
|
-
"capabilityCheck.detected": "관련 호출 탐지됨",
|
|
18398
|
-
"capabilityCheck.not_detected": "관련 호출 탐지되지 않음",
|
|
18399
|
-
"capabilityCheck.not_checked": "검사할 수 없음",
|
|
18400
|
-
"capabilityCheck.unity_binary": "이 JavaScript 검사는 Unity 바이너리 내부 호출을 확인할 수 없습니다",
|
|
18401
|
-
"capabilityCheck.scan_incomplete": "일부 파일을 파싱하거나 검사할 수 없습니다. 별칭이나 동적 호출도 탐지되지 않을 수 있습니다",
|
|
18402
|
-
"capabilityCheck.guide": "연동 가이드",
|
|
18403
|
-
"capabilityCheck.verify": "다시 빌드한 후 로컬 사전 검사에서 패키지 결과와 기능 안내를 확인하고 기기에서 실제 동작을 검증하세요.",
|
|
18404
|
-
"ia.action.goLaunchMode": "오픈 실행 모드",
|
|
18405
|
-
"ia.action.goSubpackageCollect": "서브패키지 수집 열기",
|
|
18406
|
-
"ia.action.goNetworkDiagnostics": "네트워크 진단 열기",
|
|
18407
|
-
"ia.action.goPrecheck": "로컬 사전 검사 열기",
|
|
18408
|
-
"ia.action.goProjectDetail": "프로젝트 세부정보 열기",
|
|
18409
|
-
"ia.action.openCapabilityDoc": "상세안내",
|
|
18410
|
-
"ia.ad.highlight1": "IAA를 활성화하고 먼저 배치를 생성한 다음 코드 경로를 디버깅합니다. 출시되지 않은 앱은 배치 설정조차 완료하지 못하는 경우가 많습니다.",
|
|
18411
|
-
"ia.ad.highlight2": "보상형 비디오에는 정확한 재생 후 보상이 필요한 반면 전면 광고에는 엄격한 속도와 낮은 중단이 필요합니다.",
|
|
18412
|
-
"ia.ad.prerequisite1": "먼저 비즈니스 인증과 계약 체결을 완료한 후 수익화에서 인앱 광고를 활성화하세요. 출시되지 않은 앱은 일반적으로 사용 가능한 광고 게재위치를 생성하지 못하도록 차단됩니다.",
|
|
18413
|
-
"ia.ad.prerequisite2": "미국/EU 출시의 경우 민감한 데이터, USDS/TPRM 및 관련 규정 준수 작업을 조기에 시작하고 IAA Mock 및 실제 장치 검증 경로를 모두 준비하십시오.",
|
|
18414
|
-
"ia.ad.step1": "IAA가 활성화되어 있고 앱이 이미 출시되었는지 확인한 다음 광고 게재위치로 이동하여 필수 게재위치 ID를 생성하세요.",
|
|
18415
|
-
"ia.ad.step2": "비즈니스 코드에서 광고 인스턴스 생성, 로드, 표시 및 콜백 처리를 통합하고 보상형 비디오 및 삽입 광고의 성공, 실패 및 분기를 별도로 확인합니다.",
|
|
18416
|
-
"ia.ad.step3": "보상 정확성, 빈도 제어 및 경험 경계에 대한 최종 회귀에 초점을 맞춥니다. 보상형 비디오는 전체 재생 후에만 보상을 제공해야 하며 전면 광고는 트리거 사이에 최소 60초의 간격이 필요합니다.",
|
|
18417
|
-
"ia.ad.summary": "IAA 광고는 보상형 비디오 및 전면 광고 형식을 다루며, 핵심 체인은 핵심 경험을 손상시키지 않고 활성화, 광고 배치 생성, 광고 로드/표시, 닫기/보상 콜백 처리입니다.",
|
|
18418
|
-
"ia.ad.tip1": "반복적인 콜백, 페이지 전환 또는 재진입으로 인해 중복된 보상이 발생하지 않도록 보상 전달을 멱등적으로 만듭니다.",
|
|
18419
|
-
"ia.ad.tip2": "초기화, 튜토리얼 또는 기타 빈도가 높은 경로에 광고를 강요하지 마세요. 플랫폼 규정 준수 또는 릴리스 게이팅이 여전히 차단되면 먼저 문제를 해결하세요.",
|
|
18420
|
-
"ia.authorize.highlight1": "핵심은 직접적인 클라이언트 측 프로필 액세스가 아니라 `login` 이후 명시적인 범위 외 동의입니다.",
|
|
18421
|
-
"ia.authorize.highlight2": "닉네임, 아바타 및 기타 프로필 데이터는 궁극적으로 한 번의 클라이언트 호출로 반환되지 않고 `access_token`를 사용하여 백엔드에서 가져와야 합니다.",
|
|
18422
|
-
"ia.authorize.prerequisite1": "먼저 프로젝트 세부사항에 용어 URL 및 개인정보 보호 URL을 입력하고 `login` 흐름이 이미 `open_id/access_token`로 안정적으로 교환될 수 있는지 확인하세요.",
|
|
18423
|
-
"ia.authorize.prerequisite2": "실제 비즈니스 요구에 따라 범위를 정의합니다. 닉네임이나 아바타와 같은 프로필 필드가 클라이언트에서 직접 온다고 가정하지 마세요. 동의 후 백엔드 OpenAPI 호출에서 가져와야 합니다.",
|
|
18424
|
-
"ia.authorize.step1": "`tt.login`를 사용하여 일회성 `auth_code`를 가져온 다음 백엔드에서 이를 `open_id` / `access_token`로 교환하여 기본 ID 상태가 준비되도록 합니다.",
|
|
18425
|
-
"ia.authorize.step2": "실제로 추가 프로필 데이터나 권한이 필요한 흐름(예: `scope: 'user.info.basic'`)에서만 `tt.authorize`를 호출하고 첫 번째 동의, 거부 및 재진입 분기를 포함합니다.",
|
|
18426
|
-
"ia.authorize.step3": "사용자가 동의한 후 백엔드가 `access_token`를 사용하여 OpenAPI를 호출하도록 한 다음 반환된 범위, 프로필 필드 및 대체 동작이 모두 비즈니스 경로와 일치하는지 확인합니다.",
|
|
18427
|
-
"ia.authorize.summary": "승인은 `login`가 이미 기본 ID를 설정한 후 사용자에게 `user.info.basic`와 같은 추가 범위를 요청한 다음 백엔드에서 `access_token`를 사용하여 프로필 데이터를 가져오거나 권한 확인을 완료하도록 합니다.",
|
|
18428
|
-
"ia.authorize.tip1": "인증을 로그인으로 축소하지 마세요. `login`는 ID를 설정하고 `authorize`는 추가 범위를 요청하므로 오류 처리는 별도로 유지되어야 합니다.",
|
|
18429
|
-
"ia.authorize.tip2": "필수적이지 않은 권한에 대한 기본 흐름을 차단하지 마십시오. 사용자가 동의를 거부하더라도 기본 흐름은 계속 작동해야 하며 명확한 재트리거 항목이 있어야 합니다.",
|
|
18430
|
-
"ia.directPlay.highlight1": "이전에 플레이한 게임 카드로 피드의 사용자에게 도달하며, 주요 CTA는 `Play now`입니다.",
|
|
18431
|
-
"ia.directPlay.highlight2": "고가치 사용자를 리콜할 때 성장, 전달, QA를 위한 공유 재생 경로로 잘 작동합니다.",
|
|
18432
|
-
"ia.directPlay.prerequisite1": "1단계에서는 미니 게임 패키지 런타임에만 중점을 둡니다. TT 피드 프리젠테이션, 강제 삽입 및 `Play now` 핸드오프는 범위를 벗어납니다.",
|
|
18433
|
-
"ia.directPlay.prerequisite2": "2단계로 이동하기 전에 직접 플레이 장면에서 패키지 실행, 첫 번째 화면 로딩, 핵심 게임 내 경로가 이미 안정적인지 확인하세요.",
|
|
18434
|
-
"ia.directPlay.step1": "실행 모드를 열고 직접 재생 장면을 선택한 다음 패키지 디버깅을 위한 전용 모드를 저장하세요.",
|
|
18435
|
-
"ia.directPlay.step2": "홈으로 돌아가서 스캔하여 실행하세요. 패키지가 안정적으로 들어가고 해당 장면에서 기본 게임 내 흐름을 완료할 수 있는지 확인하세요.",
|
|
18436
|
-
"ia.directPlay.step3": "패키지 자체가 안정된 후에만 여기로 돌아와 다이렉트 플레이 카드 프리젠테이션을 검증하고 미리보기 QR 코드로 전달한 다음 동일한 카드의 라이브 상태를 관리해야 합니다.",
|
|
18437
|
-
"ia.directPlay.summary": "직접 플레이 디버깅은 세 단계로 나누는 것이 가장 좋습니다. 먼저 미니 게임 패키지 자체를 확인한 다음 미리 보기 QR 코드를 사용하여 카드 제시 및 전달 경로를 확인하고 마지막으로 확인된 카드의 라이브 상태를 관리합니다.",
|
|
18438
|
-
"ia.directPlay.tip1": "1단계가 실패하면 피드 프리젠테이션이나 전달 로직의 원인으로 너무 일찍 원인을 지정하는 대신 먼저 일반 패키지/런타임 문제처럼 디버깅하세요.",
|
|
18439
|
-
"ia.directPlay.tip2": "2단계가 실패하면 패키지 런타임 문제를 카드 구성, 자산 또는 전달 경로 문제와 분리합니다. 3단계에서는 2단계에서 이미 검증된 카드의 실시간 상태만 관리합니다.",
|
|
18440
|
-
"ia.login.highlight1": "핵심 출력은 백엔드가 `open_id`/세션 상태로 교환하는 `auth_code`입니다.",
|
|
18441
|
-
"ia.login.highlight2": "`login`와 `authorize`는 서로 다른 경로입니다. `login`는 ID를 설정하고 `authorize`는 추가 범위를 요청합니다.",
|
|
18442
|
-
"ia.login.prerequisite1": "활성 `client_key`가 터미널 디버그 구성과 일치하고 런타임 시 `tt.login` 호출 경로에 올바르게 삽입되었는지 확인하세요.",
|
|
18443
|
-
"ia.login.prerequisite2": "백엔드는 명확한 재시도, 오류 코드 및 세션 만료 처리와 함께 `auth_code` -> `open_id`/세션에 대한 코드 교환 API를 이미 노출해야 합니다.",
|
|
18444
|
-
"ia.login.requirementScope": "IAP, 기기 간 저장, 순위표처럼 플레이어를 식별하는 기능에는 로그인이 필수입니다. 해당 기능이 없는 광고 게임에는 필요하지 않습니다. 휴대폰에서 백엔드 세션과 성공 및 실패 처리를 검증하세요.",
|
|
18445
|
-
"ia.login.step1": "비즈니스 페이지에서 `tt.login`(또는 비즈니스 래퍼)를 호출하고 클라이언트가 안정적인 `auth_code`를 반환할 수 있는지 확인하세요.",
|
|
18446
|
-
"ia.login.step2": "`auth_code`를 백엔드로 보내고 `open_id`/세션 교환, 세션 지속성 및 다운스트림 요청 전파가 모두 올바르게 작동하는지 확인합니다.",
|
|
18447
|
-
"ia.login.step3": "사용자 취소, 네트워크 오류, 만료된 `auth_code` 및 백엔드 교환 오류 분기를 처리한 다음 UI 대체 및 재시도 전략을 사용할 수 있는지 확인합니다.",
|
|
18448
|
-
"ia.login.summary": "로그인은 미니게임 신원 확인 기능입니다. 클라이언트에서 `auth_code`를 얻은 다음 백엔드는 해당 코드를 `open_id`/세션 상태로 교환합니다.",
|
|
18449
|
-
"ia.login.tip1": "먼저 기본 `auth_code -> open_id / session` 경로를 안정적으로 가져온 다음 로그인 상태에 따라 프로필, 분석 또는 기타 비즈니스 흐름으로 확장하세요.",
|
|
18450
|
-
"ia.login.tip2": "현재 SDK에서는 `login`가 기본적으로 `user.info.open_id`로 설정되어 있습니다. 더 많은 사용자 데이터나 추가 범위가 필요한 경우 `authorize`에서 별도로 요청하세요.",
|
|
18451
|
-
"ia.menu.ad": "광고",
|
|
18452
|
-
"ia.menu.authorize": "권한 동의",
|
|
18453
|
-
"ia.menu.directPlayCard": "다이렉트 플레이 카드",
|
|
18454
|
-
"ia.menu.login": "로그인",
|
|
18455
|
-
"ia.menu.network": "네트워크 및 실시간",
|
|
18456
|
-
"ia.menu.payment": "지불",
|
|
18457
|
-
"ia.menu.shareMessage": "인앱 메시지 공유",
|
|
18458
|
-
"ia.menu.shareStory": "스토리에 공유",
|
|
18459
|
-
"ia.menu.shortcutRevisit": "바로가기 재방문",
|
|
18460
|
-
"ia.menu.sidebarRevisit": "사이드바 재방문",
|
|
18461
|
-
"ia.menu.subpackage": "하위 패키지 및 사전 로드",
|
|
18462
|
-
"ia.menu.uiAdaptation": "UI 적응",
|
|
18463
|
-
"ia.menu.wasmSplit": "Wasm 코드 분할",
|
|
18464
|
-
"ia.monetization.mode.iaa.desc": "광고 위치를 설정하고 광고 요청과 콜백을 확인하세요. 계정이나 서버 세션이 필요하면 `login`을, 추가 프로필 정보가 필요하면 `authorize`를 연동하세요. 네트워크 오류와 게임에서 사용하는 재방문 경로도 확인하세요.",
|
|
18465
|
-
"ia.monetization.mode.iaa.summary": "광고 위치, 요청 및 콜백을 검증하세요. 플레이어 식별이 필요할 때만 로그인하세요. 두 재방문 진입점은 필수입니다.",
|
|
18466
|
-
"ia.monetization.mode.iaa.title": "광고",
|
|
18467
|
-
"ia.monetization.mode.iaap.desc": "`login`을 연동하고 광고와 결제를 각각 확인하세요. 같은 플레이어 세션의 오류 처리도 검증합니다. 추가 사용자 정보가 필요할 때만 `authorize`를 연동하고 두 재방문 경로도 확인하세요.",
|
|
18468
|
-
"ia.monetization.mode.iaap.summary": "광고와 결제는 함께 실행되므로 공유 사용자 시스템을 기반으로 전반적인 안정성을 검증하세요.",
|
|
18469
|
-
"ia.monetization.mode.iaap.title": "혼합 수익화",
|
|
18470
|
-
"ia.monetization.mode.iap.desc": "구매 중심 게임의 경우 `login`부터 시작하여 주문 생성, 결제 호출, 백엔드 확인 및 이행을 하나의 폐쇄 루프로 진행합니다. 추가 프로필 데이터 또는 추가 범위가 필요한 경우에만 `authorize`를 추가하고, 약한 네트워크, 결제 취소 및 중복 주문 사례에 특히 주의하고, 재방문 기능을 사용하여 유료 사용자의 반환 경로를 검증합니다.",
|
|
18471
|
-
"ia.monetization.mode.iap.summary": "결제 루프가 먼저 이루어지며 주문 생성, 결제, 확인 및 이행이 처음부터 끝까지 일관되게 유지됩니다.",
|
|
18472
|
-
"ia.monetization.mode.iap.title": "인앱 구매",
|
|
18473
|
-
"ia.network.highlight1": "이 주제는 양호한 연결에서의 단일 요청 성공뿐만 아니라 약한 네트워크 및 복구 동작에 관한 것입니다.",
|
|
18474
|
-
"ia.network.highlight2": "요청, 다운로드 및 실시간 경로에는 각각 명시적인 복구 규칙이 있어야 합니다.",
|
|
18475
|
-
"ia.network.prerequisite1": "디버깅하기 전에 요청, 다운로드 및 실시간 경로를 통합하여 시간 초과, 재시도 및 오류 표시가 각 페이지에서 다르게 구현되지 않도록 합니다.",
|
|
18476
|
-
"ia.network.prerequisite2": "HTTP, 다운로드, 긴 연결을 동일한 실패 유형으로 처리하는 대신 서로 다른 대체 및 사용자 피드백을 준비합니다.",
|
|
18477
|
-
"ia.network.step1": "공유 레이어 뒤에서 요청, 다운로드 및 소켓 호출을 래핑하여 시간 초과, 취소, 재시도 및 로그가 일관되게 처리되도록 합니다.",
|
|
18478
|
-
"ia.network.step2": "`getNetworkType`, 네트워크 변경 수신기 및 약한 네트워크 수신기를 사용하여 페이지가 자동으로 실패하는 대신 네트워크 변경에 반응하는지 확인하세요.",
|
|
18479
|
-
"ia.network.step3": "장치에서는 약한 네트워크, 다시 연결, 다운로드 중단 및 소켓 복구에 회귀를 집중하여 상태 복원이 실제로 완료되도록 합니다.",
|
|
18480
|
-
"ia.network.summary": "네트워크 및 실시간은 사용 가능한 약한 네트워크, 연결 해제 및 복구 동작에 중점을 두고 `request`, `downloadFile`, `connectSocket` 및 네트워크 상태 관찰을 다룹니다.",
|
|
18481
|
-
"ia.network.tip1": "이상적인 네트워크만 테스트하지 마십시오. 대부분의 실제 문제는 시간 초과, 자산 절반 다운로드, 연결 끊김, 반복적인 재연결 시도로 인해 발생합니다.",
|
|
18482
|
-
"ia.network.tip2": "실시간 흐름은 닫기, 백그라운드/포그라운드 전환 및 복구 후 재구독 논리를 명시적으로 다루어야 합니다.",
|
|
18483
|
-
"ia.overview.section.foundation.desc": "게임에 필요한 화면 대응, 네트워크 설정, 리소스 로딩과 서브패키지를 준비하세요.",
|
|
18484
|
-
"ia.overview.section.foundation.title": "핵심 역량",
|
|
18485
|
-
"ia.overview.section.growth.desc": "두 재방문 진입점은 필수입니다. 미지원 시에도 계속 플레이할 수 있게 처리하고 출시 후 실제 복귀를 검증하세요. 보상은 선택 사항입니다.",
|
|
18486
|
-
"ia.overview.section.growth.title": "성장과 재방문",
|
|
18487
|
-
"ia.overview.section.identity.desc": "IAP나 플레이어 식별이 필요한 기능에 로그인을 연동하세요. 추가 정보나 권한은 필요할 때만 요청하세요.",
|
|
18488
|
-
"ia.overview.section.identity.title": "로그인 및 권한 동의",
|
|
18489
|
-
"ia.overview.section.monetization.desc": "수익은 주로 결제와 광고에서 발생하며 둘 다 포털 활성화, 비즈니스 루프 검증 및 장치 회귀가 필요합니다.",
|
|
18490
|
-
"ia.overview.section.monetization.title": "수익화",
|
|
18491
|
-
"ia.overview.section.share.desc": "플레이어가 게임을 공유하고 올바른 게임 내 장면으로 돌아올 수 있게 하세요.",
|
|
18492
|
-
"ia.overview.section.share.title": "나눔과 성장",
|
|
18493
|
-
"ia.payment.highlight1": "실제 결제 루프는 단순히 결제 패널을 여는 것이 아니라 주문 생성, 결제 호출, 확인 및 이행입니다.",
|
|
18494
|
-
"ia.payment.highlight2": "IAP Mock을 사용하여 더 빠르게 반복한 다음 장치의 백엔드 결과에 대해 실제 Beans 지불을 검증하십시오.",
|
|
18495
|
-
"ia.payment.prerequisite1": "먼저 비즈니스 확인 및 계약 서명을 완료한 다음 수익화에서 인앱 구매를 활성화하세요. 지급 엔터티는 확인된 비즈니스 엔터티와 일치해야 합니다.",
|
|
18496
|
-
"ia.payment.prerequisite2": "주문 생성, 지속성 및 확인을 위한 제품 구성, 테스트 계정 및 백엔드 기능을 준비합니다. 로컬 반복의 경우 먼저 IAP Mock을 활성화하여 기본 분기를 포괄합니다.",
|
|
18497
|
-
"ia.payment.step1": "포털 활성화, 제품 설정 및 지급 정보를 완료한 다음 백엔드 주문 생성, 주문 지속성 및 결제 결과 확인을 연결합니다.",
|
|
18498
|
-
"ia.payment.step2": "클라이언트 결제 호출 및 콜백 처리를 통합하고 IAP Mock을 먼저 사용하여 성공, 실패, 취소 및 반복 탭 분기를 처리합니다.",
|
|
18499
|
-
"ia.payment.step3": "그런 다음 실제 장치 미리보기 또는 실제 장치 디버그로 전환하고 실제 결제, 백엔드 확인, 이행/크레딧 부여 및 재시도 처리를 전체 루프로 확인합니다.",
|
|
18500
|
-
"ia.payment.summary": "IAP 수익화는 백엔드 주문 생성, 클라이언트 측 결제 호출, 가상 상품 또는 부가가치 서비스에 대한 백엔드 확인/이행의 전체 체인이며, TikTok Beans가 지원되는 유일한 결제 방법입니다.",
|
|
18501
|
-
"ia.payment.tip1": "클라이언트 성공 콜백을 최종 진실로 취급하지 마세요. 이행 또는 적립은 백엔드 확인 또는 신뢰할 수 있는 주문 상태에 의존해야 합니다.",
|
|
18502
|
-
"ia.payment.tip2": "모의는 반복 속도에 유용하지만 릴리스 전에 특히 약한 네트워크, 중복 주문, 취소 및 시간 초과 사례의 경우 실제 장치 회귀가 여전히 필요합니다.",
|
|
18503
|
-
"ia.shareMessage.highlight1": "`shareAppMessage`의 경우 카드 제목, 설명 및 표지는 동적 비즈니스 측 사용자 정의가 아닌 개발자 포털의 게임 기본 정보에서 가져옵니다.",
|
|
18504
|
-
"ia.shareMessage.highlight2": "비즈니스 측면에서 실제로 설계해야 하는 것은 `query`이므로 적극적인 공유, 임무 공유 및 캠페인 공유가 올바른 게임 내 시나리오에 포함될 수 있습니다.",
|
|
18505
|
-
"ia.shareMessage.prerequisite1": "모든 런타임에 해당 기능이 존재한다고 가정하는 대신 먼저 클라이언트 버전 지원을 확인하고 `TTMinis.game.canIUse('shareAppMessage')`로 가용성을 조사하십시오.",
|
|
18506
|
-
"ia.shareMessage.prerequisite2": "인앱 메시지 카드 제목, 설명 및 표지가 해당 포털 구성에서 제공되므로 먼저 개발자 포털에서 게임 기본 정보가 올바르게 구성되었는지 확인하세요. 그런 다음 `query` 및 착륙 동작에 대한 비즈니스 논리에 중점을 둡니다.",
|
|
18507
|
-
"ia.shareMessage.step1": "획득, 회수 또는 캠페인 공유에 적합한 페이지에 `TTMinis.game.shareAppMessage`를 통합하고 `query` 값이 현재 비즈니스 시나리오를 정확하게 나타내는지 확인합니다.",
|
|
18508
|
-
"ia.shareMessage.step2": "성공, 취소, 실패 및 반복 탭 분기에 집중하여 인앱 메시지 공유 작업, 콜백 및 사용자 피드백이 모두 안정적으로 유지되도록 합니다.",
|
|
18509
|
-
"ia.shareMessage.step3": "장치에서 수신자가 올바른 페이지로 이동하고 쿼리 기반 상태가 올바르게 복원되도록 메시지 카드 표시 및 공유 후 반환 경로를 확인합니다.",
|
|
18510
|
-
"ia.shareMessage.summary": "`shareAppMessage`는 TikTok 인앱 메시지 공유입니다. 카드 제목, 설명, 표지는 개발자 포털에 구성된 게임 기본 정보에서 가져온 반면, 비즈니스 측면 디자인의 초점은 `query`가 정확한 게임 내 공유 시나리오를 전달하는 방법입니다.",
|
|
18511
|
-
"ia.shareMessage.tip1": "이는 인앱 메시지 카드 공유 기능으로 더 잘 설명되지만 카드 제목, 설명 및 표지는 공유 시 비즈니스 코드에 의해 동적으로 사용자 정의되지 않습니다. 실제로 제어하는 것은 `query`와 착륙 흐름입니다.",
|
|
18512
|
-
"ia.shareMessage.tip2": "공유 항목이 많은 경우 `query` 생성 및 구문 분석을 중앙 집중화합니다. 공유 시간 재정의가 지원된다고 가정하는 대신 개발자 포털에서 게임 기본 정보를 별도로 유지 관리하세요.",
|
|
18513
|
-
"ia.shareStory.highlight1": "`shareToStory`는 좀 더 시각적이지만 비즈니스 측면에서 여전히 신중하게 디자인해야 하는 것은 `query`이므로 공유가 게임 내 시나리오에 맞게 돌아올 수 있습니다.",
|
|
18514
|
-
"ia.shareStory.highlight2": "Story에 대한 전용 장치 회귀를 수행하여 자산 표시 품질과 `query` 기반 반환 경로 안정성을 모두 확인합니다.",
|
|
18515
|
-
"ia.shareStory.prerequisite1": "모든 흐름에 스토리 항목을 강제로 적용하는 대신 실제로 스토리 공유에 적합한 캠페인, 게임플레이 또는 결과 페이지를 식별하세요.",
|
|
18516
|
-
"ia.shareStory.prerequisite2": "먼저 스토리에 적합한 자산을 준비한 다음 `query` 값과 착지 동작을 함께 설계하세요. 게임 내 반환 논리를 모호하게 유지하면서 시각적 자료에만 최적화하지 마십시오.",
|
|
18517
|
-
"ia.shareStory.step1": "시각적 전파에 적합한 페이지에 `shareToStory`를 통합하고 선택한 자산과 `query` 값이 모두 활성 비즈니스 시나리오를 올바르게 나타내는지 확인합니다.",
|
|
18518
|
-
"ia.shareStory.step2": "트리거, 취소, 실패 및 다중 자산 분기를 다루므로 스토리 공유 프레젠테이션과 사용자 피드백이 모두 예상대로 작동합니다.",
|
|
18519
|
-
"ia.shareStory.step3": "디바이스에서는 스토리 공유 후 복귀 경로를 확인하고 대상 페이지, 캠페인 상태, 매개변수가 올바르게 복원되었는지 확인합니다.",
|
|
18520
|
-
"ia.shareStory.summary": "`shareToStory`는 스토리 공유에 중점을 두고 있습니다. 눈에 보이는 프레젠테이션은 스토리 자산 자체에 더 많이 의존하는 반면, 비즈니스 측면 디자인의 초점은 여전히 `query` 가치와 공유 후 랜딩 흐름입니다.",
|
|
18521
|
-
"ia.shareStory.tip1": "스토리 공유를 단순한 메시지 공유의 사본으로 취급해서는 안 됩니다. 자산 표현은 한 부분이지만 `query`와 공유 후 착륙 흐름은 여전히 신중한 비즈니스 측면 디자인이 필요합니다.",
|
|
18522
|
-
"ia.shareStory.tip2": "Story가 강력한 시각적 자료에 의존하는 경우 자산 표시와 `query` 기반 반환 경로가 올바른 페이지 상태를 복원하는지 여부에 대해 집중적인 실제 장치 검사를 수행합니다.",
|
|
18523
|
-
"ia.shortcut.highlight1": "바로가기 추가, 홈 화면에서 재진입, 보상 수령 조건 확인까지 검증하세요.",
|
|
18524
|
-
"ia.shortcut.highlight2": "진입 장면과 `canReceiveReward`를 확인한 다음 게임의 보상 지급을 검증하세요.",
|
|
18525
|
-
"ia.shortcut.prerequisite1": "호환성: `TTMinis.game.canIUse('addShortcut')`를 통한 프로브 지원. TikTok 41.0.0+(iOS에는 41.40+ 필요)에서 유효성을 검사합니다.",
|
|
18526
|
-
"ia.shortcut.prerequisite2": "보상 검증: 실제 사용자 흐름에서 `TTMinis.game.getShortcutMissionReward()`는 홈 화면 바로가기에서 세션이 시작된 경우에만 `canReceiveReward=true`를 반환합니다. `scene_shortcut` 시작 모드에서는 세션 자체가 이미 해당 항목을 시뮬레이션합니다.",
|
|
18527
|
-
"ia.shortcut.step1": "UI에 명확한 진입점을 추가합니다. `canIUse('addShortcut')`를 확인한 다음 `TTMinis.game.addShortcut()`를 호출하고 디버깅 실패 시 `errorCode/errorMsg`를 기록합니다.",
|
|
18528
|
-
"ia.shortcut.step2": "`ttmg dev`와 시작 모드 `scene_shortcut`으로 진입 처리를 시뮬레이션하세요. 실제 재방문을 증명하지 않습니다. 바로가기는 로컬 빌드나 플랫폼 Preview가 아닌 출시된 버전을 엽니다.",
|
|
18529
|
-
"ia.shortcut.step3": "출시 후 게임을 나갔다가 실제 바로가기로 다시 열어 버전과 플레이를 확인하세요. 보상 제공 시 `getShortcutMissionReward`는 단서로만 사용하고 서버가 독립 검증한 후에만 지급하세요.",
|
|
18530
|
-
"ia.shortcut.summary": "홈 화면 바로가기 추가와 복귀를 안내하세요. 미지원 시에도 계속 플레이할 수 있어야 합니다. 보상은 선택 사항입니다.",
|
|
18531
|
-
"ia.shortcut.tip1": "`canReceiveReward`와 시뮬레이션 결과는 실제 재방문을 증명하거나 서버의 보상 자격 검증을 대신하지 못합니다.",
|
|
18532
|
-
"ia.shortcut.tip2": "신뢰할 수 있는 독립 검증 방법이 없으면 재방문 보상을 지급하지 마세요. 보상 제공 시 중복 지급도 방지하세요.",
|
|
18533
|
-
"ia.sidebar.highlight1": "사이드바 진입점, 미션 상태, 보상 수령 조건을 함께 확인하세요.",
|
|
18534
|
-
"ia.sidebar.highlight2": "적절한 게임 내 진입점을 선택하고 실제 기기에서 게임 복귀와 보상 수령을 확인하세요.",
|
|
18535
|
-
"ia.sidebar.prerequisite1": "계정 지역이 지원되는 롤아웃 내에 있는지 확인하고 먼저 비즈니스 코드에서 `canIUse`를 사용하여 기능 지원을 확인하세요.",
|
|
18536
|
-
"ia.sidebar.prerequisite2": "기본 QR 경로를 유지하는 대신 실행 모드에서 전용 사이드바 재방문 장면을 사용하세요.",
|
|
18537
|
-
"ia.sidebar.step1": "게임 내 안내 진입점을 만들고 지원 여부 확인 후 `TTMinis.game.startEntranceMission`을 호출하세요. 미지원, 취소, 실패 시에도 계속 플레이할 수 있게 처리하세요.",
|
|
18538
|
-
"ia.sidebar.step2": "`ttmg dev`와 시작 모드 `scene_center`로 진입 처리를 시뮬레이션하세요. 모의 장면만 검증하며 실제 사이드바 재방문을 증명하지 않습니다.",
|
|
18539
|
-
"ia.sidebar.step3": "출시 후 실제 사이드바로 다시 열어 버전과 플레이를 확인하세요. 보상 제공 시 `getEntranceMissionReward`는 단서로만 사용하고 서버가 독립 검증한 후에만 지급하세요.",
|
|
18540
|
-
"ia.sidebar.summary": "사이드바 재방문을 안내하고 실제 복귀 경로를 검증하세요. 미지원 시에도 계속 플레이할 수 있어야 합니다. 보상은 선택 사항입니다.",
|
|
18541
|
-
"ia.sidebar.tip1": "이 기능은 장면 및 지역 조건에 따라 크게 달라지므로 기본 QR 경로를 통해서만 설명하거나 검증하지 마세요.",
|
|
18542
|
-
"ia.sidebar.tip2": "실패 시 장면, 계정 및 지역 가용성, 클라이언트 지원을 확인하세요. 신뢰할 수 있는 독립 검증 없이 보상을 지급하지 말고 제공 시 중복 지급도 방지하세요.",
|
|
18543
|
-
"ia.subpackage.highlight1": "분할 패키지 품질은 가능한 한 분할하는 것이 아니라 경계 정의, 사전 로드 타이밍 및 대체에 따라 달라집니다.",
|
|
18544
|
-
"ia.subpackage.highlight2": "약한 네트워크에서 첫 번째 화면 속도와 이후 장면 전환을 모두 검증합니다.",
|
|
18545
|
-
"ia.subpackage.prerequisite1": "첫 번째 화면에서 실제로 필요한 것이 무엇인지, 이후의 게임 플레이나 선택적 리소스에 속하는 것이 무엇인지 확인하세요.",
|
|
18546
|
-
"ia.subpackage.prerequisite2": "비즈니스 페이지 내부에 분할 패키지 로직을 분산시키는 대신 일관된 로딩 폴백, 재시도 및 로딩 상태 UX를 준비하세요.",
|
|
18547
|
-
"ia.subpackage.step1": "`game.json`의 `subpackages`에 이름과 루트 디렉터리를 선언하고, 서브패키지 루트에 `game.js` 진입 파일이 있는지 확인하세요. 첫 화면에 필요한 리소스는 메인 패키지에 유지하세요.",
|
|
18548
|
-
"ia.subpackage.step2": "미리 다운로드할 때는 `preDownloadSubpackage`를 사용하세요. 서브패키지 진입점을 로드하고 실행할 때는 `loadSubpackage`를 사용하세요. 장면에 들어가기 전에 필요한 리소스와 초기화가 완료되었는지 확인하세요.",
|
|
18549
|
-
"ia.subpackage.step3": "첫 번째 화면 진입, 이후 점프 및 분할 패키지 오류 복구 시 장치 및 약한 네트워크 회귀를 실행하여 사용자가 로드 중에 막히지 않도록 하세요.",
|
|
18550
|
-
"ia.subpackage.summary": "하위 패키지 및 사전 로드는 첫 번째 패키지 크기, 분할 경계 및 리소스 로딩 타이밍에 중점을 두므로 첫 번째 화면 속도를 저하시키지 않고 이후 콘텐츠가 원활하게 도착할 수 있습니다.",
|
|
18551
|
-
"ia.subpackage.tip1": "사전 로드가 바로 사용 가능함을 의미하지는 않습니다. 분할 패키지가 정말로 필요한 경우 실제 비즈니스 전환을 검증합니다.",
|
|
18552
|
-
"ia.subpackage.tip2": "더 작은 메인 패키지를 쫓기 위해 과도하게 분할하지 마십시오. 타이밍, 대체 및 종속성 정확성은 원시 분할 수보다 더 중요합니다.",
|
|
18553
|
-
"ia.uiAdaptation.highlight1": "목표는 일회성 페이지 수정이 아니라 안전 영역, 캡슐 버튼 및 창 측정항목에 대한 공유 레이아웃 기준선입니다.",
|
|
18554
|
-
"ia.uiAdaptation.highlight2": "제목, 플로팅 버튼, 하단 작업 영역이 방해받지 않도록 다양한 크기의 실제 장치에서 유효성을 검사합니다.",
|
|
18555
|
-
"ia.uiAdaptation.prerequisite1": "한 페이지만 패치하는 대신 상단 표시줄, 플로팅 작업, 고정 하단 영역 또는 전체 화면 시각적 개체에 의존하는 주요 페이지를 나열하세요.",
|
|
18556
|
-
"ia.uiAdaptation.prerequisite2": "특히 다양한 종횡비, 상단 안전 영역 및 하단 동작 영역에 걸쳐 실제 장치 또는 다중 크기 미리보기 범위를 준비합니다.",
|
|
18557
|
-
"ia.uiAdaptation.step1": "먼저 창 크기, 안전 영역 및 캡슐 버튼 측정항목을 각 페이지에 별도로 하드코딩하는 대신 레이아웃 기준선으로 중앙 집중화합니다.",
|
|
18558
|
-
"ia.uiAdaptation.step2": "상단 제목 영역, 상단 오른쪽 작업, 하단 고정 컨트롤 및 모달 콘텐츠를 조정하여 캡슐 버튼이나 시스템 안전 영역과 겹치지 않도록 합니다.",
|
|
18559
|
-
"ia.uiAdaptation.step3": "주요 페이지에서 실제 장치 회귀를 실행하고 종횡비 변경 사항을 확인하고, 컨테이너, 전체 화면 배경을 스크롤하고, 장치 전반에 걸쳐 대상을 탭합니다.",
|
|
18560
|
-
"ia.uiAdaptation.summary": "UI 적응은 화면 크기, 캡슐 버튼 및 안전 영역 처리에 중점을 두므로 주요 UI가 기기 전반에 걸쳐 표시되고 탭 가능하며 올바르게 정렬됩니다.",
|
|
18561
|
-
"ia.uiAdaptation.tip1": "시각적 정렬만 보지 마십시오. 탭 영역, 모달 닫기 어포던스 및 하단 도달 가능성도 UI 적응의 일부입니다.",
|
|
18562
|
-
"ia.uiAdaptation.tip2": "캡슐 버튼 위치를 고정 픽셀로 하드코딩하지 마세요. 플랫폼 측정항목 및 안전 영역 데이터를 기반으로 한 기본 레이아웃입니다.",
|
|
18563
|
-
"ia.wasmSplit.summary": "Unity Wasm 번들을 온디맨드 청크로 분할하여 초기 페이로드를 줄이고 콜드 스타트를 개선합니다. Unity 엔진 전용.",
|
|
18564
|
-
scene_ad: "피드 광고의 경우",
|
|
18565
|
-
scene_center: "사이드바",
|
|
18566
|
-
scene_fyf_promotion_direct_feed_play: "For You 피드 직접 플레이",
|
|
18567
|
-
scene_scan_qrcode: "QR 코드 스캔",
|
|
18568
|
-
scene_shortcut: "데스크탑 바로가기"
|
|
18569
|
-
}
|
|
18570
|
-
};
|
|
18571
|
-
|
|
18572
|
-
const monetizationModes = [
|
|
18573
|
-
{
|
|
18574
|
-
key: 'iaa',
|
|
18575
|
-
titleKey: 'ia.monetization.mode.iaa.title',
|
|
18576
|
-
summaryKey: 'ia.monetization.mode.iaa.summary',
|
|
18577
|
-
descriptionKey: 'ia.monetization.mode.iaa.desc',
|
|
18578
|
-
capabilityKeys: ['login', 'authorize', 'ad'],
|
|
18579
|
-
capabilityRequirementMap: {
|
|
18580
|
-
login: 'conditional',
|
|
18581
|
-
authorize: 'optional',
|
|
18582
|
-
ad: 'required',
|
|
18583
|
-
},
|
|
18584
|
-
supportCapabilityKeys: ['network', 'sidebar_revisit', 'shortcut_revisit'],
|
|
18585
|
-
experimentalCapabilityKeys: ['direct_play_card'],
|
|
18586
|
-
},
|
|
18587
|
-
{
|
|
18588
|
-
key: 'iap',
|
|
18589
|
-
titleKey: 'ia.monetization.mode.iap.title',
|
|
18590
|
-
summaryKey: 'ia.monetization.mode.iap.summary',
|
|
18591
|
-
descriptionKey: 'ia.monetization.mode.iap.desc',
|
|
18592
|
-
capabilityKeys: ['login', 'authorize', 'payment'],
|
|
18593
|
-
capabilityRequirementMap: {
|
|
18594
|
-
login: 'required',
|
|
18595
|
-
authorize: 'optional',
|
|
18596
|
-
payment: 'required',
|
|
18597
|
-
},
|
|
18598
|
-
supportCapabilityKeys: ['network', 'sidebar_revisit', 'shortcut_revisit'],
|
|
18599
|
-
experimentalCapabilityKeys: ['direct_play_card'],
|
|
18600
|
-
},
|
|
18601
|
-
{
|
|
18602
|
-
key: 'iaap',
|
|
18603
|
-
titleKey: 'ia.monetization.mode.iaap.title',
|
|
18604
|
-
summaryKey: 'ia.monetization.mode.iaap.summary',
|
|
18605
|
-
descriptionKey: 'ia.monetization.mode.iaap.desc',
|
|
18606
|
-
capabilityKeys: ['login', 'authorize', 'ad', 'payment'],
|
|
18607
|
-
capabilityRequirementMap: {
|
|
18608
|
-
login: 'required',
|
|
18609
|
-
authorize: 'optional',
|
|
18610
|
-
ad: 'required',
|
|
18611
|
-
payment: 'required',
|
|
18612
|
-
},
|
|
18613
|
-
supportCapabilityKeys: ['network', 'sidebar_revisit', 'shortcut_revisit'],
|
|
18614
|
-
experimentalCapabilityKeys: ['direct_play_card'],
|
|
18615
|
-
},
|
|
18616
|
-
];
|
|
18617
|
-
const monetizationModeMap = monetizationModes.reduce((result, mode) => {
|
|
18618
|
-
result[mode.key] = mode;
|
|
18619
|
-
return result;
|
|
18620
|
-
}, {});
|
|
18621
|
-
const fixedOverviewSections = [
|
|
18622
|
-
{
|
|
18623
|
-
key: 'growth',
|
|
18624
|
-
titleKey: 'ia.overview.section.growth.title',
|
|
18625
|
-
descriptionKey: 'ia.overview.section.growth.desc',
|
|
18626
|
-
capabilityKeys: ['sidebar_revisit', 'shortcut_revisit', 'direct_play_card'],
|
|
18627
|
-
capabilityRequirementMap: {
|
|
18628
|
-
sidebar_revisit: 'required',
|
|
18629
|
-
shortcut_revisit: 'required',
|
|
18630
|
-
direct_play_card: 'experimental',
|
|
18631
|
-
},
|
|
18632
|
-
sectionClassName: 'integration-assistant-map-section-growth',
|
|
18633
|
-
gridClassName: 'integration-assistant-map-section-grid-two',
|
|
18634
|
-
defaultCollapsed: true,
|
|
18635
|
-
},
|
|
18636
|
-
// 性能优化 moved out of IA to its own top-level sidebar destination
|
|
18637
|
-
// (`/performance`). The capability still lives in `capabilityMetadataList`
|
|
18638
|
-
// below so router-based deep links (`/integration_assistant/wasm_split`)
|
|
18639
|
-
// keep redirecting to `/wasm_split` via `customPath`, but no IA section
|
|
18640
|
-
// surfaces the card anymore — perf tools are their own page now.
|
|
18641
|
-
{
|
|
18642
|
-
key: 'share',
|
|
18643
|
-
titleKey: 'ia.overview.section.share.title',
|
|
18644
|
-
descriptionKey: 'ia.overview.section.share.desc',
|
|
18645
|
-
capabilityKeys: ['share_message', 'share_story'],
|
|
18646
|
-
capabilityRequirementMap: {
|
|
18647
|
-
share_message: 'recommended',
|
|
18648
|
-
},
|
|
18649
|
-
sectionClassName: 'integration-assistant-map-section-share',
|
|
18650
|
-
gridClassName: 'integration-assistant-map-section-grid-two',
|
|
18651
|
-
defaultCollapsed: true,
|
|
18652
|
-
},
|
|
18653
|
-
{
|
|
18654
|
-
key: 'foundation',
|
|
18655
|
-
titleKey: 'ia.overview.section.foundation.title',
|
|
18656
|
-
descriptionKey: 'ia.overview.section.foundation.desc',
|
|
18657
|
-
capabilityKeys: ['ui_adaptation', 'subpackage', 'network'],
|
|
18658
|
-
capabilityRequirementMap: {
|
|
18659
|
-
ui_adaptation: 'recommended',
|
|
18660
|
-
subpackage: 'basic',
|
|
18661
|
-
network: 'basic',
|
|
18662
|
-
},
|
|
18663
|
-
sectionClassName: 'integration-assistant-map-section-foundation',
|
|
18664
|
-
gridClassName: 'integration-assistant-map-section-grid-two',
|
|
18665
|
-
defaultCollapsed: true,
|
|
18666
|
-
},
|
|
18667
|
-
];
|
|
18668
|
-
|
|
18669
|
-
// These are callable public SDK APIs, not display tags or backend concepts.
|
|
18670
|
-
const capabilityAPIs = {
|
|
18671
|
-
login: ['login'],
|
|
18672
|
-
authorize: ['authorize'],
|
|
18673
|
-
payment: ['pay'],
|
|
18674
|
-
ad: ['createRewardedVideoAd', 'createInterstitialAd'],
|
|
18675
|
-
shortcut_revisit: ['addShortcut'],
|
|
18676
|
-
sidebar_revisit: ['startEntranceMission'],
|
|
18677
|
-
share_message: ['shareAppMessage', 'shareToUser'],
|
|
18678
|
-
};
|
|
18679
|
-
// Keep the inventory aligned with public integration guides, including when
|
|
18680
|
-
// rendering results produced by an older local checker.
|
|
18681
|
-
function isPlatformIntegrationCapability(key) {
|
|
18682
|
-
const meta = capabilityMetadataMap[key];
|
|
18683
|
-
return Object.prototype.hasOwnProperty.call(capabilityAPIs, key) &&
|
|
18684
|
-
Boolean(meta && !meta.hidden && !meta.experimentOnly && !meta.localDevOnly);
|
|
18685
|
-
}
|
|
18686
|
-
function capabilityCheckText(key, language) {
|
|
18687
|
-
return messages[language]?.[key] || messages['en-US'][key] || key;
|
|
18688
|
-
}
|
|
18689
|
-
function capabilityRequirement(key, mode = 'iaa') {
|
|
18690
|
-
const requirements = Object.assign({}, ...fixedOverviewSections.map(section => section.capabilityRequirementMap || {}), monetizationModeMap[mode].capabilityRequirementMap);
|
|
18691
|
-
return requirements[key] || 'optional';
|
|
18692
|
-
}
|
|
18693
|
-
function capabilityGuide(key) {
|
|
18694
|
-
const meta = capabilityMetadataMap[key];
|
|
18695
|
-
return { route: `/integration_assistant/${key}`,
|
|
18696
|
-
url: meta.actions.find(action => action.type === 'external')?.href || null };
|
|
18697
|
-
}
|
|
18698
|
-
|
|
18699
|
-
const ignored = new Set(['node_modules', '.git', '.ttmg', '.cache', '.agents', '.claude', '.trae', ttmgPack.TTMG_TEMP_DIR]);
|
|
18700
|
-
const maxFileBytes$1 = 5000000;
|
|
18701
|
-
const maxScanBytes = 128000000;
|
|
18702
|
-
const maxEntries = 100000;
|
|
18703
|
-
function memberName(node) {
|
|
18704
|
-
return node?.type === 'MemberExpression'
|
|
18705
|
-
? node.computed ? typeof node.property?.value === 'string' ? node.property.value : undefined : node.property?.name
|
|
18706
|
-
: undefined;
|
|
18707
|
-
}
|
|
18708
|
-
function platformNamespace(node) {
|
|
18709
|
-
const globalMember = (candidate, name) => candidate?.type === 'MemberExpression' &&
|
|
18710
|
-
memberName(candidate) === name && candidate.object?.type === 'Identifier' &&
|
|
18711
|
-
['globalThis', 'window', 'GameGlobal'].includes(candidate.object.name);
|
|
18712
|
-
if (node?.type === 'Identifier' && node.name === 'tt' || globalMember(node, 'tt'))
|
|
18713
|
-
return 'tt';
|
|
18714
|
-
if (node?.type === 'MemberExpression' && memberName(node) === 'game' &&
|
|
18715
|
-
(node.object?.type === 'Identifier' && node.object.name === 'TTMinis' || globalMember(node.object, 'TTMinis')))
|
|
18716
|
-
return 'TTMinis.game';
|
|
18717
|
-
return null;
|
|
18718
|
-
}
|
|
18719
|
-
// Scan JS package files, with locations, without executing game code. A match
|
|
18720
|
-
// proves only that a supported tt.* call shape exists in a parsed file.
|
|
18721
|
-
function checkPlatformCapabilities(directory) {
|
|
18722
|
-
const root = path$1.resolve(directory);
|
|
18723
|
-
let unity = false;
|
|
18724
|
-
try {
|
|
18725
|
-
const engine = JSON.parse(fs$1.readFileSync(path$1.join(root, 'game.json'), 'utf8')).gameEngine;
|
|
18726
|
-
unity = typeof engine === 'string' && engine.trim().toLowerCase() === 'unity';
|
|
18727
|
-
}
|
|
18728
|
-
catch { /* config is checked separately */ }
|
|
18729
|
-
const matches = [];
|
|
18730
|
-
const byAPI = new Map();
|
|
18731
|
-
const visibleCapabilities = Object.entries(capabilityAPIs).filter(([key]) => isPlatformIntegrationCapability(key));
|
|
18732
|
-
for (const [key, apis] of visibleCapabilities)
|
|
18733
|
-
for (const api of apis)
|
|
18734
|
-
byAPI.set(api, key);
|
|
18735
|
-
const stack = [root];
|
|
18736
|
-
let incomplete = false, bytes = 0, entries = 0;
|
|
18737
|
-
while (stack.length) {
|
|
18738
|
-
const file = stack.pop();
|
|
18739
|
-
if (file !== root && ignored.has(path$1.basename(file)))
|
|
18740
|
-
continue;
|
|
18741
|
-
if (++entries > maxEntries) {
|
|
18742
|
-
incomplete = true;
|
|
18743
|
-
break;
|
|
18744
|
-
}
|
|
18745
|
-
try {
|
|
18746
|
-
const stat = fs$1.lstatSync(file);
|
|
18747
|
-
if (stat.isSymbolicLink()) {
|
|
18748
|
-
incomplete = true;
|
|
18749
|
-
continue;
|
|
18750
|
-
}
|
|
18751
|
-
if (stat.isDirectory()) {
|
|
18752
|
-
stack.push(...fs$1.readdirSync(file).sort().reverse().map(name => path$1.join(file, name)));
|
|
18753
|
-
continue;
|
|
18754
|
-
}
|
|
18755
|
-
if (!stat.isFile() || !/\.(?:[cm]?js|ts)$/i.test(file))
|
|
18756
|
-
continue;
|
|
18757
|
-
if (stat.size > maxFileBytes$1 || (bytes += stat.size) > maxScanBytes) {
|
|
18758
|
-
incomplete = true;
|
|
18759
|
-
continue;
|
|
18760
|
-
}
|
|
18761
|
-
const source = fs$1.readFileSync(file, 'utf8');
|
|
18762
|
-
let tree;
|
|
18763
|
-
try {
|
|
18764
|
-
tree = acorn.parse(source, { ecmaVersion: 'latest', sourceType: 'module', locations: true, allowReturnOutsideFunction: true, allowHashBang: true });
|
|
18765
|
-
}
|
|
18766
|
-
catch {
|
|
18767
|
-
incomplete = true;
|
|
18768
|
-
continue;
|
|
18769
|
-
}
|
|
18770
|
-
const nodes = [tree];
|
|
18771
|
-
while (nodes.length) {
|
|
18772
|
-
const node = nodes.pop();
|
|
18773
|
-
if (node.type === 'CallExpression') {
|
|
18774
|
-
const callee = node.callee?.type === 'ChainExpression' ? node.callee.expression : node.callee;
|
|
18775
|
-
const api = memberName(callee);
|
|
18776
|
-
const namespace = platformNamespace(callee?.object);
|
|
18777
|
-
if (api && byAPI.has(api) && namespace)
|
|
18778
|
-
matches.push({ api, call: `${namespace}.${api}`,
|
|
18779
|
-
file: path$1.relative(root, file).split(path$1.sep).join('/'), line: node.loc.start.line, column: node.loc.start.column + 1 });
|
|
18780
|
-
}
|
|
18781
|
-
for (const value of Object.values(node)) {
|
|
18782
|
-
if (Array.isArray(value))
|
|
18783
|
-
for (const child of value) {
|
|
18784
|
-
if (child?.type)
|
|
18785
|
-
nodes.push(child);
|
|
18786
|
-
}
|
|
18787
|
-
else if (value && typeof value === 'object' && 'type' in value)
|
|
18788
|
-
nodes.push(value);
|
|
18789
|
-
}
|
|
18790
|
-
}
|
|
18791
|
-
}
|
|
18792
|
-
catch {
|
|
18793
|
-
incomplete = true;
|
|
18794
|
-
}
|
|
18795
|
-
}
|
|
18796
|
-
return visibleCapabilities.map(([key, apis]) => {
|
|
18797
|
-
const name = key;
|
|
18798
|
-
const found = matches.filter(hit => apis.includes(hit.api)).sort((a, b) => a.file.localeCompare(b.file) || a.line - b.line || a.column - b.column);
|
|
18799
|
-
return { type: 'platform_capability', name,
|
|
18800
|
-
status: unity ? 'not_checked' : found.length ? 'detected' : incomplete ? 'not_checked' : 'not_detected',
|
|
18801
|
-
reason: unity ? 'unity_binary' : incomplete ? 'scan_incomplete' : null,
|
|
18802
|
-
requirement: capabilityRequirement(name), apis, matches: found,
|
|
18803
|
-
files: [...new Set(found.map(hit => hit.file))], guide: capabilityGuide(name), verification: 'not_evaluated' };
|
|
18804
|
-
});
|
|
18805
|
-
}
|
|
18806
|
-
// Package constraints stay in ttmg-pack. Business capability guidance is shared
|
|
18807
|
-
// by CLI and DevTool and is not an upload/review verdict.
|
|
18808
|
-
async function checkPlatformPackages(config, context) {
|
|
18809
|
-
const results = await ttmgPack.checkPkgs({ ...config, build: { ...config.build, enableAPICheck: false } }, context);
|
|
18810
|
-
return [...results, ...checkPlatformCapabilities(config.entry)];
|
|
18811
|
-
}
|
|
18812
|
-
|
|
18813
|
-
const DEV_PORT = 3000;
|
|
18814
|
-
const DEV_WS_PORT = 4000;
|
|
18815
|
-
path.join(os.homedir(), '__TTMG__');
|
|
18816
|
-
const PKG_SIZE_LIMIT = {
|
|
18817
|
-
pkgSizeLimit: 30 * 1024 * 1024,
|
|
18818
|
-
mainPkgSizeLimit: 4 * 1024 * 1024,
|
|
18819
|
-
independentSubPkgSizeLimit: 4 * 1024 * 1024,
|
|
18820
|
-
};
|
|
18821
|
-
const NATIVE_GAME_ENTRY_FILES = [
|
|
18822
|
-
'game.js',
|
|
18823
|
-
'game.json',
|
|
18824
|
-
'project.config.json',
|
|
18825
|
-
];
|
|
18826
|
-
const SUBPACKAGE_FIELD_NAMES = ['subpackages', 'subPackages'];
|
|
18827
|
-
const SUBPACKAGE_CONFIG_FILE_NAME = 'game.json';
|
|
18828
|
-
|
|
18829
|
-
const defaultDependencies$5 = {
|
|
18830
|
-
checkPackages: checkPlatformPackages,
|
|
18831
|
-
operationId: () => `check_${crypto.randomUUID()}`,
|
|
18832
|
-
};
|
|
18833
|
-
function normalizeFormat$2(format) {
|
|
18834
|
-
const value = (format || 'text').toLowerCase();
|
|
18835
|
-
if (value !== 'text' && value !== 'json') {
|
|
18836
|
-
throw new Error(t('check.error.invalidFormat', { format: value }));
|
|
18837
|
-
}
|
|
18838
|
-
return value;
|
|
18839
|
-
}
|
|
18840
|
-
function normalizeFailOn(failOn) {
|
|
18841
|
-
const value = (failOn || 'error').toLowerCase();
|
|
18842
|
-
if (value !== 'error' && value !== 'warning') {
|
|
18843
|
-
throw new Error(t('check.error.invalidFailOn', { failOn: value }));
|
|
18844
|
-
}
|
|
18845
|
-
return value;
|
|
18846
|
-
}
|
|
18847
|
-
function codePart(value) {
|
|
18848
|
-
return value
|
|
18849
|
-
.replace(/[^a-zA-Z0-9]+/g, '_')
|
|
18850
|
-
.replace(/^_+|_+$/g, '')
|
|
18851
|
-
.toUpperCase();
|
|
18852
|
-
}
|
|
18853
|
-
function toCheckDiagnostic(result) {
|
|
18854
|
-
result = localizePackCheckResult(result);
|
|
18855
|
-
const type = result.type || 'unknown';
|
|
18856
|
-
const name = result.name || result.dimension || 'project';
|
|
18857
|
-
return {
|
|
18858
|
-
code: `TTMG_CHECK_${codePart(type)}_${codePart(name)}`,
|
|
18859
|
-
severity: result.level || (result.passed ? 'info' : 'error'),
|
|
18860
|
-
passed: result.passed,
|
|
18861
|
-
type,
|
|
18862
|
-
dimension: result.dimension || 'project',
|
|
18863
|
-
name,
|
|
18864
|
-
required: result.required === true,
|
|
18865
|
-
message: result.msg,
|
|
18866
|
-
location: {
|
|
18867
|
-
file: result.file || null,
|
|
18868
|
-
files: Array.isArray(result.files) ? result.files : [],
|
|
18869
|
-
},
|
|
18870
|
-
metrics: {
|
|
18871
|
-
sizeBytes: typeof result.size === 'number' ? result.size : null,
|
|
18872
|
-
},
|
|
18873
|
-
help: {
|
|
18874
|
-
url: result.detail?.link || null,
|
|
18875
|
-
text: result.detail?.text || null,
|
|
18876
|
-
},
|
|
18877
|
-
};
|
|
18878
|
-
}
|
|
18879
|
-
function createFailedReport({ operationId, directory, code, message, }) {
|
|
18880
|
-
const diagnostic = {
|
|
18881
|
-
code,
|
|
18882
|
-
severity: 'error',
|
|
18883
|
-
passed: false,
|
|
18884
|
-
type: 'project',
|
|
18885
|
-
dimension: 'project',
|
|
18886
|
-
name: 'project',
|
|
18887
|
-
required: true,
|
|
18888
|
-
message,
|
|
18889
|
-
location: { file: null, files: [] },
|
|
18890
|
-
metrics: { sizeBytes: null },
|
|
18891
|
-
help: { url: null, text: null },
|
|
18892
|
-
};
|
|
18893
|
-
return {
|
|
18894
|
-
schemaVersion: '1',
|
|
18895
|
-
operationId,
|
|
18896
|
-
command: 'check',
|
|
18897
|
-
status: 'failed',
|
|
18898
|
-
project: { directory },
|
|
18899
|
-
summary: { total: 1, passed: 0, warnings: 0, errors: 1 },
|
|
18900
|
-
diagnostics: [diagnostic],
|
|
18901
|
-
errorCode: code,
|
|
18902
|
-
error: message,
|
|
18903
|
-
};
|
|
18904
|
-
}
|
|
18905
|
-
async function executeCheck(options, dependencies = {}) {
|
|
18906
|
-
const deps = { ...defaultDependencies$5, ...dependencies };
|
|
18907
|
-
const operationId = deps.operationId();
|
|
18908
|
-
const directory = path.resolve(process.cwd(), options.dir || '.');
|
|
18909
|
-
if (!fs.existsSync(directory) || !fs.statSync(directory).isDirectory()) {
|
|
18910
|
-
return createFailedReport({
|
|
18911
|
-
operationId,
|
|
18912
|
-
directory,
|
|
18913
|
-
code: 'CHECK_DIRECTORY_NOT_FOUND',
|
|
18914
|
-
message: t('check.error.dirNotExist', { dir: directory }),
|
|
18915
|
-
});
|
|
18916
|
-
}
|
|
18917
|
-
const hasEntry = NATIVE_GAME_ENTRY_FILES.some(file => fs.existsSync(path.join(directory, file)));
|
|
18918
|
-
if (!hasEntry) {
|
|
18919
|
-
return createFailedReport({
|
|
18920
|
-
operationId,
|
|
18921
|
-
directory,
|
|
18922
|
-
code: 'CHECK_INVALID_PROJECT',
|
|
18923
|
-
message: t('native.check.notWorkspace'),
|
|
18924
|
-
});
|
|
18925
|
-
}
|
|
18926
|
-
try {
|
|
18927
|
-
const results = await deps.checkPackages({
|
|
18928
|
-
entry: directory,
|
|
18929
|
-
output: directory,
|
|
18930
|
-
dev: {
|
|
18931
|
-
enable: true,
|
|
18932
|
-
enableSourcemap: false,
|
|
18933
|
-
enableLog: false,
|
|
18934
|
-
},
|
|
18935
|
-
build: {
|
|
18936
|
-
enableOdr: false,
|
|
18937
|
-
enableAPICheck: true,
|
|
18938
|
-
...PKG_SIZE_LIMIT,
|
|
18939
|
-
},
|
|
18940
|
-
}, { lang: getPackLanguage() });
|
|
18941
|
-
const platformCapabilities = results.filter((item) => item.type === 'platform_capability');
|
|
18942
|
-
const allDiagnostics = results.filter((item) => item.type !== 'platform_capability').map(toCheckDiagnostic);
|
|
18943
|
-
const errors = allDiagnostics.filter(item => !item.passed && item.severity === 'error').length;
|
|
18944
|
-
const warnings = allDiagnostics.filter(item => !item.passed && item.severity === 'warning').length;
|
|
18945
|
-
const passed = allDiagnostics.filter(item => item.passed).length;
|
|
18946
|
-
return {
|
|
18947
|
-
schemaVersion: '1',
|
|
18948
|
-
operationId,
|
|
18949
|
-
command: 'check',
|
|
18950
|
-
status: errors > 0 ? 'failed' : warnings > 0 ? 'warning' : 'passed',
|
|
18951
|
-
project: { directory },
|
|
18952
|
-
summary: {
|
|
18953
|
-
total: allDiagnostics.length,
|
|
18954
|
-
passed,
|
|
18955
|
-
warnings,
|
|
18956
|
-
errors,
|
|
18957
|
-
},
|
|
18958
|
-
diagnostics: options.includePassed
|
|
18959
|
-
? allDiagnostics
|
|
18960
|
-
: allDiagnostics.filter(item => !item.passed),
|
|
18961
|
-
platformCapabilities,
|
|
18962
|
-
errorCode: errors > 0 ? 'CHECK_FAILED' : null,
|
|
18963
|
-
error: null,
|
|
18964
|
-
};
|
|
18965
|
-
}
|
|
18966
|
-
catch (error) {
|
|
18967
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
18968
|
-
return createFailedReport({
|
|
18969
|
-
operationId,
|
|
18970
|
-
directory,
|
|
18971
|
-
code: 'CHECK_EXECUTION_FAILED',
|
|
18972
|
-
message,
|
|
18973
|
-
});
|
|
18974
|
-
}
|
|
18975
|
-
}
|
|
18976
|
-
function printText(report) {
|
|
18977
|
-
const color = report.status === 'failed'
|
|
18978
|
-
? chalk.red
|
|
18979
|
-
: report.status === 'warning'
|
|
18980
|
-
? chalk.yellow
|
|
18981
|
-
: chalk.green;
|
|
18982
|
-
console.log(color.bold(t('check.summary', {
|
|
18983
|
-
status: report.status,
|
|
18984
|
-
passed: report.summary.passed,
|
|
18985
|
-
warnings: report.summary.warnings,
|
|
18986
|
-
errors: report.summary.errors,
|
|
18987
|
-
})));
|
|
18988
|
-
for (const diagnostic of report.diagnostics) {
|
|
18989
|
-
const location = diagnostic.location.file
|
|
18990
|
-
? ` (${diagnostic.location.file})`
|
|
18991
|
-
: '';
|
|
18992
|
-
console.log(`${diagnostic.severity.toUpperCase()} ${diagnostic.code}: ${diagnostic.message}${location}`);
|
|
18993
|
-
if (diagnostic.help.url)
|
|
18994
|
-
console.log(` ${diagnostic.help.url}`);
|
|
18995
|
-
}
|
|
18996
|
-
if (report.platformCapabilities?.length) {
|
|
18997
|
-
const copy = (key) => capabilityCheckText(key, getCurrentLanguage());
|
|
18998
|
-
console.log(copy('capabilityCheck.description'));
|
|
18999
|
-
for (const item of report.platformCapabilities) {
|
|
19000
|
-
console.log(`${item.name}: ${copy(`capabilityCheck.${item.status}`)}${item.reason ? ` (${copy(`capabilityCheck.${item.reason}`)})` : ''}`);
|
|
19001
|
-
for (const match of item.matches)
|
|
19002
|
-
console.log(` ${match.call} ${match.file}:${match.line}:${match.column}`);
|
|
19003
|
-
if (item.guide.url)
|
|
19004
|
-
console.log(` ${item.guide.url}`);
|
|
19005
|
-
}
|
|
19006
|
-
}
|
|
19007
|
-
}
|
|
19008
|
-
async function checkCommand(options = {}) {
|
|
19009
|
-
let format = 'text';
|
|
19010
|
-
let failOn = 'error';
|
|
19011
|
-
try {
|
|
19012
|
-
format = normalizeFormat$2(options.format);
|
|
19013
|
-
failOn = normalizeFailOn(options.failOn);
|
|
19014
|
-
}
|
|
19015
|
-
catch (error) {
|
|
19016
|
-
const report = createFailedReport({
|
|
19017
|
-
operationId: `check_${crypto.randomUUID()}`,
|
|
19018
|
-
directory: path.resolve(process.cwd(), options.dir || '.'),
|
|
19019
|
-
code: 'CHECK_INVALID_ARGUMENT',
|
|
19020
|
-
message: error instanceof Error ? error.message : String(error),
|
|
19021
|
-
});
|
|
19022
|
-
if (options.format === 'json')
|
|
19023
|
-
console.log(JSON.stringify(report));
|
|
19024
|
-
else
|
|
19025
|
-
printText(report);
|
|
19026
|
-
process.exitCode = 1;
|
|
19027
|
-
return report;
|
|
19028
|
-
}
|
|
19029
|
-
const report = await executeCheck(options);
|
|
19030
|
-
if (format === 'json')
|
|
19031
|
-
console.log(JSON.stringify(report));
|
|
19032
|
-
else
|
|
19033
|
-
printText(report);
|
|
19034
|
-
if (report.status === 'failed' ||
|
|
19035
|
-
(failOn === 'warning' && report.status === 'warning')) {
|
|
19036
|
-
process.exitCode = 1;
|
|
19037
|
-
}
|
|
19038
|
-
return report;
|
|
19039
|
-
}
|
|
19040
|
-
|
|
19041
|
-
function packageEntries(directory) {
|
|
19042
|
-
return glob.globSync('**/*', { cwd: directory, dot: true, ignore: UPLOAD_IGNORES, follow: false }).sort();
|
|
19043
|
-
}
|
|
19044
|
-
// Include ctime/inode as well as size/mtime so replacing a file with another
|
|
19045
|
-
// same-size file invalidates a report. Never follow a link outside the package.
|
|
19046
|
-
function packageFingerprint(directory) {
|
|
19047
|
-
const hash = crypto$1.createHash('sha256');
|
|
19048
|
-
for (const relative of packageEntries(directory)) {
|
|
19049
|
-
const stat = fs$1.lstatSync(path$1.join(directory, relative));
|
|
19050
|
-
if (stat.isSymbolicLink() || (!stat.isFile() && !stat.isDirectory())) {
|
|
19051
|
-
throw Object.assign(new Error('Checked packages require regular files and directories.'), { code: 'UPLOAD_CHECK_UNSUPPORTED_FILE' });
|
|
19052
|
-
}
|
|
19053
|
-
hash.update(JSON.stringify([relative, stat.isDirectory(), stat.size, stat.mtimeMs, stat.ctimeMs, stat.ino]));
|
|
19054
|
-
}
|
|
19055
|
-
return hash.digest('hex');
|
|
19056
|
-
}
|
|
19057
|
-
async function withPackageSnapshot(directory, action) {
|
|
17803
|
+
// Check and ZIP the same isolated snapshot. Source edits made while checks run
|
|
17804
|
+
// cannot silently replace the files that were checked with different content.
|
|
17805
|
+
async function prepareCheckedPackage(directory, dependencies = {
|
|
17806
|
+
check: executeCheck, zip: (dir) => zipCwdToBuffer([], dir),
|
|
17807
|
+
}) {
|
|
19058
17808
|
const snapshot = fs$1.mkdtempSync(path$1.join(os$1.tmpdir(), 'ttmg-checked-upload-'));
|
|
19059
17809
|
try {
|
|
19060
|
-
const
|
|
19061
|
-
for (const relative of packageEntries(directory)) {
|
|
17810
|
+
for (const relative of glob.globSync('**/*', { cwd: directory, dot: true, ignore: UPLOAD_IGNORES, follow: false })) {
|
|
19062
17811
|
const source = path$1.join(directory, relative);
|
|
19063
17812
|
const stat = fs$1.lstatSync(source);
|
|
19064
17813
|
if (stat.isSymbolicLink() || (!stat.isFile() && !stat.isDirectory())) {
|
|
19065
|
-
throw Object.assign(new Error('Checked
|
|
17814
|
+
throw Object.assign(new Error('Checked uploads require regular files and directories.'), { code: 'UPLOAD_CHECK_UNSUPPORTED_FILE' });
|
|
19066
17815
|
}
|
|
19067
17816
|
const target = path$1.join(snapshot, relative);
|
|
19068
17817
|
if (stat.isDirectory())
|
|
@@ -19072,42 +17821,20 @@ async function withPackageSnapshot(directory, action) {
|
|
|
19072
17821
|
fs$1.copyFileSync(source, target);
|
|
19073
17822
|
}
|
|
19074
17823
|
}
|
|
19075
|
-
if (packageFingerprint(directory) !== snapshotId) {
|
|
19076
|
-
throw Object.assign(new Error('Build files changed while taking the snapshot. Run the check again.'), { code: 'CHECK_SNAPSHOT_CHANGED' });
|
|
19077
|
-
}
|
|
19078
|
-
return await action(snapshot, snapshotId);
|
|
19079
|
-
}
|
|
19080
|
-
finally {
|
|
19081
|
-
fs$1.rmSync(snapshot, { recursive: true, force: true });
|
|
19082
|
-
}
|
|
19083
|
-
}
|
|
19084
|
-
|
|
19085
|
-
// Upload hard limits are separate from ordinary CLI diagnostic/exit thresholds.
|
|
19086
|
-
// A static capability match (or its absence) never determines upload eligibility.
|
|
19087
|
-
function isLocalUploadBlocker(item) {
|
|
19088
|
-
if (item.type === 'platform_capability' || item.passed !== false)
|
|
19089
|
-
return false;
|
|
19090
|
-
return item.type === 'size' || item.type === 'config' ||
|
|
19091
|
-
(item.level ?? item.severity ?? 'error') === 'error';
|
|
19092
|
-
}
|
|
19093
|
-
|
|
19094
|
-
// Check and ZIP the same isolated snapshot. Source edits made while checks run
|
|
19095
|
-
// cannot silently replace the files that were checked with different content.
|
|
19096
|
-
async function prepareCheckedPackage(directory, dependencies = {
|
|
19097
|
-
check: executeCheck, zip: (dir) => zipCwdToBuffer([], dir),
|
|
19098
|
-
}, options = {}) {
|
|
19099
|
-
return withPackageSnapshot(directory, async (snapshot) => {
|
|
19100
17824
|
const report = await dependencies.check({ dir: snapshot });
|
|
19101
17825
|
const remap = (file) => file?.startsWith(snapshot + path$1.sep) ? path$1.join(directory, path$1.relative(snapshot, file)) : file;
|
|
19102
17826
|
const check = { ...report, project: { directory },
|
|
19103
17827
|
diagnostics: report.diagnostics.map(item => ({ ...item, location: {
|
|
19104
17828
|
file: remap(item.location.file), files: item.location.files.map(file => remap(file)),
|
|
19105
17829
|
} })) };
|
|
19106
|
-
if (check.status === 'failed'
|
|
17830
|
+
if (check.status === 'failed')
|
|
19107
17831
|
throw Object.assign(new Error('Code checks failed; no version was created.'), { code: 'UPLOAD_CODE_CHECK_FAILED', check });
|
|
19108
17832
|
const buffer = await dependencies.zip(snapshot);
|
|
19109
17833
|
return { buffer, check };
|
|
19110
|
-
}
|
|
17834
|
+
}
|
|
17835
|
+
finally {
|
|
17836
|
+
fs$1.rmSync(snapshot, { recursive: true, force: true });
|
|
17837
|
+
}
|
|
19111
17838
|
}
|
|
19112
17839
|
|
|
19113
17840
|
const DEFAULT_POLL_INTERVAL_MS = 3000;
|
|
@@ -19636,7 +18363,7 @@ async function authStatus(options = {}) {
|
|
|
19636
18363
|
return result;
|
|
19637
18364
|
}
|
|
19638
18365
|
|
|
19639
|
-
var version = "0.4.
|
|
18366
|
+
var version = "0.4.9-alpha.0";
|
|
19640
18367
|
var engines = {
|
|
19641
18368
|
node: ">=20.19.1 <21 || >=22"
|
|
19642
18369
|
};
|
|
@@ -20411,7 +19138,6 @@ function getCapabilities() {
|
|
|
20411
19138
|
source: 'devtool-shared-catalog', projectChecked: false, deviceVerified: false,
|
|
20412
19139
|
requirementScope: 'business_guidance', platformRequirementsChecked: false,
|
|
20413
19140
|
languages: ['en-US', 'zh-CN', 'ja-JP', 'ko-KR'],
|
|
20414
|
-
modes: ['iaa', 'iap', 'iaap'],
|
|
20415
19141
|
},
|
|
20416
19142
|
skills: {
|
|
20417
19143
|
listCommand: 'ttmg skills list --format json',
|
|
@@ -20617,13 +19343,6 @@ function getCapabilities() {
|
|
|
20617
19343
|
humanAuthorizationRequired: true,
|
|
20618
19344
|
},
|
|
20619
19345
|
check: {
|
|
20620
|
-
platformCapabilities: {
|
|
20621
|
-
resultField: 'platformCapabilities',
|
|
20622
|
-
states: ['detected', 'not_detected', 'not_checked'],
|
|
20623
|
-
scope: 'static-call-evidence', executesGameCode: false, deviceVerified: false,
|
|
20624
|
-
affectsPackageVerdict: false, unityBinarySupported: false,
|
|
20625
|
-
guideSource: 'devtool-shared-catalog',
|
|
20626
|
-
},
|
|
20627
19346
|
unity: {
|
|
20628
19347
|
option: '--unity', command: 'ttmg check --unity --dir <gameDir> --format json',
|
|
20629
19348
|
available: true, schemaVersion: '1', rulesetVersion: '1.0.0', platformWrite: false,
|
|
@@ -20932,14 +19651,6 @@ program.command('integration')
|
|
|
20932
19651
|
});
|
|
20933
19652
|
const isPreviewPageServerWorker = process.argv[2] === '__preview-page-server';
|
|
20934
19653
|
const isVibePageServerWorker = process.argv[2] === '__vibe-page-server';
|
|
20935
|
-
const showVibeHelp = process.argv.includes('--vibe');
|
|
20936
|
-
const vibeHelpHint = {
|
|
20937
|
-
'en-US': '\nVibe PPE trial options: ttmg upload --vibe --help\n',
|
|
20938
|
-
'zh-CN': '\nVibe PPE 试用参数:ttmg upload --vibe --help\n',
|
|
20939
|
-
'ja-JP': '\nVibe PPE 試用のオプション: ttmg upload --vibe --help\n',
|
|
20940
|
-
'ko-KR': '\nVibe PPE 체험 옵션: ttmg upload --vibe --help\n',
|
|
20941
|
-
};
|
|
20942
|
-
const vibeOption = (flags, description) => new commander.Option(flags, description).hideHelp(!showVibeHelp);
|
|
20943
19654
|
const wasmArgumentIndex = process.argv.indexOf('wasm', 2);
|
|
20944
19655
|
const isWasmCollectCommand = wasmArgumentIndex >= 2 && process.argv[wasmArgumentIndex + 1] === 'collect';
|
|
20945
19656
|
const withVerboseOption = (command) => command.option('--verbose', t('cli.option.verbose'));
|
|
@@ -21051,25 +19762,25 @@ withVerboseOption(program
|
|
|
21051
19762
|
.option('--serve-preview-page', t('cli.command.upload.servePreviewPage'))
|
|
21052
19763
|
.option('--no-open', t('cli.command.upload.noOpen'))
|
|
21053
19764
|
.option('--vibe', t('cli.command.upload.vibe'))
|
|
21054
|
-
.
|
|
19765
|
+
.option('--minis-type <type>', t('cli.command.upload.minisType'))
|
|
21055
19766
|
.addOption(new commander.Option('--web', t('cli.command.upload.vibeWeb')).hideHelp())
|
|
21056
19767
|
// Vibe v2 backend selection (including opt-in ppe-mock) stays outside the Skill workflow.
|
|
21057
|
-
.
|
|
21058
|
-
.
|
|
21059
|
-
.
|
|
21060
|
-
.
|
|
21061
|
-
.
|
|
19768
|
+
.option('--title <title>', t('cli.command.upload.vibeTitle'))
|
|
19769
|
+
.option('--description <description>', t('cli.command.upload.vibeDescription'))
|
|
19770
|
+
.option('--icon <path>', t('cli.command.upload.vibeIcon'))
|
|
19771
|
+
.option('--category <category>', t('cli.command.upload.vibeCategory'))
|
|
19772
|
+
.option('--subcategory <subcategory>', t('cli.command.upload.vibeSubcategory'))
|
|
21062
19773
|
.addOption(new commander.Option('--app-info <path>', t('cli.command.upload.vibeAppInfo')).hideHelp())
|
|
21063
|
-
.
|
|
21064
|
-
.
|
|
21065
|
-
.
|
|
21066
|
-
.
|
|
21067
|
-
.
|
|
21068
|
-
.
|
|
21069
|
-
.
|
|
21070
|
-
.
|
|
19774
|
+
.option('--package <path>', t('cli.command.upload.vibePackage'))
|
|
19775
|
+
.option('--dry-run', t('cli.command.upload.vibeDryRun'))
|
|
19776
|
+
.option('--mock', t('cli.command.upload.vibeMock'))
|
|
19777
|
+
.option('--mock-scenario <scenario>', t('cli.command.upload.vibeScenario'))
|
|
19778
|
+
.option('--vibe-api <url>', t('cli.command.upload.vibeApi'))
|
|
19779
|
+
.option('--vibe-authorize-url <url>', t('cli.command.upload.vibeAuthorizeUrl'))
|
|
19780
|
+
.option('--poll-interval <seconds>', t('cli.command.upload.vibePollInterval'))
|
|
19781
|
+
.option('--timeout <seconds>', t('cli.command.upload.vibeTimeout'))
|
|
21071
19782
|
.option('--format <format>', t('cli.command.upload.format'), 'text')
|
|
21072
|
-
.addHelpText('after',
|
|
19783
|
+
.addHelpText('after', t('cli.command.upload.vibeWebGuide'))).action(async (cmd, command) => {
|
|
21073
19784
|
const uploadOptions = { ...command.optsWithGlobals(), ...cmd };
|
|
21074
19785
|
if (uploadOptions.vibe) {
|
|
21075
19786
|
const { vibeUpload } = await Promise.resolve().then(function () { return index$1; });
|
|
@@ -21514,6 +20225,1036 @@ else {
|
|
|
21514
20225
|
program.parse(process.argv);
|
|
21515
20226
|
}
|
|
21516
20227
|
|
|
20228
|
+
const capabilityMetadataList = [
|
|
20229
|
+
{
|
|
20230
|
+
key: 'login',
|
|
20231
|
+
icon: '🔐',
|
|
20232
|
+
titleKey: 'ia.menu.login',
|
|
20233
|
+
summaryKey: 'ia.login.summary',
|
|
20234
|
+
sceneKey: 'scene_scan_qrcode',
|
|
20235
|
+
apiTags: ['tt.login', 'auth_code', 'user.info.open_id'],
|
|
20236
|
+
highlightKeys: ['ia.login.highlight1', 'ia.login.highlight2'],
|
|
20237
|
+
prerequisiteKeys: ['ia.login.prerequisite1', 'ia.login.prerequisite2'],
|
|
20238
|
+
stepKeys: ['ia.login.step1', 'ia.login.step2', 'ia.login.step3'],
|
|
20239
|
+
tipKeys: ['ia.login.requirementScope', 'ia.login.tip1', 'ia.login.tip2'],
|
|
20240
|
+
actions: [
|
|
20241
|
+
{
|
|
20242
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20243
|
+
type: 'external',
|
|
20244
|
+
href: 'https://bytedance.sg.larkoffice.com/docx/CG6wdxffcouMY3xIqQTlDEyWgBe?302from=wiki',
|
|
20245
|
+
target: '_blank',
|
|
20246
|
+
theme: 'solid',
|
|
20247
|
+
},
|
|
20248
|
+
],
|
|
20249
|
+
},
|
|
20250
|
+
{
|
|
20251
|
+
key: 'authorize',
|
|
20252
|
+
icon: '🛂',
|
|
20253
|
+
titleKey: 'ia.menu.authorize',
|
|
20254
|
+
summaryKey: 'ia.authorize.summary',
|
|
20255
|
+
sceneKey: 'scene_scan_qrcode',
|
|
20256
|
+
apiTags: ['tt.authorize', 'user.info.basic', 'access_token'],
|
|
20257
|
+
highlightKeys: ['ia.authorize.highlight1', 'ia.authorize.highlight2'],
|
|
20258
|
+
prerequisiteKeys: ['ia.authorize.prerequisite1', 'ia.authorize.prerequisite2'],
|
|
20259
|
+
stepKeys: ['ia.authorize.step1', 'ia.authorize.step2', 'ia.authorize.step3'],
|
|
20260
|
+
tipKeys: ['ia.authorize.tip1', 'ia.authorize.tip2'],
|
|
20261
|
+
actions: [
|
|
20262
|
+
{
|
|
20263
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20264
|
+
type: 'external',
|
|
20265
|
+
href: 'https://bytedance.sg.larkoffice.com/docx/CewRdCPcCoxcKFxBTftlRXnSgOc',
|
|
20266
|
+
target: '_blank',
|
|
20267
|
+
theme: 'solid',
|
|
20268
|
+
},
|
|
20269
|
+
{ labelKey: 'ia.action.goProjectDetail', type: 'route', path: '/project_overview' },
|
|
20270
|
+
],
|
|
20271
|
+
},
|
|
20272
|
+
{
|
|
20273
|
+
key: 'payment',
|
|
20274
|
+
icon: '💳',
|
|
20275
|
+
titleKey: 'ia.menu.payment',
|
|
20276
|
+
summaryKey: 'ia.payment.summary',
|
|
20277
|
+
sceneKey: 'scene_scan_qrcode',
|
|
20278
|
+
apiTags: ['IAP Mock', 'TikTok Beans', 'order verify'],
|
|
20279
|
+
highlightKeys: ['ia.payment.highlight1', 'ia.payment.highlight2'],
|
|
20280
|
+
prerequisiteKeys: ['ia.payment.prerequisite1', 'ia.payment.prerequisite2'],
|
|
20281
|
+
stepKeys: ['ia.payment.step1', 'ia.payment.step2', 'ia.payment.step3'],
|
|
20282
|
+
tipKeys: ['ia.payment.tip1', 'ia.payment.tip2'],
|
|
20283
|
+
actions: [
|
|
20284
|
+
{
|
|
20285
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20286
|
+
type: 'external',
|
|
20287
|
+
href: 'https://bytedance.sg.larkoffice.com/docx/MYsLdpeGGoulzDxZ6VelG8Gggoe?302from=wiki',
|
|
20288
|
+
target: '_blank',
|
|
20289
|
+
theme: 'solid',
|
|
20290
|
+
},
|
|
20291
|
+
{ labelKey: 'ia.action.goPrecheck', type: 'route', path: '/upload_publish' },
|
|
20292
|
+
],
|
|
20293
|
+
},
|
|
20294
|
+
{
|
|
20295
|
+
key: 'ad',
|
|
20296
|
+
icon: '📺',
|
|
20297
|
+
titleKey: 'ia.menu.ad',
|
|
20298
|
+
summaryKey: 'ia.ad.summary',
|
|
20299
|
+
sceneKey: 'scene_ad',
|
|
20300
|
+
apiTags: ['createRewardedVideoAd', 'createInterstitialAd', 'placement id'],
|
|
20301
|
+
highlightKeys: ['ia.ad.highlight1', 'ia.ad.highlight2'],
|
|
20302
|
+
prerequisiteKeys: ['ia.ad.prerequisite1', 'ia.ad.prerequisite2'],
|
|
20303
|
+
stepKeys: ['ia.ad.step1', 'ia.ad.step2', 'ia.ad.step3'],
|
|
20304
|
+
tipKeys: ['ia.ad.tip1', 'ia.ad.tip2'],
|
|
20305
|
+
actions: [
|
|
20306
|
+
{
|
|
20307
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20308
|
+
type: 'external',
|
|
20309
|
+
href: 'https://bytedance.larkoffice.com/wiki/JTEiw409LiLkUSk2SltcsAqonkg',
|
|
20310
|
+
target: '_blank',
|
|
20311
|
+
theme: 'solid',
|
|
20312
|
+
},
|
|
20313
|
+
{ labelKey: 'ia.action.goPrecheck', type: 'route', path: '/upload_publish' },
|
|
20314
|
+
],
|
|
20315
|
+
},
|
|
20316
|
+
{
|
|
20317
|
+
key: 'ui_adaptation',
|
|
20318
|
+
icon: '📱',
|
|
20319
|
+
titleKey: 'ia.menu.uiAdaptation',
|
|
20320
|
+
summaryKey: 'ia.uiAdaptation.summary',
|
|
20321
|
+
apiTags: ['safeArea', 'screen adaptation', 'capsule button'],
|
|
20322
|
+
highlightKeys: ['ia.uiAdaptation.highlight1', 'ia.uiAdaptation.highlight2'],
|
|
20323
|
+
prerequisiteKeys: ['ia.uiAdaptation.prerequisite1', 'ia.uiAdaptation.prerequisite2'],
|
|
20324
|
+
stepKeys: ['ia.uiAdaptation.step1', 'ia.uiAdaptation.step2', 'ia.uiAdaptation.step3'],
|
|
20325
|
+
tipKeys: ['ia.uiAdaptation.tip1', 'ia.uiAdaptation.tip2'],
|
|
20326
|
+
actions: [
|
|
20327
|
+
{
|
|
20328
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20329
|
+
type: 'external',
|
|
20330
|
+
href: 'https://bytedance.larkoffice.com/docx/Zes2dVS3ooIm55x67OhcXTxWnud',
|
|
20331
|
+
target: '_blank',
|
|
20332
|
+
theme: 'solid',
|
|
20333
|
+
},
|
|
20334
|
+
],
|
|
20335
|
+
},
|
|
20336
|
+
{
|
|
20337
|
+
key: 'share_message',
|
|
20338
|
+
icon: '🔗',
|
|
20339
|
+
titleKey: 'ia.menu.shareMessage',
|
|
20340
|
+
summaryKey: 'ia.shareMessage.summary',
|
|
20341
|
+
apiTags: ['shareAppMessage', 'query', 'game basic info'],
|
|
20342
|
+
highlightKeys: ['ia.shareMessage.highlight1', 'ia.shareMessage.highlight2'],
|
|
20343
|
+
prerequisiteKeys: ['ia.shareMessage.prerequisite1', 'ia.shareMessage.prerequisite2'],
|
|
20344
|
+
stepKeys: ['ia.shareMessage.step1', 'ia.shareMessage.step2', 'ia.shareMessage.step3'],
|
|
20345
|
+
tipKeys: ['ia.shareMessage.tip1', 'ia.shareMessage.tip2'],
|
|
20346
|
+
actions: [
|
|
20347
|
+
{
|
|
20348
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20349
|
+
type: 'external',
|
|
20350
|
+
href: 'https://bytedance.sg.larkoffice.com/docx/CesGdxcyJorqE1xIuf3lAXEhguh',
|
|
20351
|
+
target: '_blank',
|
|
20352
|
+
theme: 'solid',
|
|
20353
|
+
},
|
|
20354
|
+
],
|
|
20355
|
+
},
|
|
20356
|
+
{
|
|
20357
|
+
key: 'share_story',
|
|
20358
|
+
icon: '📣',
|
|
20359
|
+
titleKey: 'ia.menu.shareStory',
|
|
20360
|
+
summaryKey: 'ia.shareStory.summary',
|
|
20361
|
+
hidden: true,
|
|
20362
|
+
apiTags: ['shareToStory', 'query', 'story asset'],
|
|
20363
|
+
highlightKeys: ['ia.shareStory.highlight1', 'ia.shareStory.highlight2'],
|
|
20364
|
+
prerequisiteKeys: ['ia.shareStory.prerequisite1', 'ia.shareStory.prerequisite2'],
|
|
20365
|
+
stepKeys: ['ia.shareStory.step1', 'ia.shareStory.step2', 'ia.shareStory.step3'],
|
|
20366
|
+
tipKeys: ['ia.shareStory.tip1', 'ia.shareStory.tip2'],
|
|
20367
|
+
actions: [],
|
|
20368
|
+
},
|
|
20369
|
+
{
|
|
20370
|
+
key: 'subpackage',
|
|
20371
|
+
icon: '📦',
|
|
20372
|
+
titleKey: 'ia.menu.subpackage',
|
|
20373
|
+
summaryKey: 'ia.subpackage.summary',
|
|
20374
|
+
apiTags: ['preDownloadSubpackage', 'loadSubpackage', 'loadSubpackageSync'],
|
|
20375
|
+
highlightKeys: ['ia.subpackage.highlight1', 'ia.subpackage.highlight2'],
|
|
20376
|
+
prerequisiteKeys: ['ia.subpackage.prerequisite1', 'ia.subpackage.prerequisite2'],
|
|
20377
|
+
stepKeys: ['ia.subpackage.step1', 'ia.subpackage.step2', 'ia.subpackage.step3'],
|
|
20378
|
+
tipKeys: ['ia.subpackage.tip1', 'ia.subpackage.tip2'],
|
|
20379
|
+
actions: [
|
|
20380
|
+
{ labelKey: 'ia.action.openCapabilityDoc', type: 'external', href: 'https://developers.tiktok.com/docs/en/mini-games-sdk-subpackage-loading', target: '_blank' },
|
|
20381
|
+
{ labelKey: 'ia.action.goSubpackageCollect', type: 'route', path: '/subpackage_collect' },
|
|
20382
|
+
],
|
|
20383
|
+
},
|
|
20384
|
+
{
|
|
20385
|
+
key: 'network',
|
|
20386
|
+
icon: '🌐',
|
|
20387
|
+
titleKey: 'ia.menu.network',
|
|
20388
|
+
summaryKey: 'ia.network.summary',
|
|
20389
|
+
apiTags: ['request', 'downloadFile', 'connectSocket'],
|
|
20390
|
+
highlightKeys: ['ia.network.highlight1', 'ia.network.highlight2'],
|
|
20391
|
+
prerequisiteKeys: ['ia.network.prerequisite1', 'ia.network.prerequisite2'],
|
|
20392
|
+
stepKeys: ['ia.network.step1', 'ia.network.step2', 'ia.network.step3'],
|
|
20393
|
+
tipKeys: ['ia.network.tip1', 'ia.network.tip2'],
|
|
20394
|
+
actions: [
|
|
20395
|
+
{ labelKey: 'ia.action.openCapabilityDoc', type: 'external', href: 'https://developers.tiktok.com/docs/en/mini-games-sdk-network-request', target: '_blank' },
|
|
20396
|
+
{ labelKey: 'ia.action.goNetworkDiagnostics', type: 'route', path: '/network_diagnostics' },
|
|
20397
|
+
],
|
|
20398
|
+
},
|
|
20399
|
+
{
|
|
20400
|
+
key: 'sidebar_revisit',
|
|
20401
|
+
icon: '🧭',
|
|
20402
|
+
titleKey: 'ia.menu.sidebarRevisit',
|
|
20403
|
+
summaryKey: 'ia.sidebar.summary',
|
|
20404
|
+
sceneKey: 'scene_center',
|
|
20405
|
+
apiTags: ['startEntranceMission', 'getEntranceMissionReward', 'canIUse'],
|
|
20406
|
+
highlightKeys: ['ia.sidebar.highlight1', 'ia.sidebar.highlight2'],
|
|
20407
|
+
prerequisiteKeys: ['ia.sidebar.prerequisite1', 'ia.sidebar.prerequisite2'],
|
|
20408
|
+
stepKeys: ['ia.sidebar.step1', 'ia.sidebar.step2', 'ia.sidebar.step3'],
|
|
20409
|
+
tipKeys: ['ia.sidebar.tip1', 'ia.sidebar.tip2'],
|
|
20410
|
+
actions: [
|
|
20411
|
+
{
|
|
20412
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20413
|
+
type: 'external',
|
|
20414
|
+
href: 'https://bytedance.larkoffice.com/wiki/Pl9Jwg8ujiZp6ckhhQzcujujnfb',
|
|
20415
|
+
target: '_blank',
|
|
20416
|
+
theme: 'solid',
|
|
20417
|
+
},
|
|
20418
|
+
{ labelKey: 'ia.action.goLaunchMode', type: 'route', path: '/launch_mode' },
|
|
20419
|
+
],
|
|
20420
|
+
},
|
|
20421
|
+
{
|
|
20422
|
+
key: 'shortcut_revisit',
|
|
20423
|
+
icon: '📌',
|
|
20424
|
+
titleKey: 'ia.menu.shortcutRevisit',
|
|
20425
|
+
summaryKey: 'ia.shortcut.summary',
|
|
20426
|
+
sceneKey: 'scene_shortcut',
|
|
20427
|
+
apiTags: ['addShortcut', 'getShortcutMissionReward', 'canIUse'],
|
|
20428
|
+
highlightKeys: ['ia.shortcut.highlight1', 'ia.shortcut.highlight2'],
|
|
20429
|
+
prerequisiteKeys: ['ia.shortcut.prerequisite1', 'ia.shortcut.prerequisite2'],
|
|
20430
|
+
stepKeys: ['ia.shortcut.step1', 'ia.shortcut.step2', 'ia.shortcut.step3'],
|
|
20431
|
+
tipKeys: ['ia.shortcut.tip1', 'ia.shortcut.tip2'],
|
|
20432
|
+
actions: [
|
|
20433
|
+
{
|
|
20434
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20435
|
+
type: 'external',
|
|
20436
|
+
href: 'https://bytedance.larkoffice.com/wiki/AW4JwueaXiiKtTkK0c9cIo4lnud',
|
|
20437
|
+
target: '_blank',
|
|
20438
|
+
theme: 'solid',
|
|
20439
|
+
},
|
|
20440
|
+
{ labelKey: 'ia.action.goLaunchMode', type: 'route', path: '/launch_mode' },
|
|
20441
|
+
],
|
|
20442
|
+
},
|
|
20443
|
+
{
|
|
20444
|
+
key: 'direct_play_card',
|
|
20445
|
+
icon: '🎯',
|
|
20446
|
+
titleKey: 'ia.menu.directPlayCard',
|
|
20447
|
+
summaryKey: 'ia.directPlay.summary',
|
|
20448
|
+
sceneKey: 'scene_fyf_promotion_direct_feed_play',
|
|
20449
|
+
experimentOnly: true,
|
|
20450
|
+
apiTags: ['Play now', 'For You Feed', 'revisit'],
|
|
20451
|
+
highlightKeys: ['ia.directPlay.highlight1', 'ia.directPlay.highlight2'],
|
|
20452
|
+
prerequisiteKeys: ['ia.directPlay.prerequisite1', 'ia.directPlay.prerequisite2'],
|
|
20453
|
+
stepKeys: ['ia.directPlay.step1', 'ia.directPlay.step2', 'ia.directPlay.step3'],
|
|
20454
|
+
tipKeys: ['ia.directPlay.tip1', 'ia.directPlay.tip2'],
|
|
20455
|
+
actions: [
|
|
20456
|
+
{
|
|
20457
|
+
labelKey: 'ia.action.openCapabilityDoc',
|
|
20458
|
+
type: 'external',
|
|
20459
|
+
href: 'https://bytedance.sg.larkoffice.com/docx/VZ3odoD8DoSxFXxANh5lLxVMgPx',
|
|
20460
|
+
target: '_blank',
|
|
20461
|
+
theme: 'solid',
|
|
20462
|
+
},
|
|
20463
|
+
],
|
|
20464
|
+
},
|
|
20465
|
+
// Wasm code split is a Unity-only performance optimization that
|
|
20466
|
+
// already owns the full `/wasm_split` route (loading → prepare →
|
|
20467
|
+
// collect → split → rollback). We surface it here as a capability
|
|
20468
|
+
// card under the new 性能优化 section, but the card's `customPath`
|
|
20469
|
+
// sends users straight to the live workflow instead of the
|
|
20470
|
+
// auto-generated empty detail page.
|
|
20471
|
+
{
|
|
20472
|
+
key: 'wasm_split',
|
|
20473
|
+
icon: '🧩',
|
|
20474
|
+
titleKey: 'ia.menu.wasmSplit',
|
|
20475
|
+
summaryKey: 'ia.wasmSplit.summary',
|
|
20476
|
+
apiTags: ['Unity', 'Wasm'],
|
|
20477
|
+
highlightKeys: [],
|
|
20478
|
+
prerequisiteKeys: [],
|
|
20479
|
+
stepKeys: [],
|
|
20480
|
+
tipKeys: [],
|
|
20481
|
+
actions: [],
|
|
20482
|
+
customPath: '/wasm_split',
|
|
20483
|
+
},
|
|
20484
|
+
];
|
|
20485
|
+
const capabilityMetadataMap = capabilityMetadataList.reduce((acc, item) => {
|
|
20486
|
+
acc[item.key] = item;
|
|
20487
|
+
return acc;
|
|
20488
|
+
}, {});
|
|
20489
|
+
|
|
20490
|
+
const monetizationModes = [
|
|
20491
|
+
{
|
|
20492
|
+
key: 'iaa',
|
|
20493
|
+
titleKey: 'ia.monetization.mode.iaa.title',
|
|
20494
|
+
summaryKey: 'ia.monetization.mode.iaa.summary',
|
|
20495
|
+
descriptionKey: 'ia.monetization.mode.iaa.desc',
|
|
20496
|
+
capabilityKeys: ['login', 'authorize', 'ad'],
|
|
20497
|
+
capabilityRequirementMap: {
|
|
20498
|
+
login: 'conditional',
|
|
20499
|
+
authorize: 'optional',
|
|
20500
|
+
ad: 'required',
|
|
20501
|
+
},
|
|
20502
|
+
supportCapabilityKeys: ['network', 'sidebar_revisit', 'shortcut_revisit'],
|
|
20503
|
+
experimentalCapabilityKeys: ['direct_play_card'],
|
|
20504
|
+
},
|
|
20505
|
+
{
|
|
20506
|
+
key: 'iap',
|
|
20507
|
+
titleKey: 'ia.monetization.mode.iap.title',
|
|
20508
|
+
summaryKey: 'ia.monetization.mode.iap.summary',
|
|
20509
|
+
descriptionKey: 'ia.monetization.mode.iap.desc',
|
|
20510
|
+
capabilityKeys: ['login', 'authorize', 'payment'],
|
|
20511
|
+
capabilityRequirementMap: {
|
|
20512
|
+
login: 'required',
|
|
20513
|
+
authorize: 'optional',
|
|
20514
|
+
payment: 'required',
|
|
20515
|
+
},
|
|
20516
|
+
supportCapabilityKeys: ['network', 'sidebar_revisit', 'shortcut_revisit'],
|
|
20517
|
+
experimentalCapabilityKeys: ['direct_play_card'],
|
|
20518
|
+
},
|
|
20519
|
+
{
|
|
20520
|
+
key: 'iaap',
|
|
20521
|
+
titleKey: 'ia.monetization.mode.iaap.title',
|
|
20522
|
+
summaryKey: 'ia.monetization.mode.iaap.summary',
|
|
20523
|
+
descriptionKey: 'ia.monetization.mode.iaap.desc',
|
|
20524
|
+
capabilityKeys: ['login', 'authorize', 'ad', 'payment'],
|
|
20525
|
+
capabilityRequirementMap: {
|
|
20526
|
+
login: 'required',
|
|
20527
|
+
authorize: 'optional',
|
|
20528
|
+
ad: 'required',
|
|
20529
|
+
payment: 'required',
|
|
20530
|
+
},
|
|
20531
|
+
supportCapabilityKeys: ['network', 'sidebar_revisit', 'shortcut_revisit'],
|
|
20532
|
+
experimentalCapabilityKeys: ['direct_play_card'],
|
|
20533
|
+
},
|
|
20534
|
+
];
|
|
20535
|
+
const monetizationModeMap = monetizationModes.reduce((result, mode) => {
|
|
20536
|
+
result[mode.key] = mode;
|
|
20537
|
+
return result;
|
|
20538
|
+
}, {});
|
|
20539
|
+
const fixedOverviewSections = [
|
|
20540
|
+
{
|
|
20541
|
+
key: 'growth',
|
|
20542
|
+
titleKey: 'ia.overview.section.growth.title',
|
|
20543
|
+
descriptionKey: 'ia.overview.section.growth.desc',
|
|
20544
|
+
capabilityKeys: ['sidebar_revisit', 'shortcut_revisit', 'direct_play_card'],
|
|
20545
|
+
capabilityRequirementMap: {
|
|
20546
|
+
sidebar_revisit: 'conditional',
|
|
20547
|
+
shortcut_revisit: 'conditional',
|
|
20548
|
+
direct_play_card: 'experimental',
|
|
20549
|
+
},
|
|
20550
|
+
sectionClassName: 'integration-assistant-map-section-growth',
|
|
20551
|
+
gridClassName: 'integration-assistant-map-section-grid-two',
|
|
20552
|
+
defaultCollapsed: true,
|
|
20553
|
+
},
|
|
20554
|
+
// 性能优化 moved out of IA to its own top-level sidebar destination
|
|
20555
|
+
// (`/performance`). The capability still lives in `capabilityMetadataList`
|
|
20556
|
+
// below so router-based deep links (`/integration_assistant/wasm_split`)
|
|
20557
|
+
// keep redirecting to `/wasm_split` via `customPath`, but no IA section
|
|
20558
|
+
// surfaces the card anymore — perf tools are their own page now.
|
|
20559
|
+
{
|
|
20560
|
+
key: 'share',
|
|
20561
|
+
titleKey: 'ia.overview.section.share.title',
|
|
20562
|
+
descriptionKey: 'ia.overview.section.share.desc',
|
|
20563
|
+
capabilityKeys: ['share_message', 'share_story'],
|
|
20564
|
+
capabilityRequirementMap: {
|
|
20565
|
+
share_message: 'recommended',
|
|
20566
|
+
},
|
|
20567
|
+
sectionClassName: 'integration-assistant-map-section-share',
|
|
20568
|
+
gridClassName: 'integration-assistant-map-section-grid-two',
|
|
20569
|
+
defaultCollapsed: true,
|
|
20570
|
+
},
|
|
20571
|
+
{
|
|
20572
|
+
key: 'foundation',
|
|
20573
|
+
titleKey: 'ia.overview.section.foundation.title',
|
|
20574
|
+
descriptionKey: 'ia.overview.section.foundation.desc',
|
|
20575
|
+
capabilityKeys: ['ui_adaptation', 'subpackage', 'network'],
|
|
20576
|
+
capabilityRequirementMap: {
|
|
20577
|
+
ui_adaptation: 'recommended',
|
|
20578
|
+
subpackage: 'basic',
|
|
20579
|
+
network: 'basic',
|
|
20580
|
+
},
|
|
20581
|
+
sectionClassName: 'integration-assistant-map-section-foundation',
|
|
20582
|
+
gridClassName: 'integration-assistant-map-section-grid-two',
|
|
20583
|
+
defaultCollapsed: true,
|
|
20584
|
+
},
|
|
20585
|
+
];
|
|
20586
|
+
|
|
20587
|
+
var messages = {
|
|
20588
|
+
"en-US": {
|
|
20589
|
+
"ia.action.goLaunchMode": "Open Launch mode",
|
|
20590
|
+
"ia.action.goSubpackageCollect": "Open Subpackage Collection",
|
|
20591
|
+
"ia.action.goNetworkDiagnostics": "Open Network Diagnostics",
|
|
20592
|
+
"ia.action.goPrecheck": "Open Code pre-check",
|
|
20593
|
+
"ia.action.goProjectDetail": "Open Project detail",
|
|
20594
|
+
"ia.action.openCapabilityDoc": "Detailed guide",
|
|
20595
|
+
"ia.ad.highlight1": "Enable IAA and create placements first, then debug code paths; unreleased apps often cannot even finish placement setup.",
|
|
20596
|
+
"ia.ad.highlight2": "Rewarded video needs accurate post-play rewards, while interstitials need strict pacing and low disruption.",
|
|
20597
|
+
"ia.ad.prerequisite1": "Complete business verification and contract signing first, then enable In-App Ads in Monetization. Unreleased apps are usually blocked from creating usable ad placements.",
|
|
20598
|
+
"ia.ad.prerequisite2": "For U.S. / EU launch, start Sensitive Data, USDS / TPRM, and related compliance work early, and prepare both IAA Mock and real-device verification paths.",
|
|
20599
|
+
"ia.ad.step1": "Confirm IAA is enabled and the app is already released, then go to Ad placements and create the required placement ids.",
|
|
20600
|
+
"ia.ad.step2": "In business code, integrate ad instance creation, load, show, and callback handling, and separately verify rewarded-video and interstitial success, failure, and close branches.",
|
|
20601
|
+
"ia.ad.step3": "Focus the final regression on reward accuracy, frequency control, and experience boundaries: rewarded video should grant rewards only after full playback, and interstitials need at least a 60-second gap between triggers.",
|
|
20602
|
+
"ia.ad.summary": "IAA ads cover rewarded video and interstitial formats, and the core chain is enablement, ad-placement creation, ad load/show, and close / reward callback handling without damaging the core experience.",
|
|
20603
|
+
"ia.ad.tip1": "Make reward delivery idempotent so repeated callbacks, page switches, or re-entry do not cause duplicate rewards.",
|
|
20604
|
+
"ia.ad.tip2": "Do not force ads into initialization, tutorial, or other high-frequency paths. If platform compliance or release gating is still blocked, fix that first.",
|
|
20605
|
+
"ia.authorize.highlight1": "The key is not direct client-side profile access, but explicit extra-scope consent after `login`.",
|
|
20606
|
+
"ia.authorize.highlight2": "Nickname, avatar, and other profile data should ultimately be fetched by the backend with `access_token`, not returned in one client call.",
|
|
20607
|
+
"ia.authorize.prerequisite1": "Fill in Terms URL and Privacy URL in Project detail first, and make sure the `login` flow can already exchange for `open_id/access_token` reliably.",
|
|
20608
|
+
"ia.authorize.prerequisite2": "Define scopes from real business needs. Do not assume profile fields such as nickname or avatar come directly from the client; they should come from backend OpenAPI calls after consent.",
|
|
20609
|
+
"ia.authorize.step1": "Use `tt.login` to get the one-time `auth_code`, then exchange it on your backend for `open_id` / `access_token` so the base identity state is ready.",
|
|
20610
|
+
"ia.authorize.step2": "Call `tt.authorize` only in flows that truly need extra profile data or permissions, for example `scope: 'user.info.basic'`, and cover first-consent, reject, and re-entry branches.",
|
|
20611
|
+
"ia.authorize.step3": "After the user agrees, let the backend call OpenAPI with `access_token`, then verify the returned scopes, profile fields, and fallback behavior all match the business path.",
|
|
20612
|
+
"ia.authorize.summary": "Authorization asks users for extra scopes such as `user.info.basic` after `login` has already established base identity, then lets your backend use `access_token` to fetch profile data or complete permission checks.",
|
|
20613
|
+
"ia.authorize.tip1": "Do not collapse authorization into login. `login` establishes identity, while `authorize` requests extra scopes, so their failure handling should stay separate.",
|
|
20614
|
+
"ia.authorize.tip2": "Do not block the default flow on non-essential permissions. If users reject consent, the base flow should still work and there should be a clear re-trigger entry.",
|
|
20615
|
+
"ia.directPlay.highlight1": "It reaches users in Feed with a previously played game card, and the main CTA is `Play now`.",
|
|
20616
|
+
"ia.directPlay.highlight2": "It works well as a shared reproduction path for growth, delivery, and QA when recalling high-value users.",
|
|
20617
|
+
"ia.directPlay.prerequisite1": "Stage 1 only focuses on the mini game package runtime. TT Feed presentation, forced insertion, and the `Play now` handoff are out of scope there.",
|
|
20618
|
+
"ia.directPlay.prerequisite2": "Before moving into stage 2, make sure package launch, first-screen loading, and the core in-game path are already stable under the direct-play scene.",
|
|
20619
|
+
"ia.directPlay.step1": "Open Launch mode, choose the direct-play scene, and save a dedicated mode for package debugging.",
|
|
20620
|
+
"ia.directPlay.step2": "Return to Home and scan to launch. Verify that the package can enter reliably and complete the basic in-game flow under that scene.",
|
|
20621
|
+
"ia.directPlay.step3": "Only after the package itself is stable should you come back here to validate the direct-play card presentation and handoff with a preview QR code, then manage the same card's live status.",
|
|
20622
|
+
"ia.directPlay.summary": "Direct-play debugging is best split into three stages: first verify the mini game package itself, then use a preview QR code to validate the card presentation and handoff path, and finally manage the verified card's live status.",
|
|
20623
|
+
"ia.directPlay.tip1": "If stage 1 fails, debug it like a normal package/runtime issue first instead of attributing it to Feed presentation or delivery logic too early.",
|
|
20624
|
+
"ia.directPlay.tip2": "When stage 2 fails, separate package runtime issues from card configuration, asset, or handoff-path issues; stage 3 only manages the live status of the card already verified in stage 2.",
|
|
20625
|
+
"ia.login.highlight1": "The core output is an `auth_code`, which your backend exchanges for `open_id` / session state.",
|
|
20626
|
+
"ia.login.highlight2": "`login` and `authorize` are different paths: `login` establishes identity, while `authorize` requests extra scopes.",
|
|
20627
|
+
"ia.login.prerequisite1": "Make sure the active `client_key` matches the terminal debug configuration and is injected correctly into the `tt.login` call path at runtime.",
|
|
20628
|
+
"ia.login.prerequisite2": "Your backend should already expose the code-exchange API for `auth_code` -> `open_id` / session, with clear retry, error-code, and session-expiration handling.",
|
|
20629
|
+
"ia.login.requirementScope": "Business login depends on whether the game needs an account or backend session. Platform upload checks may separately require Login API integration; this checklist does not waive those checks. Verify the login flow on a device when used.",
|
|
20630
|
+
"ia.login.step1": "Call `tt.login` (or your business wrapper) from the business page and confirm the client can return a stable `auth_code`.",
|
|
20631
|
+
"ia.login.step2": "Send the `auth_code` to your backend and verify the `open_id` / session exchange, session persistence, and downstream request propagation all work correctly.",
|
|
20632
|
+
"ia.login.step3": "Cover user cancel, network failure, expired `auth_code`, and backend exchange failure branches, then confirm the UI fallback and retry strategy are usable.",
|
|
20633
|
+
"ia.login.summary": "Login is the mini game identity capability. It gets an `auth_code` on the client, then your backend exchanges that code for `open_id` / session state.",
|
|
20634
|
+
"ia.login.tip1": "Get the main `auth_code -> open_id / session` path stable first, then expand into profile, analytics, or other business flows that depend on login state.",
|
|
20635
|
+
"ia.login.tip2": "In the current SDK, `login` defaults to `user.info.open_id`. If you need more user data or extra scopes, request them separately in `authorize`.",
|
|
20636
|
+
"ia.menu.ad": "Ads",
|
|
20637
|
+
"ia.menu.authorize": "Authorization",
|
|
20638
|
+
"ia.menu.directPlayCard": "Direct play card",
|
|
20639
|
+
"ia.menu.login": "Login",
|
|
20640
|
+
"ia.menu.network": "Network and realtime",
|
|
20641
|
+
"ia.menu.payment": "Payment",
|
|
20642
|
+
"ia.menu.shareMessage": "In-app message share",
|
|
20643
|
+
"ia.menu.shareStory": "Share to Story",
|
|
20644
|
+
"ia.menu.shortcutRevisit": "Shortcut revisit",
|
|
20645
|
+
"ia.menu.sidebarRevisit": "Sidebar revisit",
|
|
20646
|
+
"ia.menu.subpackage": "Subpackage and preload",
|
|
20647
|
+
"ia.menu.uiAdaptation": "UI adaptation",
|
|
20648
|
+
"ia.menu.wasmSplit": "Wasm Code Split",
|
|
20649
|
+
"ia.monetization.mode.iaa.desc": "Configure ad placements and verify ad requests and callbacks. Add login if your game needs an account or server session, and request profile authorization only when needed. Verify network failures and revisit paths that your game uses.",
|
|
20650
|
+
"ia.monetization.mode.iaa.summary": "Verify ad placements, requests, and callbacks. Add business login as needed; check platform Login API requirements before upload.",
|
|
20651
|
+
"ia.monetization.mode.iaa.title": "IAA",
|
|
20652
|
+
"ia.monetization.mode.iaap.desc": "For hybrid monetization, use `login` to establish the shared user system first, then validate both the ad flow and the payment loop separately. Add `authorize` only when extra user profile data is required, make sure both monetization paths remain stable under the same account and gameplay session, and use revisit capabilities to verify ongoing return traffic for mixed-monetization users.",
|
|
20653
|
+
"ia.monetization.mode.iaap.summary": "Ads and payments run together, so validate overall stability on top of the shared user system.",
|
|
20654
|
+
"ia.monetization.mode.iaap.title": "IAAP",
|
|
20655
|
+
"ia.monetization.mode.iap.desc": "For purchase-driven games, start with `login`, order creation, payment invocation, backend verification, and fulfillment as one closed loop. Add `authorize` only when extra profile data or additional scopes are required, pay special attention to weak-network, payment-cancel, and duplicate-order cases, and use revisit capabilities to validate the return path for paying users.",
|
|
20656
|
+
"ia.monetization.mode.iap.summary": "The payment loop comes first, with order creation, payment, verification, and fulfillment kept consistent end to end.",
|
|
20657
|
+
"ia.monetization.mode.iap.title": "IAP",
|
|
20658
|
+
"ia.network.highlight1": "This topic is about weak-network and recovery behavior, not only single-request success on a good connection.",
|
|
20659
|
+
"ia.network.highlight2": "Request, download, and realtime paths should each have explicit recovery rules.",
|
|
20660
|
+
"ia.network.prerequisite1": "Unify request, download, and realtime paths before debugging so timeout, retry, and error visibility are not implemented differently in each page.",
|
|
20661
|
+
"ia.network.prerequisite2": "Prepare different fallback and user feedback for HTTP, downloads, and long connections instead of treating them as the same failure type.",
|
|
20662
|
+
"ia.network.step1": "Wrap request, download, and Socket calls behind a shared layer so timeout, cancel, retry, and logs are handled consistently.",
|
|
20663
|
+
"ia.network.step2": "Use `getNetworkType`, network-change listeners, and weak-network listeners to verify that pages react to network changes instead of failing silently.",
|
|
20664
|
+
"ia.network.step3": "On device, focus regression on weak-network, reconnect, interrupted downloads, and Socket recovery so state restoration is actually complete.",
|
|
20665
|
+
"ia.network.summary": "Network and realtime covers `request`, `downloadFile`, `connectSocket`, and network-status observation, with the focus on usable weak-network, disconnect, and recovery behavior.",
|
|
20666
|
+
"ia.network.tip1": "Do not test only ideal network. Most real issues come from timeout, half-downloaded assets, broken connections, and repeated reconnect attempts.",
|
|
20667
|
+
"ia.network.tip2": "Realtime flows should explicitly cover close, background/foreground transition, and resubscribe logic after recovery.",
|
|
20668
|
+
"ia.overview.section.foundation.desc": "Adapt the interface, configure network access, and plan resource loading and subpackages as needed for your game.",
|
|
20669
|
+
"ia.overview.section.foundation.title": "Core capabilities",
|
|
20670
|
+
"ia.overview.section.growth.desc": "These capabilities depend more on entry scenes and revisit paths, so scene selection and reward loops need extra attention.",
|
|
20671
|
+
"ia.overview.section.growth.title": "Growth and revisit",
|
|
20672
|
+
"ia.overview.section.identity.desc": "Establish the mini game identity first, then request profile or permission scopes only when needed.",
|
|
20673
|
+
"ia.overview.section.identity.title": "Login and authorization",
|
|
20674
|
+
"ia.overview.section.monetization.desc": "Revenue mainly comes from payment and ads, and both require portal enablement, business-loop validation, and device regression.",
|
|
20675
|
+
"ia.overview.section.monetization.title": "Monetization",
|
|
20676
|
+
"ia.overview.section.share.desc": "Help players share the game and return to the right in-game scene.",
|
|
20677
|
+
"ia.overview.section.share.title": "Sharing and growth",
|
|
20678
|
+
"ia.payment.highlight1": "The real payment loop is order creation, payment invocation, verification, and fulfillment, not just opening the pay panel.",
|
|
20679
|
+
"ia.payment.highlight2": "Use IAP Mock to iterate faster, then validate real Beans payment against backend results on device.",
|
|
20680
|
+
"ia.payment.prerequisite1": "Complete business verification and contract signing first, then enable In-App Purchases in Monetization. The payout entity should match the verified business entity.",
|
|
20681
|
+
"ia.payment.prerequisite2": "Prepare product config, test accounts, and backend capabilities for order creation, persistence, and verification. For local iteration, enable IAP Mock first to cover the main branches.",
|
|
20682
|
+
"ia.payment.step1": "Finish portal enablement, product setup, and payout info, then connect backend order creation, order persistence, and payment-result verification.",
|
|
20683
|
+
"ia.payment.step2": "Integrate client payment invocation and callback handling, and use IAP Mock first to cover success, failure, cancel, and repeated-tap branches.",
|
|
20684
|
+
"ia.payment.step3": "Then switch to real-device preview or real-device debug and verify real payment, backend verification, fulfillment / crediting, and retry handling as a complete loop.",
|
|
20685
|
+
"ia.payment.summary": "IAP monetization is the full chain of backend order creation, client-side payment invocation, and backend verification / fulfillment for virtual goods or value-added services, with TikTok Beans as the only supported payment method.",
|
|
20686
|
+
"ia.payment.tip1": "Do not treat the client success callback as the final truth. Fulfillment or crediting should rely on backend verification or the authoritative order state.",
|
|
20687
|
+
"ia.payment.tip2": "Mock is useful for iteration speed, but real-device regression is still required before release, especially for weak-network, duplicate-order, cancel, and timeout cases.",
|
|
20688
|
+
"ia.shareMessage.highlight1": "For `shareAppMessage`, the card title, description, and cover come from the game basic info in the developer portal, not from dynamic business-side customization.",
|
|
20689
|
+
"ia.shareMessage.highlight2": "What the business side really needs to design is `query`, so proactive share, mission share, and campaign sharing can land in the correct in-game scenario.",
|
|
20690
|
+
"ia.shareMessage.prerequisite1": "Confirm client-version support first and probe availability with `TTMinis.game.canIUse('shareAppMessage')` instead of assuming the capability exists on every runtime.",
|
|
20691
|
+
"ia.shareMessage.prerequisite2": "Make sure the game basic info is correctly configured in the developer portal first, because the in-app message card title, description, and cover are sourced from that portal config. Then focus the business logic on `query` and landing behavior.",
|
|
20692
|
+
"ia.shareMessage.step1": "Integrate `TTMinis.game.shareAppMessage` in pages that fit acquisition, recall, or campaign sharing, and verify that the `query` value accurately represents the current business scenario.",
|
|
20693
|
+
"ia.shareMessage.step2": "Focus on success, cancel, failure, and repeated-tap branches so the in-app message share action, callbacks, and user feedback all stay stable.",
|
|
20694
|
+
"ia.shareMessage.step3": "On device, verify the message-card presentation and post-share return path so recipients land on the right page and the query-driven state is restored correctly.",
|
|
20695
|
+
"ia.shareMessage.summary": "`shareAppMessage` is TikTok in-app message sharing. The card title, description, and cover come from the game basic info configured in the developer portal, while the business-side design focus is how `query` carries the exact in-game share scenario.",
|
|
20696
|
+
"ia.shareMessage.tip1": "This is better described as an in-app message card share capability, but the card title, description, and cover are not dynamically customized by business code at share time. What you really control is `query` and the landing flow.",
|
|
20697
|
+
"ia.shareMessage.tip2": "If many share entries exist, centralize `query` generation and parsing. Maintain the game basic info separately in the developer portal instead of assuming share-time overrides are supported.",
|
|
20698
|
+
"ia.shareStory.highlight1": "`shareToStory` is more visual, but what the business side still needs to design carefully is `query`, so the share can return to the right in-game scenario.",
|
|
20699
|
+
"ia.shareStory.highlight2": "Do dedicated device regression for Story, checking both asset presentation quality and `query`-driven return-path stability.",
|
|
20700
|
+
"ia.shareStory.prerequisite1": "Identify which campaign, gameplay, or result pages are actually suitable for Story sharing instead of forcing a Story entry into every flow.",
|
|
20701
|
+
"ia.shareStory.prerequisite2": "Prepare Story-appropriate assets first, then design the `query` value and landing behavior together. Do not optimize only for visual materials while leaving the in-game return logic ambiguous.",
|
|
20702
|
+
"ia.shareStory.step1": "Integrate `shareToStory` on pages that are appropriate for visual propagation and verify that both the selected asset and the `query` value represent the active business scenario correctly.",
|
|
20703
|
+
"ia.shareStory.step2": "Cover trigger, cancel, failure, and multiple-asset branches so the Story-sharing presentation and user feedback both behave as expected.",
|
|
20704
|
+
"ia.shareStory.step3": "On device, verify the return path after Story sharing and confirm that the target page, campaign state, and params are restored correctly.",
|
|
20705
|
+
"ia.shareStory.summary": "`shareToStory` focuses on Story sharing. The visible presentation depends more on the Story asset itself, while the business-side design focus is still the `query` value and the post-share landing flow.",
|
|
20706
|
+
"ia.shareStory.tip1": "Story sharing should not be treated as a simple copy of message sharing. Asset expression is one part, but `query` and the post-share landing flow still need deliberate business-side design.",
|
|
20707
|
+
"ia.shareStory.tip2": "If Story depends on strong visual materials, do focused real-device checks on both asset presentation and whether the `query`-driven return path restores the right page state.",
|
|
20708
|
+
"ia.shortcut.highlight1": "Verify the path from adding the shortcut to returning from the home screen and checking reward eligibility.",
|
|
20709
|
+
"ia.shortcut.highlight2": "Check the entry scene and `canReceiveReward`, then verify how your game grants the reward.",
|
|
20710
|
+
"ia.shortcut.prerequisite1": "Compatibility: probe support via `TTMinis.game.canIUse('addShortcut')`. Validate on TikTok 41.0.0+ (iOS requires 41.40+).",
|
|
20711
|
+
"ia.shortcut.prerequisite2": "Reward verification: in the real user flow, `TTMinis.game.getShortcutMissionReward()` returns `canReceiveReward=true` only when the session is launched from the home-screen shortcut. Under `scene_shortcut` Launch mode, the session itself already simulates that entry.",
|
|
20712
|
+
"ia.shortcut.step1": "Add a clear entry point in your UI: check `canIUse('addShortcut')`, then call `TTMinis.game.addShortcut()`, and log `errorCode/errorMsg` on failures for debugging.",
|
|
20713
|
+
"ia.shortcut.step2": "For local debugging: run `ttmg dev` → in Launch mode select the `Desktop Shortcut` scene (`scene_shortcut`) → scan to enter. That session is already simulating an open from the desktop shortcut entry.",
|
|
20714
|
+
"ia.shortcut.step3": "Call `TTMinis.game.getShortcutMissionReward()` directly and check `canReceiveReward`. If true, continue into your reward/claim flow. Keep `addShortcut` and the real home-screen reopen for real user-flow regression.",
|
|
20715
|
+
"ia.shortcut.summary": "Let players add a shortcut to their home screen and return through it to claim an eligible reward.",
|
|
20716
|
+
"ia.shortcut.tip1": "Treat `canReceiveReward` as an entry-source signal: add-shortcut success does not mean the current session is eligible for claiming the revisit reward.",
|
|
20717
|
+
"ia.shortcut.tip2": "Explain the benefit of adding a shortcut at an appropriate point in the game. Verify reward eligibility and prevent duplicate grants.",
|
|
20718
|
+
"ia.sidebar.highlight1": "Verify the sidebar entry, task state, and reward eligibility together.",
|
|
20719
|
+
"ia.sidebar.highlight2": "Choose a suitable in-game entry and verify the return and reward flows on a device.",
|
|
20720
|
+
"ia.sidebar.prerequisite1": "Confirm the account region is within the supported rollout and check capability support with `canIUse` in business code first.",
|
|
20721
|
+
"ia.sidebar.prerequisite2": "Use a dedicated sidebar-revisit scene in Launch mode instead of keeping the default QR path.",
|
|
20722
|
+
"ia.sidebar.step1": "Go to Launch mode, select the `Sidebar revisit` scene, and save it as a dedicated debug mode.",
|
|
20723
|
+
"ia.sidebar.step2": "For local debugging, run `ttmg dev`, switch Launch mode to `scene_center`, then scan to enter. That session is already simulating an open from the sidebar entry.",
|
|
20724
|
+
"ia.sidebar.step3": "Call `getEntranceMissionReward` directly to verify `canReceiveReward` and your reward-delivery logic. Keep `startEntranceMission` for real user-flow regression instead of treating it as a required Launch mode step.",
|
|
20725
|
+
"ia.sidebar.summary": "Let players return to the game from the TikTok sidebar and claim an eligible revisit reward.",
|
|
20726
|
+
"ia.sidebar.tip1": "This capability strongly depends on scene and region conditions, so do not describe or validate it only through the default QR path.",
|
|
20727
|
+
"ia.sidebar.tip2": "If the task cannot continue, check scene, account region, client capability, and task state before suspecting reward logic.",
|
|
20728
|
+
"ia.subpackage.highlight1": "Split-package quality depends on boundary definition, preload timing, and fallback, not on splitting as much as possible.",
|
|
20729
|
+
"ia.subpackage.highlight2": "Validate both first-screen speed and later scene transitions under weak network.",
|
|
20730
|
+
"ia.subpackage.prerequisite1": "Identify what is truly required on the first screen versus what belongs to later gameplay or optional resources.",
|
|
20731
|
+
"ia.subpackage.prerequisite2": "Prepare consistent loading fallback, retry, and loading-state UX instead of scattering split-package logic inside business pages.",
|
|
20732
|
+
"ia.subpackage.step1": "Declare each name and root under `subpackages` in `game.json`, and check that the package root has a `game.js` entry. Keep first-screen resources in the main package.",
|
|
20733
|
+
"ia.subpackage.step2": "Use `preDownloadSubpackage` to download ahead of time. Use `loadSubpackage` to download and execute the package entry; before entering the scene, wait for required assets and initialization.",
|
|
20734
|
+
"ia.subpackage.step3": "Run device and weak-network regression on first-screen enter, later jumps, and split-package failure recovery so users do not get stuck mid-load.",
|
|
20735
|
+
"ia.subpackage.summary": "Subpackage and preload focuses on first-package size, split boundaries, and resource loading timing so later content can arrive smoothly without hurting first-screen speed.",
|
|
20736
|
+
"ia.subpackage.tip1": "Preload does not mean ready-to-use. Validate the actual business transition when the split package is truly needed.",
|
|
20737
|
+
"ia.subpackage.tip2": "Do not over-split just to chase a smaller main package. Timing, fallback, and dependency correctness matter more than raw split count.",
|
|
20738
|
+
"ia.uiAdaptation.highlight1": "The goal is not one-off page fixes but a shared layout baseline for safe area, capsule button, and window metrics.",
|
|
20739
|
+
"ia.uiAdaptation.highlight2": "Validate on real devices with different sizes so titles, floating buttons, and bottom action areas stay unobstructed.",
|
|
20740
|
+
"ia.uiAdaptation.prerequisite1": "List the key pages that depend on top bars, floating actions, fixed bottom areas, or full-screen visuals instead of patching only one page.",
|
|
20741
|
+
"ia.uiAdaptation.prerequisite2": "Prepare real-device or multi-size preview coverage, especially across different aspect ratios, top safe areas, and bottom gesture areas.",
|
|
20742
|
+
"ia.uiAdaptation.step1": "First centralize window-size, safe-area, and capsule-button metrics into a layout baseline instead of hardcoding them separately in each page.",
|
|
20743
|
+
"ia.uiAdaptation.step2": "Adapt top title areas, top-right actions, bottom fixed controls, and modal content so they do not overlap with the capsule button or system safe areas.",
|
|
20744
|
+
"ia.uiAdaptation.step3": "Run real-device regression on key pages and check aspect-ratio changes, scroll containers, full-screen backgrounds, and tap targets across devices.",
|
|
20745
|
+
"ia.uiAdaptation.summary": "UI adaptation focuses on screen-size, capsule-button, and safe-area handling so key UI stays visible, tappable, and correctly aligned across devices.",
|
|
20746
|
+
"ia.uiAdaptation.tip1": "Do not look only at visual alignment. Tap areas, modal close affordances, and bottom reachability are part of UI adaptation too.",
|
|
20747
|
+
"ia.uiAdaptation.tip2": "Do not hardcode the capsule-button position with fixed pixels; base layout on platform metrics and safe-area data.",
|
|
20748
|
+
"ia.wasmSplit.summary": "Split the Unity Wasm bundle into on-demand chunks to shrink the initial payload and improve cold start. Unity engines only.",
|
|
20749
|
+
scene_ad: "For Your feed ads",
|
|
20750
|
+
scene_center: "Sidebar",
|
|
20751
|
+
scene_fyf_promotion_direct_feed_play: "For You feed direct play",
|
|
20752
|
+
scene_scan_qrcode: "Scan QR code",
|
|
20753
|
+
scene_shortcut: "Desktop Shortcut"
|
|
20754
|
+
},
|
|
20755
|
+
"zh-CN": {
|
|
20756
|
+
"ia.action.goLaunchMode": "打开启动模式",
|
|
20757
|
+
"ia.action.goSubpackageCollect": "打开子包采集",
|
|
20758
|
+
"ia.action.goNetworkDiagnostics": "打开网络诊断",
|
|
20759
|
+
"ia.action.goPrecheck": "打开代码预检",
|
|
20760
|
+
"ia.action.goProjectDetail": "打开项目详情",
|
|
20761
|
+
"ia.action.openCapabilityDoc": "详细引导",
|
|
20762
|
+
"ia.ad.highlight1": "先开通 IAA 并创建广告位,再看代码联调;未上线应用通常连广告位都配不起来。",
|
|
20763
|
+
"ia.ad.highlight2": "激励视频要保证完整播放后准确发奖,插屏要控制频率和打断感。",
|
|
20764
|
+
"ia.ad.prerequisite1": "先完成企业认证、合同签署,并在 Monetization 中启用 In-App Ads;未上线应用通常无法正常创建广告位。",
|
|
20765
|
+
"ia.ad.prerequisite2": "如涉及 US / EU,上线前尽早补齐 Sensitive Data、USDS / TPRM 等合规要求,并准备好 IAA Mock / 真机联调方案。",
|
|
20766
|
+
"ia.ad.step1": "先在平台确认 IAA 已开通且应用已上线,再进入 Ad placements 创建广告位并拿到对应 placement id。",
|
|
20767
|
+
"ia.ad.step2": "在业务中接入广告实例创建、加载、展示和回调处理,分别验证激励视频和插屏的成功、失败、关闭分支。",
|
|
20768
|
+
"ia.ad.step3": "重点回归奖励发放、频控与体验边界:激励视频完整播放后要准确发奖,插屏两次触发间隔需不少于 60 秒。",
|
|
20769
|
+
"ia.ad.summary": "IAA 广告能力覆盖激励视频与插屏广告,核心链路是“开通广告能力 -> 创建广告位 -> 加载/展示广告 -> 处理关闭与发奖回调”,用于变现且不打断核心体验。",
|
|
20770
|
+
"ia.ad.tip1": "广告回调和奖励发放要做幂等处理,避免重复回调、页面切换或重进场景导致重复发奖。",
|
|
20771
|
+
"ia.ad.tip2": "不要在初始化、新手引导或高频操作链路强插广告;若平台侧合规或上线门槛未过,先处理这些阻塞项。",
|
|
20772
|
+
"ia.authorize.highlight1": "核心不是在客户端直接拿资料,而是在 `login` 之后由用户显式授权额外 scope。",
|
|
20773
|
+
"ia.authorize.highlight2": "昵称、头像等资料最终由服务端携带 `access_token` 调 OpenAPI 获取,不是客户端一键返回。",
|
|
20774
|
+
"ia.authorize.prerequisite1": "先在项目详情页补齐 Terms URL 与 Privacy URL,并确认 `login` 主链路已能稳定换取 `open_id/access_token`。",
|
|
20775
|
+
"ia.authorize.prerequisite2": "按业务场景梳理所需 scope;昵称、头像等资料不应假设由客户端直接返回,而要通过授权后的服务端 OpenAPI 获取。",
|
|
20776
|
+
"ia.authorize.step1": "先通过 `tt.login` 获取一次性 `auth_code`,由服务端换取 `open_id` / `access_token`,建立基础身份态。",
|
|
20777
|
+
"ia.authorize.step2": "在真正需要资料或额外权限的场景调用 `tt.authorize`(如 `scope: 'user.info.basic'`),覆盖首次授权、拒绝授权和再次进入三类路径。",
|
|
20778
|
+
"ia.authorize.step3": "用户同意后,由服务端携带 `access_token` 调用 OpenAPI 拉取资料并落到业务链路,确认 scope、资料字段和降级兜底一致。",
|
|
20779
|
+
"ia.authorize.summary": "授权能力用于在 `login` 已拿到基础身份后,显式向用户申请 `user.info.basic` 等额外 scope;授权完成后,再由服务端结合 `access_token` 拉取资料或完成权限校验。",
|
|
20780
|
+
"ia.authorize.tip1": "不要把授权和登录混成一步:`login` 建立基础身份,`authorize` 申请额外 scope,两个失败分支都要单独处理。",
|
|
20781
|
+
"ia.authorize.tip2": "非必需权限不要做成默认拦截;用户拒绝后也应能继续基础流程,并保留明确的二次触发入口。",
|
|
20782
|
+
"ia.directPlay.highlight1": "在 Feed 中通过历史玩过游戏卡片触达用户,主按钮是 “Play now”。",
|
|
20783
|
+
"ia.directPlay.highlight2": "更适合高价值用户召回,可作为投放、增长和 QA 的统一复现入口。",
|
|
20784
|
+
"ia.directPlay.prerequisite1": "阶段一只关注小游戏包自身运行,不涉及 TT Feed 卡面、强插或 “Play now” 承接效果。",
|
|
20785
|
+
"ia.directPlay.prerequisite2": "进入阶段二前,建议先把推荐流直玩 scene 下的包体启动、首屏加载和核心游戏路径跑通。",
|
|
20786
|
+
"ia.directPlay.step1": "在“启动模式”里选择推荐流直玩 scene,保存一个专用启动模式用于游戏包调试。",
|
|
20787
|
+
"ia.directPlay.step2": "回到首页扫码启动,确认小游戏包在该 scene 下能够稳定进入并完成基础业务流程。",
|
|
20788
|
+
"ia.directPlay.step3": "只有当包体本身稳定后,再回到本页使用预览二维码验证直玩卡卡面与承接路径,确认无误后再管理同一张卡的上线状态。",
|
|
20789
|
+
"ia.directPlay.summary": "直玩卡联调建议拆成三个阶段:先调试小游戏包本身,再用预览二维码验证卡面和承接路径,最后管理已验证直玩卡的上线状态。",
|
|
20790
|
+
"ia.directPlay.tip1": "阶段一遇到的问题优先按普通包体调试处理,不要过早归因到 Feed 卡面或投放链路。",
|
|
20791
|
+
"ia.directPlay.tip2": "阶段二若出现问题,建议区分是包体运行异常,还是卡片配置、素材或承接链路异常;阶段三只管理阶段二已验证卡片的上线状态。",
|
|
20792
|
+
"ia.login.highlight1": "先把 `tt.login` 的 `auth_code -> open_id` 主链路跑通:`open_id` 是业务侧的用户主键与会话索引。",
|
|
20793
|
+
"ia.login.highlight2": "默认只拿 `user.info.open_id`;如需昵称/头像等资料或额外 scope,请走 `tt.authorize` 并在服务端完成资料获取与权限校验。",
|
|
20794
|
+
"ia.login.prerequisite1": "先在项目详情页补齐 Terms URL 与 Privacy URL,并确认运行时注入的 `client_key` 与当前调试环境一致(`tt.login` 默认 scope 为 `user.info.open_id`)。",
|
|
20795
|
+
"ia.login.prerequisite2": "业务服务端需提供 `code -> open_id` 的换取接口:使用 `auth_code` 调用 TikTok OpenAPI `https://open.tiktokapis.com/v2/oauth/token/`(`grant_type=authorization_code`),并持久化 `open_id`(及必要的令牌/过期时间)。",
|
|
20796
|
+
"ia.login.requirementScope": "业务登录取决于游戏是否需要账号或服务端会话。平台上传检查可能另行要求接入 Login API,本清单不豁免该检查;实际使用登录时仍须真机验证。",
|
|
20797
|
+
"ia.login.step1": "在业务页调用 `tt.login()`(或业务封装),确认回调稳定返回 `code`(对应 `auth_code`);失败分支记录 `errorCode/errorMsg` 便于联调定位。",
|
|
20798
|
+
"ia.login.step2": "将 `code` 立即传给服务端(短时效、一次性),服务端以 `application/x-www-form-urlencoded` 请求 `https://open.tiktokapis.com/v2/oauth/token/` 换取 `open_id`(如业务需要也会同时返回 `access_token/refresh_token`)。",
|
|
20799
|
+
"ia.login.step3": "用 `open_id` 建立业务会话并落库:补齐用户取消、弱网重试、防重复消费同一 `code`、`invalid_grant/invalid_client` 等异常;如需长期调用受保护资源,按 `grant_type=refresh_token` 刷新并更新存储。",
|
|
20800
|
+
"ia.login.summary": "登录(`tt.login`)用于在客户端获取一次性 `auth_code`(这里透出的字段为 `code`),再由业务服务端换取 `open_id` 并建立会话态。",
|
|
20801
|
+
"ia.login.tip1": "不要在客户端使用或下发 `client_secret`;所有 `auth_code -> token/open_id` 的交换必须在服务端完成。",
|
|
20802
|
+
"ia.login.tip2": "排障优先级建议:Terms/Privacy 缺失(常见 `102102`)→ `client_key/client_secret` 不匹配(`invalid_client`)→ `auth_code` 过期或重复使用(`invalid_grant`)→ 请求头/参数格式错误(`invalid_request`)。",
|
|
20803
|
+
"ia.menu.ad": "广告",
|
|
20804
|
+
"ia.menu.authorize": "授权",
|
|
20805
|
+
"ia.menu.directPlayCard": "直玩卡",
|
|
20806
|
+
"ia.menu.login": "登录",
|
|
20807
|
+
"ia.menu.network": "网络与实时通信",
|
|
20808
|
+
"ia.menu.payment": "支付",
|
|
20809
|
+
"ia.menu.shareMessage": "站内信分享",
|
|
20810
|
+
"ia.menu.shareStory": "分享 Story",
|
|
20811
|
+
"ia.menu.shortcutRevisit": "加桌复访",
|
|
20812
|
+
"ia.menu.sidebarRevisit": "侧边栏复访",
|
|
20813
|
+
"ia.menu.subpackage": "分包与预下载",
|
|
20814
|
+
"ia.menu.uiAdaptation": "UI 适配",
|
|
20815
|
+
"ia.menu.wasmSplit": "Wasm 分包",
|
|
20816
|
+
"ia.monetization.mode.iaa.desc": "先配置广告位,验证广告请求和回调。游戏需要账号或服务端会话时接入 `login`;需要额外用户资料时再接入 `authorize`。同时验证网络异常,以及游戏实际使用的复访路径。",
|
|
20817
|
+
"ia.monetization.mode.iaa.summary": "验证广告位、请求和回调。业务登录按需接入;上传前请核对平台对 Login API 的要求。",
|
|
20818
|
+
"ia.monetization.mode.iaa.title": "IAA",
|
|
20819
|
+
"ia.monetization.mode.iaap.desc": "广告与支付并行,建议先用 `login` 打通共用用户体系,再分别验证广告链路与支付闭环;`authorize` 仅在需要额外用户资料时补充接入,同时要关注两条变现链路在同一账号与同一局内场景下的联调稳定性,并结合复访能力验证混合变现用户的持续回流效果。",
|
|
20820
|
+
"ia.monetization.mode.iaap.summary": "广告与支付双链路并行,优先验证共用用户体系下的整体联调稳定性。",
|
|
20821
|
+
"ia.monetization.mode.iaap.title": "IAAP",
|
|
20822
|
+
"ia.monetization.mode.iap.desc": "以内购变现为主,建议先打通 `login`、下单、支付拉起、服务端验单与发货闭环;`authorize` 仅在需要额外用户资料或扩展 scope 时再接入,同时要重点关注弱网、取消支付、重复下单等订单校验场景,并结合复访能力验证付费用户的回流承接。",
|
|
20823
|
+
"ia.monetization.mode.iap.summary": "支付闭环优先,重点验证下单、支付、验单与发货链路的一致性。",
|
|
20824
|
+
"ia.monetization.mode.iap.title": "IAP",
|
|
20825
|
+
"ia.network.highlight1": "网络专题重点是弱网、断线与恢复,不是只看理想网络下的单次请求成功。",
|
|
20826
|
+
"ia.network.highlight2": "请求、下载和实时通信应分别设计错误处理和状态恢复策略。",
|
|
20827
|
+
"ia.network.prerequisite1": "先统一梳理项目里的请求、下载与实时通信路径,避免每个页面各自处理 timeout、重试和错误提示。",
|
|
20828
|
+
"ia.network.prerequisite2": "为 HTTP 请求、资源下载和长连接分别设计失败兜底与状态提示,不要把它们混成同一种异常处理。",
|
|
20829
|
+
"ia.network.step1": "先封装统一的请求/下载/Socket 调用入口,把超时、取消、重试和日志能力收拢到一层处理。",
|
|
20830
|
+
"ia.network.step2": "结合 `getNetworkType`、网络变化监听和弱网监听,验证页面能对网络波动做出合理反馈,而不是静默失败。",
|
|
20831
|
+
"ia.network.step3": "在真机上重点回归弱网、断网恢复、下载中断和 Socket 重连场景,确认状态恢复与用户提示是完整的。",
|
|
20832
|
+
"ia.network.summary": "网络与实时通信专题覆盖 `request`、`downloadFile`、`connectSocket` 以及网络状态监听,重点是让弱网、断线和重连场景也保持可用。",
|
|
20833
|
+
"ia.network.tip1": "不要只测理想网络;多数线上问题都发生在请求超时、资源半下载、连接闪断和重复重连上。",
|
|
20834
|
+
"ia.network.tip2": "实时通信场景要单独验证连接关闭、前后台切换和恢复后的重订阅逻辑,不要只看首次连接成功。",
|
|
20835
|
+
"ia.overview.section.foundation.desc": "按游戏需要完成界面适配、网络配置、资源加载和分包。",
|
|
20836
|
+
"ia.overview.section.foundation.title": "基础能力",
|
|
20837
|
+
"ia.overview.section.growth.desc": "这部分更偏入口场景和留存回流,调试时要特别注意 scene、入口路径和奖励闭环。",
|
|
20838
|
+
"ia.overview.section.growth.title": "增长与复访",
|
|
20839
|
+
"ia.overview.section.identity.desc": "先建立小游戏身份,再按需申请资料或权限 scope,这是很多用户态能力的起点。",
|
|
20840
|
+
"ia.overview.section.identity.title": "登录与授权",
|
|
20841
|
+
"ia.overview.section.monetization.desc": "收入链路主要分为支付和广告,两者都需要先打通平台开通、业务闭环和真机回归。",
|
|
20842
|
+
"ia.overview.section.monetization.title": "商业化变现",
|
|
20843
|
+
"ia.overview.section.share.desc": "让玩家分享游戏,并在返回时进入正确的游戏场景。",
|
|
20844
|
+
"ia.overview.section.share.title": "分享与裂变",
|
|
20845
|
+
"ia.payment.highlight1": "支付闭环重点是“下单、拉起支付、验单、发货”,不是只把支付面板调起来。",
|
|
20846
|
+
"ia.payment.highlight2": "建议先用 IAP Mock 提速,再用真机验证真实 Beans 支付与服务端结果一致性。",
|
|
20847
|
+
"ia.payment.prerequisite1": "先完成企业认证、合同签署,并在 Monetization 中启用 In-App Purchases;收款主体需与企业认证主体一致。",
|
|
20848
|
+
"ia.payment.prerequisite2": "提前准备商品配置、测试账号,以及服务端下单、订单落库和验单能力;本地联调可先打开 IAP Mock 覆盖主分支。",
|
|
20849
|
+
"ia.payment.step1": "先在平台完成 IAP 开通、商品配置和收款信息填写,再在服务端打通创建订单、订单持久化和支付结果校验。",
|
|
20850
|
+
"ia.payment.step2": "客户端接入支付唤起与回调处理,先用 IAP Mock 验证成功、失败、取消、重复点击等基础分支。",
|
|
20851
|
+
"ia.payment.step3": "最后切到真机预览或真机调试,验证真实支付、服务端验单、发货/到账以及异常重试链路是否闭环。",
|
|
20852
|
+
"ia.payment.summary": "IAP 支付用于售卖虚拟道具或增值服务,核心链路是“服务端创建订单 -> 客户端发起支付 -> 服务端验单/发货”,当前仅支持 TikTok Beans。",
|
|
20853
|
+
"ia.payment.tip1": "不要只看客户端支付成功回调;最终发货或到账应以后端验单结果或权威订单状态为准。",
|
|
20854
|
+
"ia.payment.tip2": "Mock 适合提效,但提审前必须做真机回归,并覆盖弱网、重复下单、取消支付和超时回调。",
|
|
20855
|
+
"ia.shareMessage.highlight1": "`shareAppMessage` 的卡片标题、描述和封面来自开发者平台的游戏基本信息,不是业务侧在分享时动态自定义。",
|
|
20856
|
+
"ia.shareMessage.highlight2": "业务侧真正要设计的是 `query` 参数,让主动分享、任务分享和活动传播都能落到正确的游戏内场景。",
|
|
20857
|
+
"ia.shareMessage.prerequisite1": "先确认客户端版本和能力前置,按文档建议通过 `TTMinis.game.canIUse('shareAppMessage')` 判断是否可用,不要默认所有端上都支持。",
|
|
20858
|
+
"ia.shareMessage.prerequisite2": "先在开发者平台补齐并确认游戏基本信息,因为站内信卡片展示的标题、描述和封面取自平台配置;业务侧再重点设计 `query` 参数和落地页承接规则。",
|
|
20859
|
+
"ia.shareMessage.step1": "在适合拉新、召回或活动传播的页面接入 `TTMinis.game.shareAppMessage`,并重点确认不同入口下传入的 `query` 能准确表达当前业务场景。",
|
|
20860
|
+
"ia.shareMessage.step2": "重点验证站内信分享的成功、取消、失败和重复点击分支,确认分享动作本身、回调和用户反馈都稳定。",
|
|
20861
|
+
"ia.shareMessage.step3": "在真机检查站内信卡片的展示效果与回流路径,确认用户打开后能进入正确页面,且 query 对应的业务状态恢复正常。",
|
|
20862
|
+
"ia.shareMessage.summary": "`shareAppMessage` 对应 TikTok 站内信分享,其中卡片标题、描述和封面来自开发者平台的游戏基本信息,开发者真正需要设计的是 `query` 参数如何承接具体分享场景。",
|
|
20863
|
+
"ia.shareMessage.tip1": "这张卡更接近“站内信卡片分享”能力,但卡片标题、描述和封面并不是业务侧实时自定义的,真正可控的是 `query` 和分享后的承接逻辑。",
|
|
20864
|
+
"ia.shareMessage.tip2": "如果分享入口很多,建议统一封装 `query` 生成和解析逻辑;平台侧游戏基本信息则应单独在开发者平台维护,不要误以为能在分享时动态覆盖。",
|
|
20865
|
+
"ia.shareStory.highlight1": "`shareToStory` 更偏视觉传播,但业务侧真正需要设计的仍是 `query`,让分享后能回到正确的游戏内场景。",
|
|
20866
|
+
"ia.shareStory.highlight2": "Story 分享建议单独做真机回归,同时检查素材展示效果和 `query` 驱动的回流路径是否稳定。",
|
|
20867
|
+
"ia.shareStory.prerequisite1": "先梳理哪些活动、玩法或结果页适合 Story 分享,避免把不适合视觉传播的场景也强行套用 Story 入口。",
|
|
20868
|
+
"ia.shareStory.prerequisite2": "提前准备符合 Story 场景的素材资源,并同步设计 `query` 参数和落地页承接方案;不要只准备视觉素材而忽略回流后的游戏内逻辑。",
|
|
20869
|
+
"ia.shareStory.step1": "在适合传播的页面接入 `shareToStory`,确认素材选择和传入的 `query` 都能准确表达当前业务场景。",
|
|
20870
|
+
"ia.shareStory.step2": "验证 Story 分享触发、取消、失败与不同素材组合分支,确认视觉展示和交互反馈都符合预期。",
|
|
20871
|
+
"ia.shareStory.step3": "结合真机检查 Story 分享后的回流路径,确认用户回到小游戏时目标页面、活动状态和参数恢复正常。",
|
|
20872
|
+
"ia.shareStory.summary": "`shareToStory` 聚焦 Story 分享,其中展示效果更依赖 Story 素材本身,而业务侧真正要设计的是 `query` 参数和分享后的回流承接逻辑。",
|
|
20873
|
+
"ia.shareStory.tip1": "Story 分享不是普通消息分享的简单复用,素材表达是一部分,但业务侧仍要把 `query` 和回流承接链路单独设计清楚。",
|
|
20874
|
+
"ia.shareStory.tip2": "如果 Story 场景依赖强视觉素材,提审前建议同时回归素材展示效果和 `query` 对应的页面恢复是否稳定。",
|
|
20875
|
+
"ia.shortcut.highlight1": "验证添加快捷方式、从桌面返回和检查奖励资格的完整过程。",
|
|
20876
|
+
"ia.shortcut.highlight2": "先检查入口 scene 和 `canReceiveReward`,再验证游戏内的发奖逻辑。",
|
|
20877
|
+
"ia.shortcut.prerequisite1": "兼容性:先用 `TTMinis.game.canIUse('addShortcut')` 做能力探测;推荐在 TikTok 41.0.0+ 版本验证(iOS 需 41.40+)。",
|
|
20878
|
+
"ia.shortcut.prerequisite2": "奖励校验:真实用户链路里,`TTMinis.game.getShortcutMissionReward()` 的 `canReceiveReward` 只有在“从桌面图标进入”时才可能为 true;而在 `scene_shortcut` 启动模式里,会话本身就在模拟该入口。",
|
|
20879
|
+
"ia.shortcut.step1": "在业务入口准备“添加到桌面”触发点:先判断 `canIUse('addShortcut')`,再调用 `TTMinis.game.addShortcut()`,并记录 fail 分支的 `errorCode/errorMsg`。",
|
|
20880
|
+
"ia.shortcut.step2": "本地联调:运行 `ttmg dev` → 在“启动模式”选择“桌面快捷方式” scene(`scene_shortcut`)→ 扫码进入;此时已经是在模拟“从桌面入口打开”的会话。",
|
|
20881
|
+
"ia.shortcut.step3": "直接调用 `TTMinis.game.getShortcutMissionReward()` 检查 `canReceiveReward`,为 true 时再走业务发奖/领券逻辑;`addShortcut` 与“回桌面再进”留给真实用户路径回归即可。",
|
|
20882
|
+
"ia.shortcut.summary": "让玩家将游戏添加到桌面,通过快捷方式返回,并在符合条件时领取奖励。",
|
|
20883
|
+
"ia.shortcut.tip1": "把 `canReceiveReward` 当作“是否从桌面入口进入”的信号拆开看:加桌动作本身成功 ≠ 一定能在当前会话领取奖励。",
|
|
20884
|
+
"ia.shortcut.tip2": "在合适的游戏时机说明添加快捷方式的用途,并验证奖励资格和防重复发放。",
|
|
20885
|
+
"ia.sidebar.highlight1": "一起验证侧边栏入口、任务状态和奖励领取条件。",
|
|
20886
|
+
"ia.sidebar.highlight2": "选择合适的游戏内入口,并在真机验证返回游戏和领取奖励的流程。",
|
|
20887
|
+
"ia.sidebar.prerequisite1": "确认账号地区在能力开放范围内,并在业务代码里先做 `canIUse` 探测。",
|
|
20888
|
+
"ia.sidebar.prerequisite2": "在启动模式中把进入场景切到侧边栏复访入口,避免继续沿用普通扫码场景。",
|
|
20889
|
+
"ia.sidebar.step1": "先到“启动模式”选择“复访奖励 - 侧边栏” scene,并保存为独立的调试模式。",
|
|
20890
|
+
"ia.sidebar.step2": "本地联调时先运行 `ttmg dev`,再把启动模式切到 `scene_center` 并扫码进入;此时已经是在模拟“从侧边栏入口打开”的会话。",
|
|
20891
|
+
"ia.sidebar.step3": "直接调用 `getEntranceMissionReward` 检查 `canReceiveReward` 与业务发奖逻辑;`startEntranceMission` 留给真实用户路径回归,不是启动模式下的必做前置动作。",
|
|
20892
|
+
"ia.sidebar.summary": "让玩家从 TikTok 侧边栏返回游戏,并在符合条件时领取复访奖励。",
|
|
20893
|
+
"ia.sidebar.tip1": "这类能力强依赖入口场景与地区条件,不能只用默认扫码路径描述或验证。",
|
|
20894
|
+
"ia.sidebar.tip2": "若任务无法继续,先排查 scene、账号地区、客户端能力与任务状态,而不是直接怀疑奖励逻辑。",
|
|
20895
|
+
"ia.subpackage.highlight1": "分包的核心不是拆得多,而是主包边界、预下载时机和失败兜底是否合理。",
|
|
20896
|
+
"ia.subpackage.highlight2": "要同时回归首屏速度、后续场景切换和弱网下的加载体验。",
|
|
20897
|
+
"ia.subpackage.prerequisite1": "先梳理首屏必需资源与后续场景资源,明确哪些内容应该留在主包,哪些适合拆到分包。",
|
|
20898
|
+
"ia.subpackage.prerequisite2": "为分包加载失败、弱网重试和加载中反馈准备统一兜底,避免把加载逻辑散落在业务页面里。",
|
|
20899
|
+
"ia.subpackage.step1": "在 `game.json` 的 `subpackages` 中声明分包名称和根目录,确认分包根目录包含 `game.js` 入口。首屏必需资源保留在主包。",
|
|
20900
|
+
"ia.subpackage.step2": "使用 `preDownloadSubpackage` 提前下载;需要加载并执行分包入口时使用 `loadSubpackage`。进入场景前,等待所需资源和初始化完成。",
|
|
20901
|
+
"ia.subpackage.step3": "在真机与弱网场景回归首屏进入、后续跳转和分包失败重试,确认用户不会卡死在资源加载链路里。",
|
|
20902
|
+
"ia.subpackage.summary": "分包与预下载专题关注首包体积、分包边界与资源加载时机,核心目标是在不拖慢首屏的前提下,让后续内容更平滑地进入。",
|
|
20903
|
+
"ia.subpackage.tip1": "预下载不等于立即可用;仍然要验证真正进入业务场景时资源是否已经准备完成。",
|
|
20904
|
+
"ia.subpackage.tip2": "不要为了追求首包小而过度拆包;分包数量、加载时机和失败兜底比机械地“拆得越多越好”更重要。",
|
|
20905
|
+
"ia.uiAdaptation.highlight1": "重点不是单页修样式,而是把安全区、胶囊按钮和窗口尺寸沉淀成统一布局基线。",
|
|
20906
|
+
"ia.uiAdaptation.highlight2": "要用真机覆盖多尺寸和异形屏,确认标题、悬浮按钮、底部操作区都不被遮挡。",
|
|
20907
|
+
"ia.uiAdaptation.prerequisite1": "先梳理项目里与顶栏、浮层、固定按钮、全屏背景相关的核心页面,避免只在单一页面补样式。",
|
|
20908
|
+
"ia.uiAdaptation.prerequisite2": "优先准备真机或多尺寸预览环境,特别覆盖不同长宽比、顶部安全区和底部手势区域差异。",
|
|
20909
|
+
"ia.uiAdaptation.step1": "先统一读取设备窗口尺寸、安全区和胶囊按钮位置相关信息,沉淀成布局基线,而不是在页面里分散硬编码。",
|
|
20910
|
+
"ia.uiAdaptation.step2": "对顶部标题区、右上角操作按钮、底部固定操作区和弹窗内容做适配,确认不会与胶囊按钮或系统安全区重叠。",
|
|
20911
|
+
"ia.uiAdaptation.step3": "在多机型回归关键页面,重点检查横竖比例变化、滚动容器、全屏背景和点击热区是否仍然自然可用。",
|
|
20912
|
+
"ia.uiAdaptation.summary": "UI 适配专题聚焦屏幕尺寸、胶囊按钮与安全区适配,核心目标是在不同设备上保证关键 UI 不被遮挡、裁切或错位。",
|
|
20913
|
+
"ia.uiAdaptation.tip1": "不要只看视觉对齐;按钮点击区域、弹窗可关闭区域和底部可达性同样属于 UI 适配问题。",
|
|
20914
|
+
"ia.uiAdaptation.tip2": "避免把胶囊按钮位置写死成固定像素,优先基于平台返回信息和安全区做动态布局。",
|
|
20915
|
+
"ia.wasmSplit.summary": "把 Unity Wasm 拆分为按需加载的子包,缩小首包体积、提升冷启表现;仅对 Unity 引擎可用。",
|
|
20916
|
+
scene_ad: "推荐页广告",
|
|
20917
|
+
scene_center: "复访奖励 - 侧边栏",
|
|
20918
|
+
scene_fyf_promotion_direct_feed_play: "推荐流直玩",
|
|
20919
|
+
scene_scan_qrcode: "扫码打开",
|
|
20920
|
+
scene_shortcut: "桌面快捷方式"
|
|
20921
|
+
},
|
|
20922
|
+
"ja-JP": {
|
|
20923
|
+
"ia.action.goLaunchMode": "起動モードを開く",
|
|
20924
|
+
"ia.action.goSubpackageCollect": "サブパッケージ収集を開く",
|
|
20925
|
+
"ia.action.goNetworkDiagnostics": "ネットワーク診断を開く",
|
|
20926
|
+
"ia.action.goPrecheck": "オープンコードの事前チェック",
|
|
20927
|
+
"ia.action.goProjectDetail": "プロジェクトの詳細を開く",
|
|
20928
|
+
"ia.action.openCapabilityDoc": "詳細ガイド",
|
|
20929
|
+
"ia.ad.highlight1": "IAA を有効にして、最初にプレースメントを作成してから、コード パスをデバッグします。リリースされていないアプリは、配置のセットアップを完了できないことがよくあります。",
|
|
20930
|
+
"ia.ad.highlight2": "リワード付きビデオには正確な再生後のリワードが必要ですが、インタースティシャルには厳密なペースと中断の少ないことが必要です。",
|
|
20931
|
+
"ia.ad.prerequisite1": "まずビジネスの検証と契約の署名を完了してから、収益化でアプリ内広告を有効にします。通常、リリースされていないアプリは、使用可能な広告プレースメントの作成がブロックされます。",
|
|
20932
|
+
"ia.ad.prerequisite2": "米国 / EU での発売に向けて、機密データ、USDS / TPRM、および関連するコンプライアンス作業を早期に開始し、IAA モックと実デバイス検証パスの両方を準備します。",
|
|
20933
|
+
"ia.ad.step1": "IAA が有効であり、アプリがすでにリリースされていることを確認し、[広告プレースメント] に移動して必要なプレースメント ID を作成します。",
|
|
20934
|
+
"ia.ad.step2": "ビジネス コードで、広告インスタンスの作成、読み込み、表示、コールバック処理を統合し、リワードビデオとインタースティシャルの成功、失敗を個別に検証し、ブランチを閉じます。",
|
|
20935
|
+
"ia.ad.step3": "最終回帰は報酬の精度、頻度制御、エクスペリエンスの境界に焦点を当てます。報酬付きビデオは完全に再生された後にのみ報酬を付与する必要があり、インタースティシャルはトリガー間に少なくとも 60 秒のギャップが必要です。",
|
|
20936
|
+
"ia.ad.summary": "IAA 広告はリワードビデオとインタースティシャルフォーマットをカバーしており、コアチェーンはイネーブルメント、広告プレースメントの作成、広告の読み込み/表示、およびクローズ/リワードコールバック処理であり、コアエクスペリエンスを損なうことはありません。",
|
|
20937
|
+
"ia.ad.tip1": "繰り返しのコールバック、ページ切り替え、または再エントリによって報酬が重複しないように、報酬配信を冪等にします。",
|
|
20938
|
+
"ia.ad.tip2": "初期化、チュートリアル、またはその他の高頻度パスに広告を強制的に挿入しないでください。プラットフォームのコンプライアンスまたはリリース ゲートがまだブロックされている場合は、まずそれを修正してください。",
|
|
20939
|
+
"ia.authorize.highlight1": "重要なのは、クライアント側のプロファイルへの直接アクセスではなく、`login` 後の明示的なスコープ外の同意です。",
|
|
20940
|
+
"ia.authorize.highlight2": "ニックネーム、アバター、その他のプロフィール データは、最終的に `access_token` を使用してバックエンドによってフェッチされる必要があり、1 回のクライアント呼び出しで返されることはありません。",
|
|
20941
|
+
"ia.authorize.prerequisite1": "まずプロジェクトの詳細に条件 URL とプライバシー URL を入力し、`login` フローが既に `open_id/access_token` と確実に交換できることを確認してください。",
|
|
20942
|
+
"ia.authorize.prerequisite2": "実際のビジネス ニーズに基づいてスコープを定義します。ニックネームやアバターなどのプロフィール フィールドがクライアントから直接取得されると想定しないでください。これらは、同意後のバックエンド OpenAPI 呼び出しから取得される必要があります。",
|
|
20943
|
+
"ia.authorize.step1": "`tt.login` を使用してワンタイム `auth_code` を取得し、バックエンドでそれを `open_id` / `access_token` と交換して、基本アイデンティティ状態の準備が整います。",
|
|
20944
|
+
"ia.authorize.step2": "追加のプロファイル データまたは権限が本当に必要なフロー (`scope: 'user.info.basic'` など) でのみ `tt.authorize` を呼び出し、最初の同意、拒否、および再エントリのブランチをカバーします。",
|
|
20945
|
+
"ia.authorize.step3": "ユーザーが同意した後、バックエンドで `access_token` を使用して OpenAPI を呼び出し、返されたスコープ、プロファイル フィールド、およびフォールバック動作がすべてビジネス パスと一致することを確認します。",
|
|
20946
|
+
"ia.authorize.summary": "承認では、`login` が基本 ID をすでに確立した後、`user.info.basic` などの追加のスコープをユーザーに要求し、バックエンドが `access_token` を使用してプロファイル データを取得したり、権限チェックを完了したりできるようにします。",
|
|
20947
|
+
"ia.authorize.tip1": "認証をログインに統合しないでください。 `login` は ID を確立しますが、`authorize` は追加のスコープを要求するため、それらの障害処理は分離されたままにする必要があります。",
|
|
20948
|
+
"ia.authorize.tip2": "必須ではないアクセス許可のデフォルト フローをブロックしないでください。ユーザーが同意を拒否した場合でも、基本フローは引き続き機能し、明確な再トリガー エントリが存在する必要があります。",
|
|
20949
|
+
"ia.directPlay.highlight1": "以前にプレイしたゲーム カードがフィード内のユーザーに届き、メイン CTA は `Play now` です。",
|
|
20950
|
+
"ia.directPlay.highlight2": "これは、価値の高いユーザーをリコールする際の、成長、配信、QA のための共有再生産パスとしてうまく機能します。",
|
|
20951
|
+
"ia.directPlay.prerequisite1": "ステージ 1 では、ミニゲーム パッケージのランタイムのみに焦点を当てます。ここでは、TT フィードのプレゼンテーション、強制挿入、および `Play now` ハンドオフは対象外です。",
|
|
20952
|
+
"ia.directPlay.prerequisite2": "ステージ 2 に進む前に、パッケージの起動、最初の画面の読み込み、およびコアのゲーム内パスがダイレクト プレイ シーンですでに安定していることを確認してください。",
|
|
20953
|
+
"ia.directPlay.step1": "起動モードを開き、ダイレクトプレイ シーンを選択し、パッケージ デバッグ用の専用モードを保存します。",
|
|
20954
|
+
"ia.directPlay.step2": "ホームに戻り、スキャンして起動します。パッケージが確実に入力できることを確認し、そのシーンで基本的なゲーム内フローを完了します。",
|
|
20955
|
+
"ia.directPlay.step3": "パッケージ自体が安定した後でのみ、ここに戻ってダイレクト プレイ カードのプレゼンテーションとプレビュー QR コードでのハンドオフを検証し、同じカードのライブ ステータスを管理する必要があります。",
|
|
20956
|
+
"ia.directPlay.summary": "ダイレクトプレイ デバッグは 3 つの段階に分割するのが最適です。最初にミニ ゲーム パッケージ自体を検証し、次にプレビュー QR コードを使用してカードのプレゼンテーションとハンドオフ パスを検証し、最後に検証されたカードのライブ ステータスを管理します。",
|
|
20957
|
+
"ia.directPlay.tip1": "ステージ 1 が失敗した場合は、フィードのプレゼンテーションや配信ロジックが早すぎたことが原因であると考えるのではなく、最初に通常のパッケージ/ランタイムの問題と同様にデバッグします。",
|
|
20958
|
+
"ia.directPlay.tip2": "ステージ 2 が失敗した場合、パッケージのランタイムの問題をカード構成、資産、またはハンドオフ パスの問題から分離します。ステージ 3 は、ステージ 2 で検証済みのカードのライブ ステータスのみを管理します。",
|
|
20959
|
+
"ia.login.highlight1": "コア出力は `auth_code` で、バックエンドはこれを `open_id` / セッション状態と交換します。",
|
|
20960
|
+
"ia.login.highlight2": "`login` と `authorize` は異なるパスです。`login` は ID を確立しますが、`authorize` は追加のスコープを要求します。",
|
|
20961
|
+
"ia.login.prerequisite1": "アクティブな `client_key` が端末のデバッグ構成と一致し、実行時に `tt.login` 呼び出しパスに正しく挿入されていることを確認してください。",
|
|
20962
|
+
"ia.login.prerequisite2": "バックエンドは、明確な再試行、エラーコード、およびセッション有効期限の処理を備えた、`auth_code` -> `open_id` / セッションのコード交換 API をすでに公開している必要があります。",
|
|
20963
|
+
"ia.login.requirementScope": "ビジネス ログインは、ゲームにアカウントが必要かバックエンド セッションが必要かによって異なります。プラットフォームのアップロード チェックでは、ログイン API の統合が別途必要になる場合があります。このチェックリストはこれらのチェックを放棄するものではありません。デバイスの使用時にログイン フローを確認します。",
|
|
20964
|
+
"ia.login.step1": "ビジネス ページから `tt.login` (またはビジネス ラッパー) を呼び出し、クライアントが安定した `auth_code` を返せることを確認します。",
|
|
20965
|
+
"ia.login.step2": "`auth_code` をバックエンドに送信し、`open_id` / セッション交換、セッション永続性、およびダウンストリーム要求伝播がすべて正しく機能することを確認します。",
|
|
20966
|
+
"ia.login.step3": "ユーザーのキャンセル、ネットワーク障害、期限切れの `auth_code`、バックエンド交換失敗ブランチをカバーし、UI フォールバックと再試行戦略が使用可能であることを確認します。",
|
|
20967
|
+
"ia.login.summary": "ログインはミニゲームの ID 機能です。クライアントで `auth_code` を取得すると、バックエンドはそのコードを `open_id` / セッション状態と交換します。",
|
|
20968
|
+
"ia.login.tip1": "まずメインの `auth_code -> open_id / session` パスを安定させてから、ログイン状態に依存するプロファイル、分析、またはその他のビジネス フローに拡張します。",
|
|
20969
|
+
"ia.login.tip2": "現在の SDK では、`login` はデフォルトで `user.info.open_id` になります。さらに多くのユーザー データまたは追加のスコープが必要な場合は、`authorize` で個別にリクエストしてください。",
|
|
20970
|
+
"ia.menu.ad": "広告",
|
|
20971
|
+
"ia.menu.authorize": "ユーザー認可",
|
|
20972
|
+
"ia.menu.directPlayCard": "ダイレクトプレイカード",
|
|
20973
|
+
"ia.menu.login": "ログイン",
|
|
20974
|
+
"ia.menu.network": "ネットワークとリアルタイム",
|
|
20975
|
+
"ia.menu.payment": "お支払い",
|
|
20976
|
+
"ia.menu.shareMessage": "アプリ内メッセージの共有",
|
|
20977
|
+
"ia.menu.shareStory": "ストーリーにシェア",
|
|
20978
|
+
"ia.menu.shortcutRevisit": "ショートカット再訪",
|
|
20979
|
+
"ia.menu.sidebarRevisit": "サイドバーの再訪",
|
|
20980
|
+
"ia.menu.subpackage": "サブパッケージとプリロード",
|
|
20981
|
+
"ia.menu.uiAdaptation": "UIの適応",
|
|
20982
|
+
"ia.menu.wasmSplit": "Wasm コード分割",
|
|
20983
|
+
"ia.monetization.mode.iaa.desc": "広告枠を設定し、広告リクエストとコールバックを確認します。アカウントやサーバーセッションが必要な場合は `login` を実装し、追加のプロフィール情報が必要な場合は `authorize` を使用します。ネットワーク障害と、ゲームで使用する再訪経路も確認します。",
|
|
20984
|
+
"ia.monetization.mode.iaa.summary": "広告枠、リクエスト、コールバックを確認します。ゲームのログインは必要に応じて実装し、アップロード前に Login API の要件を確認してください。",
|
|
20985
|
+
"ia.monetization.mode.iaa.title": "IAA",
|
|
20986
|
+
"ia.monetization.mode.iaap.desc": "ハイブリッド収益化の場合、最初に `login` を使用して共有ユーザー システムを確立し、次に広告フローと支払いループの両方を個別に検証します。追加のユーザー プロファイル データが必要な場合にのみ `authorize` を追加し、同じアカウントとゲームプレイ セッションで両方の収益化パスが安定していることを確認し、再訪問機能を使用して混合収益化ユーザーの進行中のリターン トラフィックを確認します。",
|
|
20987
|
+
"ia.monetization.mode.iaap.summary": "広告と支払いは同時に実行されるため、共有ユーザー システム上で全体的な安定性が検証されます。",
|
|
20988
|
+
"ia.monetization.mode.iaap.title": "IAAP",
|
|
20989
|
+
"ia.monetization.mode.iap.desc": "購入主導のゲームの場合、`login` から開始し、注文の作成、支払いの呼び出し、バックエンドの検証、およびフルフィルメントを 1 つの閉じたループとして実行します。追加のプロファイル データまたは追加のスコープが必要な場合にのみ `authorize` を追加し、脆弱なネットワーク、支払いキャンセル、注文の重複のケースに特別な注意を払い、再訪機能を使用して支払いユーザーのリターン パスを検証します。",
|
|
20990
|
+
"ia.monetization.mode.iap.summary": "支払いループが最初に行われ、注文の作成、支払い、検証、履行がエンドツーエンドで一貫して保たれます。",
|
|
20991
|
+
"ia.monetization.mode.iap.title": "IAP",
|
|
20992
|
+
"ia.network.highlight1": "このトピックは、良好な接続での単一リクエストの成功だけではなく、弱いネットワークと回復動作についても扱います。",
|
|
20993
|
+
"ia.network.highlight2": "リクエスト、ダウンロード、およびリアルタイム パスには、それぞれ明示的な回復ルールが必要です。",
|
|
20994
|
+
"ia.network.prerequisite1": "デバッグ前にリクエスト、ダウンロード、およびリアルタイムのパスを統合することで、タイムアウト、再試行、およびエラーの可視性が各ページで異なる実装にならないようにします。",
|
|
20995
|
+
"ia.network.prerequisite2": "HTTP、ダウンロード、長時間接続を同じ障害タイプとして扱うのではなく、異なるフォールバックとユーザー フィードバックを用意します。",
|
|
20996
|
+
"ia.network.step1": "リクエスト、ダウンロード、およびソケット呼び出しを共有レイヤーの背後でラップするため、タイムアウト、キャンセル、再試行、およびログが一貫して処理されます。",
|
|
20997
|
+
"ia.network.step2": "`getNetworkType`、ネットワーク変更リスナー、および弱いネットワーク リスナーを使用して、ページがサイレントに失敗するのではなくネットワーク変更に反応することを検証します。",
|
|
20998
|
+
"ia.network.step3": "デバイス上で、状態の復元が実際に完了するように、弱いネットワーク、再接続、ダウンロードの中断、およびソケットの回復に焦点を当てます。",
|
|
20999
|
+
"ia.network.summary": "ネットワークとリアルタイムでは、使用可能な弱いネットワーク、切断、および回復動作に焦点を当てて、`request`、`downloadFile`、`connectSocket`、およびネットワーク ステータスの観察をカバーします。",
|
|
21000
|
+
"ia.network.tip1": "理想的なネットワークだけをテストしないでください。実際の問題のほとんどは、タイムアウト、ダウンロード途中のアセット、切断された接続、および繰り返しの再接続試行によって発生します。",
|
|
21001
|
+
"ia.network.tip2": "リアルタイム フローは、クローズ、バックグラウンド/フォアグラウンド遷移、および回復後の再サブスクライブ ロジックを明示的にカバーする必要があります。",
|
|
21002
|
+
"ia.overview.section.foundation.desc": "ゲームに必要な画面適応、ネットワーク設定、リソース読み込み、サブパッケージを準備します。",
|
|
21003
|
+
"ia.overview.section.foundation.title": "コア機能",
|
|
21004
|
+
"ia.overview.section.growth.desc": "これらの機能はエントリ シーンと再訪問パスに大きく依存するため、シーンの選択と報酬ループには特別な注意が必要です。",
|
|
21005
|
+
"ia.overview.section.growth.title": "成長と再訪",
|
|
21006
|
+
"ia.overview.section.identity.desc": "まずミニゲーム ID を確立し、次に必要な場合にのみプロファイルまたは権限スコープをリクエストします。",
|
|
21007
|
+
"ia.overview.section.identity.title": "ログインとユーザー認可",
|
|
21008
|
+
"ia.overview.section.monetization.desc": "収益は主に支払いと広告から来ており、どちらもポータルの有効化、ビジネス ループの検証、デバイスの回帰が必要です。",
|
|
21009
|
+
"ia.overview.section.monetization.title": "収益化",
|
|
21010
|
+
"ia.overview.section.share.desc": "プレイヤーがゲームを共有し、正しいゲーム内シーンに戻れるようにします。",
|
|
21011
|
+
"ia.overview.section.share.title": "共有と成長",
|
|
21012
|
+
"ia.payment.highlight1": "実際の支払いループは、支払いパネルを開くだけではなく、注文の作成、支払いの呼び出し、検証、履行です。",
|
|
21013
|
+
"ia.payment.highlight2": "IAP モックを使用して反復処理を高速化し、デバイス上のバックエンド結果に対して実際の Beans の支払いを検証します。",
|
|
21014
|
+
"ia.payment.prerequisite1": "まずビジネスの検証と契約の署名を完了してから、収益化でアプリ内購入を有効にします。支払いエンティティは、検証されたビジネス エンティティと一致する必要があります。",
|
|
21015
|
+
"ia.payment.prerequisite2": "製品構成、テストアカウント、注文の作成、永続化、検証のためのバックエンド機能を準備します。ローカル反復の場合は、最初に IAP モックを有効にしてメイン ブランチをカバーします。",
|
|
21016
|
+
"ia.payment.step1": "ポータルの有効化、製品の設定、支払い情報を完了し、バックエンド注文の作成、注文の永続化、支払い結果の検証を接続します。",
|
|
21017
|
+
"ia.payment.step2": "クライアントの支払い呼び出しとコールバック処理を統合し、最初に IAP モックを使用して、成功、失敗、キャンセル、および繰り返しタップの分岐をカバーします。",
|
|
21018
|
+
"ia.payment.step3": "次に、実デバイスのプレビューまたは実デバイスのデバッグに切り替え、実際の支払い、バックエンド検証、フルフィルメント/クレジット、および完全なループとしての再試行処理を検証します。",
|
|
21019
|
+
"ia.payment.summary": "IAP 収益化は、バックエンド注文の作成、クライアント側の支払い呼び出し、および仮想商品または付加価値サービスのバックエンド検証/履行の完全なチェーンであり、サポートされている唯一の支払い方法として TikTok Bean が使用されます。",
|
|
21020
|
+
"ia.payment.tip1": "クライアントの成功コールバックを最終的な真実として扱わないでください。フルフィルメントまたはクレジットは、バックエンド検証または正式な注文状態に依存する必要があります。",
|
|
21021
|
+
"ia.payment.tip2": "モックは反復速度の点で便利ですが、特に弱いネットワーク、重複した順序、キャンセル、およびタイムアウトの場合には、リリース前に実際のデバイスの回帰が依然として必要です。",
|
|
21022
|
+
"ia.shareMessage.highlight1": "`shareAppMessage` の場合、カードのタイトル、説明、およびカバーは、ビジネス側の動的なカスタマイズからではなく、開発者ポータルのゲームの基本情報から取得されます。",
|
|
21023
|
+
"ia.shareMessage.highlight2": "ビジネス側が本当に設計する必要があるのは `query` です。これにより、プロアクティブな共有、ミッションの共有、およびキャンペーンの共有が正しいゲーム内シナリオに反映されるようになります。",
|
|
21024
|
+
"ia.shareMessage.prerequisite1": "機能がすべてのランタイムに存在すると仮定するのではなく、最初にクライアント バージョンのサポートを確認し、`TTMinis.game.canIUse('shareAppMessage')` で可用性を調べます。",
|
|
21025
|
+
"ia.shareMessage.prerequisite2": "アプリ内メッセージ カードのタイトル、説明、カバーはそのポータル設定から取得されるため、最初にゲームの基本情報が開発者ポータルで正しく設定されていることを確認してください。次に、ビジネス ロジックを `query` と着陸動作に焦点を当てます。",
|
|
21026
|
+
"ia.shareMessage.step1": "獲得、リコール、またはキャンペーン共有に適合するページに `TTMinis.game.shareAppMessage` を統合し、`query` 値が現在のビジネス シナリオを正確に表していることを確認します。",
|
|
21027
|
+
"ia.shareMessage.step2": "成功、キャンセル、失敗、繰り返しタップの分岐に焦点を当て、アプリ内メッセージ共有アクション、コールバック、ユーザーフィードバックがすべて安定した状態を維持できるようにします。",
|
|
21028
|
+
"ia.shareMessage.step3": "デバイス上でメッセージ カードのプレゼンテーションと共有後のリターン パスを確認し、受信者が適切なページに到達し、クエリ主導の状態が正しく復元されるようにします。",
|
|
21029
|
+
"ia.shareMessage.summary": "`shareAppMessage` は TikTok のアプリ内メッセージ共有です。カードのタイトル、説明、カバーは開発者ポータルで設定されたゲームの基本情報から取得されますが、ビジネス側の設計の焦点は、`query` が正確なゲーム内共有シナリオをどのように実行するかです。",
|
|
21030
|
+
"ia.shareMessage.tip1": "これは、アプリ内メッセージ カードの共有機能として説明した方が適切ですが、カードのタイトル、説明、および表紙は、共有時にビジネス コードによって動的にカスタマイズされません。実際にコントロールするのは、`query` と着陸の流れです。",
|
|
21031
|
+
"ia.shareMessage.tip2": "多くの共有エントリが存在する場合、`query` の生成と解析を集中化します。共有時間オーバーライドがサポートされていると想定するのではなく、開発者ポータルでゲームの基本情報を個別に管理します。",
|
|
21032
|
+
"ia.shareStory.highlight1": "`shareToStory` はより視覚的ですが、ビジネス側が慎重に設計する必要があるのは `query` です。これにより、シェアは正しいゲーム内シナリオに戻ることができます。",
|
|
21033
|
+
"ia.shareStory.highlight2": "Story の専用デバイス回帰を実行し、アセットのプレゼンテーション品質と `query` 主導のリターンパスの安定性の両方をチェックします。",
|
|
21034
|
+
"ia.shareStory.prerequisite1": "ストーリーエントリをすべてのフローに強制するのではなく、どのキャンペーン、ゲームプレイ、結果ページがストーリー共有に実際に適しているかを特定します。",
|
|
21035
|
+
"ia.shareStory.prerequisite2": "まずストーリーに適したアセットを準備し、次に `query` 値とランディング動作を一緒に設計します。ゲーム内の返品ロジックを曖昧にしたまま、ビジュアル素材のみを最適化しないでください。",
|
|
21036
|
+
"ia.shareStory.step1": "視覚的な伝播に適したページに `shareToStory` を統合し、選択した資産と `query` 値の両方がアクティブなビジネス シナリオを正しく表していることを確認します。",
|
|
21037
|
+
"ia.shareStory.step2": "ストーリー共有プレゼンテーションとユーザー フィードバックの両方が期待どおりに動作するように、トリガー、キャンセル、失敗、および複数アセットのブランチをカバーします。",
|
|
21038
|
+
"ia.shareStory.step3": "デバイスで、ストーリー共有後のリターン パスを確認し、ターゲット ページ、キャンペーンの状態、パラメータが正しく復元されていることを確認します。",
|
|
21039
|
+
"ia.shareStory.summary": "`shareToStory` はストーリーの共有に重点を置いています。表示されるプレゼンテーションはストーリー アセット自体に大きく依存しますが、ビジネス側の設計の焦点は依然として `query` 値と共有ランディング後のフローです。",
|
|
21040
|
+
"ia.shareStory.tip1": "ストーリー共有は、メッセージ共有の単純なコピーとして扱われるべきではありません。資産表現は一部ですが、`query` と共有ランディング後のフローは、依然としてビジネス側の慎重な設計が必要です。",
|
|
21041
|
+
"ia.shareStory.tip2": "Story が強力なビジュアル素材に依存している場合は、アセットのプレゼンテーションと、`query` 主導のリターン パスが正しいページ状態を復元するかどうかの両方について、集中的な実デバイス チェックを実行します。",
|
|
21042
|
+
"ia.shortcut.highlight1": "ショートカットの追加、ホーム画面からの復帰、報酬の受け取り条件を確認します。",
|
|
21043
|
+
"ia.shortcut.highlight2": "入口のシーンと `canReceiveReward` を確認し、ゲーム内の報酬付与を検証します。",
|
|
21044
|
+
"ia.shortcut.prerequisite1": "互換性: `TTMinis.game.canIUse('addShortcut')` によるプローブのサポート。 TikTok 41.0.0+ で検証します (iOS には 41.40+ が必要です)。",
|
|
21045
|
+
"ia.shortcut.prerequisite2": "報酬の検証: 実際のユーザー フローでは、セッションがホーム画面のショートカットから起動された場合にのみ、`TTMinis.game.getShortcutMissionReward()` は `canReceiveReward=true` を返します。 `scene_shortcut` 起動モードでは、セッション自体がすでにそのエントリをシミュレートしています。",
|
|
21046
|
+
"ia.shortcut.step1": "UI に明確なエントリ ポイントを追加します。`canIUse('addShortcut')` をチェックしてから、`TTMinis.game.addShortcut()` を呼び出し、デバッグの失敗時に `errorCode/errorMsg` を記録します。",
|
|
21047
|
+
"ia.shortcut.step2": "ローカル デバッグの場合: `ttmg dev` を実行 → 起動モードで `Desktop Shortcut` シーン (`scene_shortcut`) を選択 → スキャンして入力します。このセッションは、デスクトップ ショートカット エントリから開くことをすでにシミュレートしています。",
|
|
21048
|
+
"ia.shortcut.step3": "`TTMinis.game.getShortcutMissionReward()` を直接呼び出して、`canReceiveReward` を確認します。 true の場合、報酬/請求フローに進みます。 `addShortcut` を維持し、実際のユーザー フロー回帰のために実際のホーム画面を再度開きます。",
|
|
21049
|
+
"ia.shortcut.summary": "プレイヤーがゲームをホーム画面に追加し、ショートカットから戻って条件を満たした場合に報酬を受け取れるようにします。",
|
|
21050
|
+
"ia.shortcut.tip1": "`canReceiveReward` をエントリーソースシグナルとして扱います: ショートカットの追加が成功しても、現在のセッションが再訪問報酬を請求できる資格があることを意味するわけではありません。",
|
|
21051
|
+
"ia.shortcut.tip2": "ゲーム内の適切なタイミングでショートカット追加の利点を説明し、報酬条件と重複付与の防止を確認します。",
|
|
21052
|
+
"ia.sidebar.highlight1": "サイドバーの入口、タスク状態、報酬の受け取り条件をまとめて確認します。",
|
|
21053
|
+
"ia.sidebar.highlight2": "ゲーム内の適切な入口を選び、ゲームへの復帰と報酬の受け取りを実機で確認します。",
|
|
21054
|
+
"ia.sidebar.prerequisite1": "アカウントのリージョンがサポートされているロールアウト内にあることを確認し、最初にビジネス コードの `canIUse` で機能のサポートを確認してください。",
|
|
21055
|
+
"ia.sidebar.prerequisite2": "デフォルトの QR パスを維持する代わりに、起動モードで専用のサイドバー再訪シーンを使用します。",
|
|
21056
|
+
"ia.sidebar.step1": "起動モードに移動し、`Sidebar revisit` シーンを選択し、専用のデバッグ モードとして保存します。",
|
|
21057
|
+
"ia.sidebar.step2": "ローカル デバッグの場合は、`ttmg dev` を実行し、起動モードを `scene_center` に切り替えて、スキャンして開始します。このセッションはすでにサイドバー エントリからのオープンをシミュレートしています。",
|
|
21058
|
+
"ia.sidebar.step3": "`getEntranceMissionReward` を直接呼び出して、`canReceiveReward` と報酬配信ロジックを確認します。 `startEntranceMission` は、必須の起動モード ステップとして扱うのではなく、実際のユーザー フロー回帰のために保持してください。",
|
|
21059
|
+
"ia.sidebar.summary": "プレイヤーが TikTok のサイドバーからゲームに戻り、条件を満たした場合に再訪報酬を受け取れるようにします。",
|
|
21060
|
+
"ia.sidebar.tip1": "この機能はシーンと領域の条件に大きく依存するため、デフォルトの QR パスのみを介して説明または検証しないでください。",
|
|
21061
|
+
"ia.sidebar.tip2": "タスクを続行できない場合は、報酬ロジックを疑う前に、シーン、アカウント領域、クライアント機能、およびタスクの状態を確認してください。",
|
|
21062
|
+
"ia.subpackage.highlight1": "分割パッケージの品質は、可能な限り分割することではなく、境界定義、プリロードのタイミング、およびフォールバックに依存します。",
|
|
21063
|
+
"ia.subpackage.highlight2": "弱いネットワーク下での最初の画面の速度とその後のシーン遷移の両方を検証します。",
|
|
21064
|
+
"ia.subpackage.prerequisite1": "最初の画面で本当に必要なものと、後のゲームプレイまたはオプションのリソースに属するものを識別します。",
|
|
21065
|
+
"ia.subpackage.prerequisite2": "ビジネス ページ内に分割パッケージ ロジックを分散させるのではなく、一貫した読み込みフォールバック、再試行、読み込み状態の UX を準備します。",
|
|
21066
|
+
"ia.subpackage.step1": "`game.json` の `subpackages` に名前とルートを宣言し、サブパッケージのルートに `game.js` エントリがあることを確認します。初期画面に必要なリソースはメインパッケージに残します。",
|
|
21067
|
+
"ia.subpackage.step2": "事前ダウンロードには `preDownloadSubpackage` を使用します。サブパッケージのエントリを読み込んで実行するには `loadSubpackage` を使用します。シーンに入る前に必要なリソースの読み込みと初期化を完了してください。",
|
|
21068
|
+
"ia.subpackage.step3": "最初の画面の開始時、その後のジャンプ時、および分割パッケージの障害回復時にデバイスと弱いネットワークの回帰を実行して、ユーザーが負荷の途中でスタックしないようにします。",
|
|
21069
|
+
"ia.subpackage.summary": "サブパッケージとプリロードは、最初のパッケージのサイズ、分割境界、リソースの読み込みタイミングに重点を置いているため、最初の画面の速度を損なうことなく、後のコンテンツがスムーズに到着できます。",
|
|
21070
|
+
"ia.subpackage.tip1": "プリロードはすぐに使用できることを意味するものではありません。分割パッケージが本当に必要な場合は、実際のビジネス移行を検証します。",
|
|
21071
|
+
"ia.subpackage.tip2": "より小さなメインパッケージを追求するためだけに過度に分割しないでください。生の分割数よりも、タイミング、フォールバック、依存関係の正確さが重要です。",
|
|
21072
|
+
"ia.uiAdaptation.highlight1": "目標は 1 回限りのページ修正ではなく、セーフ エリア、カプセル ボタン、ウィンドウ メトリクスの共有レイアウト ベースラインです。",
|
|
21073
|
+
"ia.uiAdaptation.highlight2": "タイトル、フローティング ボタン、下部のアクション エリアが妨げられないように、さまざまなサイズの実際のデバイスで検証します。",
|
|
21074
|
+
"ia.uiAdaptation.prerequisite1": "1 ページのみをパッチするのではなく、トップ バー、フローティング アクション、固定下部領域、または全画面ビジュアルに依存する主要なページをリストします。",
|
|
21075
|
+
"ia.uiAdaptation.prerequisite2": "実際のデバイスまたはマルチサイズのプレビュー範囲を、特に異なるアスペクト比、上部の安全領域、および下部のジェスチャ領域にわたって準備します。",
|
|
21076
|
+
"ia.uiAdaptation.step1": "まず、ウィンドウ サイズ、セーフ エリア、およびカプセル ボタンのメトリクスを、各ページで個別にハードコーディングするのではなく、レイアウト ベースラインに集中化します。",
|
|
21077
|
+
"ia.uiAdaptation.step2": "カプセルボタンやシステムセーフエリアと重ならないように、上部のタイトル領域、右上のアクション、下部の固定コントロール、およびモーダルコンテンツを調整します。",
|
|
21078
|
+
"ia.uiAdaptation.step3": "主要なページで実デバイス回帰を実行し、アスペクト比の変更、コンテナのスクロール、全画面の背景、デバイス間のタップ ターゲットを確認します。",
|
|
21079
|
+
"ia.uiAdaptation.summary": "UI の適応は、画面サイズ、カプセル ボタン、安全領域の処理に重点を置いており、主要な UI がデバイス間で表示され、タップ可能で、正しく配置されたままになります。",
|
|
21080
|
+
"ia.uiAdaptation.tip1": "視覚的な位置合わせだけを見てはいけません。タップ領域、モーダルクローズアフォーダンス、下部到達可能性も UI 適応の一部です。",
|
|
21081
|
+
"ia.uiAdaptation.tip2": "カプセルボタンの位置を固定ピクセルでハードコーディングしないでください。プラットフォームのメトリクスと安全領域データに基づく基本レイアウト。",
|
|
21082
|
+
"ia.wasmSplit.summary": "Unity Wasm バンドルをオンデマンドのチャンクに分割して、初期ペイロードを縮小し、コールド スタートを改善します。 Unity エンジンのみ。",
|
|
21083
|
+
scene_ad: "フィード広告用",
|
|
21084
|
+
scene_center: "サイドバー",
|
|
21085
|
+
scene_fyf_promotion_direct_feed_play: "For You フィード ダイレクト プレイ",
|
|
21086
|
+
scene_scan_qrcode: "QR コードをスキャンします",
|
|
21087
|
+
scene_shortcut: "デスクトップショートカット"
|
|
21088
|
+
},
|
|
21089
|
+
"ko-KR": {
|
|
21090
|
+
"ia.action.goLaunchMode": "오픈 실행 모드",
|
|
21091
|
+
"ia.action.goSubpackageCollect": "서브패키지 수집 열기",
|
|
21092
|
+
"ia.action.goNetworkDiagnostics": "네트워크 진단 열기",
|
|
21093
|
+
"ia.action.goPrecheck": "오픈코드 사전점검",
|
|
21094
|
+
"ia.action.goProjectDetail": "프로젝트 세부정보 열기",
|
|
21095
|
+
"ia.action.openCapabilityDoc": "상세안내",
|
|
21096
|
+
"ia.ad.highlight1": "IAA를 활성화하고 먼저 배치를 생성한 다음 코드 경로를 디버깅합니다. 출시되지 않은 앱은 배치 설정조차 완료하지 못하는 경우가 많습니다.",
|
|
21097
|
+
"ia.ad.highlight2": "보상형 비디오에는 정확한 재생 후 보상이 필요한 반면 전면 광고에는 엄격한 속도와 낮은 중단이 필요합니다.",
|
|
21098
|
+
"ia.ad.prerequisite1": "먼저 비즈니스 인증과 계약 체결을 완료한 후 수익화에서 인앱 광고를 활성화하세요. 출시되지 않은 앱은 일반적으로 사용 가능한 광고 게재위치를 생성하지 못하도록 차단됩니다.",
|
|
21099
|
+
"ia.ad.prerequisite2": "미국/EU 출시의 경우 민감한 데이터, USDS/TPRM 및 관련 규정 준수 작업을 조기에 시작하고 IAA Mock 및 실제 장치 검증 경로를 모두 준비하십시오.",
|
|
21100
|
+
"ia.ad.step1": "IAA가 활성화되어 있고 앱이 이미 출시되었는지 확인한 다음 광고 게재위치로 이동하여 필수 게재위치 ID를 생성하세요.",
|
|
21101
|
+
"ia.ad.step2": "비즈니스 코드에서 광고 인스턴스 생성, 로드, 표시 및 콜백 처리를 통합하고 보상형 비디오 및 삽입 광고의 성공, 실패 및 분기를 별도로 확인합니다.",
|
|
21102
|
+
"ia.ad.step3": "보상 정확성, 빈도 제어 및 경험 경계에 대한 최종 회귀에 초점을 맞춥니다. 보상형 비디오는 전체 재생 후에만 보상을 제공해야 하며 전면 광고는 트리거 사이에 최소 60초의 간격이 필요합니다.",
|
|
21103
|
+
"ia.ad.summary": "IAA 광고는 보상형 비디오 및 전면 광고 형식을 다루며, 핵심 체인은 핵심 경험을 손상시키지 않고 활성화, 광고 배치 생성, 광고 로드/표시, 닫기/보상 콜백 처리입니다.",
|
|
21104
|
+
"ia.ad.tip1": "반복적인 콜백, 페이지 전환 또는 재진입으로 인해 중복된 보상이 발생하지 않도록 보상 전달을 멱등적으로 만듭니다.",
|
|
21105
|
+
"ia.ad.tip2": "초기화, 튜토리얼 또는 기타 빈도가 높은 경로에 광고를 강요하지 마세요. 플랫폼 규정 준수 또는 릴리스 게이팅이 여전히 차단되면 먼저 문제를 해결하세요.",
|
|
21106
|
+
"ia.authorize.highlight1": "핵심은 직접적인 클라이언트 측 프로필 액세스가 아니라 `login` 이후 명시적인 범위 외 동의입니다.",
|
|
21107
|
+
"ia.authorize.highlight2": "닉네임, 아바타 및 기타 프로필 데이터는 궁극적으로 한 번의 클라이언트 호출로 반환되지 않고 `access_token`를 사용하여 백엔드에서 가져와야 합니다.",
|
|
21108
|
+
"ia.authorize.prerequisite1": "먼저 프로젝트 세부사항에 용어 URL 및 개인정보 보호 URL을 입력하고 `login` 흐름이 이미 `open_id/access_token`로 안정적으로 교환될 수 있는지 확인하세요.",
|
|
21109
|
+
"ia.authorize.prerequisite2": "실제 비즈니스 요구에 따라 범위를 정의합니다. 닉네임이나 아바타와 같은 프로필 필드가 클라이언트에서 직접 온다고 가정하지 마세요. 동의 후 백엔드 OpenAPI 호출에서 가져와야 합니다.",
|
|
21110
|
+
"ia.authorize.step1": "`tt.login`를 사용하여 일회성 `auth_code`를 가져온 다음 백엔드에서 이를 `open_id` / `access_token`로 교환하여 기본 ID 상태가 준비되도록 합니다.",
|
|
21111
|
+
"ia.authorize.step2": "실제로 추가 프로필 데이터나 권한이 필요한 흐름(예: `scope: 'user.info.basic'`)에서만 `tt.authorize`를 호출하고 첫 번째 동의, 거부 및 재진입 분기를 포함합니다.",
|
|
21112
|
+
"ia.authorize.step3": "사용자가 동의한 후 백엔드가 `access_token`를 사용하여 OpenAPI를 호출하도록 한 다음 반환된 범위, 프로필 필드 및 대체 동작이 모두 비즈니스 경로와 일치하는지 확인합니다.",
|
|
21113
|
+
"ia.authorize.summary": "승인은 `login`가 이미 기본 ID를 설정한 후 사용자에게 `user.info.basic`와 같은 추가 범위를 요청한 다음 백엔드에서 `access_token`를 사용하여 프로필 데이터를 가져오거나 권한 확인을 완료하도록 합니다.",
|
|
21114
|
+
"ia.authorize.tip1": "인증을 로그인으로 축소하지 마세요. `login`는 ID를 설정하고 `authorize`는 추가 범위를 요청하므로 오류 처리는 별도로 유지되어야 합니다.",
|
|
21115
|
+
"ia.authorize.tip2": "필수적이지 않은 권한에 대한 기본 흐름을 차단하지 마십시오. 사용자가 동의를 거부하더라도 기본 흐름은 계속 작동해야 하며 명확한 재트리거 항목이 있어야 합니다.",
|
|
21116
|
+
"ia.directPlay.highlight1": "이전에 플레이한 게임 카드로 피드의 사용자에게 도달하며, 주요 CTA는 `Play now`입니다.",
|
|
21117
|
+
"ia.directPlay.highlight2": "고가치 사용자를 리콜할 때 성장, 전달, QA를 위한 공유 재생 경로로 잘 작동합니다.",
|
|
21118
|
+
"ia.directPlay.prerequisite1": "1단계에서는 미니 게임 패키지 런타임에만 중점을 둡니다. TT 피드 프리젠테이션, 강제 삽입 및 `Play now` 핸드오프는 범위를 벗어납니다.",
|
|
21119
|
+
"ia.directPlay.prerequisite2": "2단계로 이동하기 전에 직접 플레이 장면에서 패키지 실행, 첫 번째 화면 로딩, 핵심 게임 내 경로가 이미 안정적인지 확인하세요.",
|
|
21120
|
+
"ia.directPlay.step1": "실행 모드를 열고 직접 재생 장면을 선택한 다음 패키지 디버깅을 위한 전용 모드를 저장하세요.",
|
|
21121
|
+
"ia.directPlay.step2": "홈으로 돌아가서 스캔하여 실행하세요. 패키지가 안정적으로 들어가고 해당 장면에서 기본 게임 내 흐름을 완료할 수 있는지 확인하세요.",
|
|
21122
|
+
"ia.directPlay.step3": "패키지 자체가 안정된 후에만 여기로 돌아와 다이렉트 플레이 카드 프리젠테이션을 검증하고 미리보기 QR 코드로 전달한 다음 동일한 카드의 라이브 상태를 관리해야 합니다.",
|
|
21123
|
+
"ia.directPlay.summary": "직접 플레이 디버깅은 세 단계로 나누는 것이 가장 좋습니다. 먼저 미니 게임 패키지 자체를 확인한 다음 미리 보기 QR 코드를 사용하여 카드 제시 및 전달 경로를 확인하고 마지막으로 확인된 카드의 라이브 상태를 관리합니다.",
|
|
21124
|
+
"ia.directPlay.tip1": "1단계가 실패하면 피드 프리젠테이션이나 전달 로직의 원인으로 너무 일찍 원인을 지정하는 대신 먼저 일반 패키지/런타임 문제처럼 디버깅하세요.",
|
|
21125
|
+
"ia.directPlay.tip2": "2단계가 실패하면 패키지 런타임 문제를 카드 구성, 자산 또는 전달 경로 문제와 분리합니다. 3단계에서는 2단계에서 이미 검증된 카드의 실시간 상태만 관리합니다.",
|
|
21126
|
+
"ia.login.highlight1": "핵심 출력은 백엔드가 `open_id`/세션 상태로 교환하는 `auth_code`입니다.",
|
|
21127
|
+
"ia.login.highlight2": "`login`와 `authorize`는 서로 다른 경로입니다. `login`는 ID를 설정하고 `authorize`는 추가 범위를 요청합니다.",
|
|
21128
|
+
"ia.login.prerequisite1": "활성 `client_key`가 터미널 디버그 구성과 일치하고 런타임 시 `tt.login` 호출 경로에 올바르게 삽입되었는지 확인하세요.",
|
|
21129
|
+
"ia.login.prerequisite2": "백엔드는 명확한 재시도, 오류 코드 및 세션 만료 처리와 함께 `auth_code` -> `open_id`/세션에 대한 코드 교환 API를 이미 노출해야 합니다.",
|
|
21130
|
+
"ia.login.requirementScope": "비즈니스 로그인은 게임에 계정이 필요한지 백엔드 세션이 필요한지에 따라 다릅니다. 플랫폼 업로드 확인에는 별도로 로그인 API 통합이 필요할 수 있습니다. 이 체크리스트는 해당 체크를 면제하지 않습니다. 사용 시 기기의 로그인 흐름을 확인하세요.",
|
|
21131
|
+
"ia.login.step1": "비즈니스 페이지에서 `tt.login`(또는 비즈니스 래퍼)를 호출하고 클라이언트가 안정적인 `auth_code`를 반환할 수 있는지 확인하세요.",
|
|
21132
|
+
"ia.login.step2": "`auth_code`를 백엔드로 보내고 `open_id`/세션 교환, 세션 지속성 및 다운스트림 요청 전파가 모두 올바르게 작동하는지 확인합니다.",
|
|
21133
|
+
"ia.login.step3": "사용자 취소, 네트워크 오류, 만료된 `auth_code` 및 백엔드 교환 오류 분기를 처리한 다음 UI 대체 및 재시도 전략을 사용할 수 있는지 확인합니다.",
|
|
21134
|
+
"ia.login.summary": "로그인은 미니게임 신원 확인 기능입니다. 클라이언트에서 `auth_code`를 얻은 다음 백엔드는 해당 코드를 `open_id`/세션 상태로 교환합니다.",
|
|
21135
|
+
"ia.login.tip1": "먼저 기본 `auth_code -> open_id / session` 경로를 안정적으로 가져온 다음 로그인 상태에 따라 프로필, 분석 또는 기타 비즈니스 흐름으로 확장하세요.",
|
|
21136
|
+
"ia.login.tip2": "현재 SDK에서는 `login`가 기본적으로 `user.info.open_id`로 설정되어 있습니다. 더 많은 사용자 데이터나 추가 범위가 필요한 경우 `authorize`에서 별도로 요청하세요.",
|
|
21137
|
+
"ia.menu.ad": "광고",
|
|
21138
|
+
"ia.menu.authorize": "권한 동의",
|
|
21139
|
+
"ia.menu.directPlayCard": "다이렉트 플레이 카드",
|
|
21140
|
+
"ia.menu.login": "로그인",
|
|
21141
|
+
"ia.menu.network": "네트워크 및 실시간",
|
|
21142
|
+
"ia.menu.payment": "지불",
|
|
21143
|
+
"ia.menu.shareMessage": "인앱 메시지 공유",
|
|
21144
|
+
"ia.menu.shareStory": "스토리에 공유",
|
|
21145
|
+
"ia.menu.shortcutRevisit": "바로가기 재방문",
|
|
21146
|
+
"ia.menu.sidebarRevisit": "사이드바 재방문",
|
|
21147
|
+
"ia.menu.subpackage": "하위 패키지 및 사전 로드",
|
|
21148
|
+
"ia.menu.uiAdaptation": "UI 적응",
|
|
21149
|
+
"ia.menu.wasmSplit": "Wasm 코드 분할",
|
|
21150
|
+
"ia.monetization.mode.iaa.desc": "광고 위치를 설정하고 광고 요청과 콜백을 확인하세요. 계정이나 서버 세션이 필요하면 `login`을, 추가 프로필 정보가 필요하면 `authorize`를 연동하세요. 네트워크 오류와 게임에서 사용하는 재방문 경로도 확인하세요.",
|
|
21151
|
+
"ia.monetization.mode.iaa.summary": "광고 위치, 요청, 콜백을 확인하세요. 게임 로그인은 필요에 따라 연동하고 업로드 전에 플랫폼의 Login API 요구사항을 확인하세요.",
|
|
21152
|
+
"ia.monetization.mode.iaa.title": "IAA",
|
|
21153
|
+
"ia.monetization.mode.iaap.desc": "하이브리드 수익화의 경우 `login`를 사용하여 먼저 공유 사용자 시스템을 구축한 다음 광고 흐름과 결제 루프를 별도로 검증합니다. 추가 사용자 프로필 데이터가 필요한 경우에만 `authorize`를 추가하고, 동일한 계정 및 게임 플레이 세션에서 두 수익 창출 경로가 모두 안정적으로 유지되는지 확인하고, 재방문 기능을 사용하여 혼합 수익 창출 사용자에 대한 지속적인 반환 트래픽을 확인하세요.",
|
|
21154
|
+
"ia.monetization.mode.iaap.summary": "광고와 결제는 함께 실행되므로 공유 사용자 시스템을 기반으로 전반적인 안정성을 검증하세요.",
|
|
21155
|
+
"ia.monetization.mode.iaap.title": "IAAP",
|
|
21156
|
+
"ia.monetization.mode.iap.desc": "구매 중심 게임의 경우 `login`부터 시작하여 주문 생성, 결제 호출, 백엔드 확인 및 이행을 하나의 폐쇄 루프로 진행합니다. 추가 프로필 데이터 또는 추가 범위가 필요한 경우에만 `authorize`를 추가하고, 약한 네트워크, 결제 취소 및 중복 주문 사례에 특히 주의하고, 재방문 기능을 사용하여 유료 사용자의 반환 경로를 검증합니다.",
|
|
21157
|
+
"ia.monetization.mode.iap.summary": "결제 루프가 먼저 이루어지며 주문 생성, 결제, 확인 및 이행이 처음부터 끝까지 일관되게 유지됩니다.",
|
|
21158
|
+
"ia.monetization.mode.iap.title": "IAP",
|
|
21159
|
+
"ia.network.highlight1": "이 주제는 양호한 연결에서의 단일 요청 성공뿐만 아니라 약한 네트워크 및 복구 동작에 관한 것입니다.",
|
|
21160
|
+
"ia.network.highlight2": "요청, 다운로드 및 실시간 경로에는 각각 명시적인 복구 규칙이 있어야 합니다.",
|
|
21161
|
+
"ia.network.prerequisite1": "디버깅하기 전에 요청, 다운로드 및 실시간 경로를 통합하여 시간 초과, 재시도 및 오류 표시가 각 페이지에서 다르게 구현되지 않도록 합니다.",
|
|
21162
|
+
"ia.network.prerequisite2": "HTTP, 다운로드, 긴 연결을 동일한 실패 유형으로 처리하는 대신 서로 다른 대체 및 사용자 피드백을 준비합니다.",
|
|
21163
|
+
"ia.network.step1": "공유 레이어 뒤에서 요청, 다운로드 및 소켓 호출을 래핑하여 시간 초과, 취소, 재시도 및 로그가 일관되게 처리되도록 합니다.",
|
|
21164
|
+
"ia.network.step2": "`getNetworkType`, 네트워크 변경 수신기 및 약한 네트워크 수신기를 사용하여 페이지가 자동으로 실패하는 대신 네트워크 변경에 반응하는지 확인하세요.",
|
|
21165
|
+
"ia.network.step3": "장치에서는 약한 네트워크, 다시 연결, 다운로드 중단 및 소켓 복구에 회귀를 집중하여 상태 복원이 실제로 완료되도록 합니다.",
|
|
21166
|
+
"ia.network.summary": "네트워크 및 실시간은 사용 가능한 약한 네트워크, 연결 해제 및 복구 동작에 중점을 두고 `request`, `downloadFile`, `connectSocket` 및 네트워크 상태 관찰을 다룹니다.",
|
|
21167
|
+
"ia.network.tip1": "이상적인 네트워크만 테스트하지 마십시오. 대부분의 실제 문제는 시간 초과, 자산 절반 다운로드, 연결 끊김, 반복적인 재연결 시도로 인해 발생합니다.",
|
|
21168
|
+
"ia.network.tip2": "실시간 흐름은 닫기, 백그라운드/포그라운드 전환 및 복구 후 재구독 논리를 명시적으로 다루어야 합니다.",
|
|
21169
|
+
"ia.overview.section.foundation.desc": "게임에 필요한 화면 대응, 네트워크 설정, 리소스 로딩과 서브패키지를 준비하세요.",
|
|
21170
|
+
"ia.overview.section.foundation.title": "핵심 역량",
|
|
21171
|
+
"ia.overview.section.growth.desc": "이러한 기능은 진입 장면과 재방문 경로에 더 많이 의존하므로 장면 선택과 보상 루프에 특별한 주의가 필요합니다.",
|
|
21172
|
+
"ia.overview.section.growth.title": "성장과 재방문",
|
|
21173
|
+
"ia.overview.section.identity.desc": "미니게임 ID를 먼저 설정한 다음 필요한 경우에만 프로필이나 권한 범위를 요청하세요.",
|
|
21174
|
+
"ia.overview.section.identity.title": "로그인 및 권한 동의",
|
|
21175
|
+
"ia.overview.section.monetization.desc": "수익은 주로 결제와 광고에서 발생하며 둘 다 포털 활성화, 비즈니스 루프 검증 및 장치 회귀가 필요합니다.",
|
|
21176
|
+
"ia.overview.section.monetization.title": "수익화",
|
|
21177
|
+
"ia.overview.section.share.desc": "플레이어가 게임을 공유하고 올바른 게임 내 장면으로 돌아올 수 있게 하세요.",
|
|
21178
|
+
"ia.overview.section.share.title": "나눔과 성장",
|
|
21179
|
+
"ia.payment.highlight1": "실제 결제 루프는 단순히 결제 패널을 여는 것이 아니라 주문 생성, 결제 호출, 확인 및 이행입니다.",
|
|
21180
|
+
"ia.payment.highlight2": "IAP Mock을 사용하여 더 빠르게 반복한 다음 장치의 백엔드 결과에 대해 실제 Beans 지불을 검증하십시오.",
|
|
21181
|
+
"ia.payment.prerequisite1": "먼저 비즈니스 확인 및 계약 서명을 완료한 다음 수익화에서 인앱 구매를 활성화하세요. 지급 엔터티는 확인된 비즈니스 엔터티와 일치해야 합니다.",
|
|
21182
|
+
"ia.payment.prerequisite2": "주문 생성, 지속성 및 확인을 위한 제품 구성, 테스트 계정 및 백엔드 기능을 준비합니다. 로컬 반복의 경우 먼저 IAP Mock을 활성화하여 기본 분기를 포괄합니다.",
|
|
21183
|
+
"ia.payment.step1": "포털 활성화, 제품 설정 및 지급 정보를 완료한 다음 백엔드 주문 생성, 주문 지속성 및 결제 결과 확인을 연결합니다.",
|
|
21184
|
+
"ia.payment.step2": "클라이언트 결제 호출 및 콜백 처리를 통합하고 IAP Mock을 먼저 사용하여 성공, 실패, 취소 및 반복 탭 분기를 처리합니다.",
|
|
21185
|
+
"ia.payment.step3": "그런 다음 실제 장치 미리보기 또는 실제 장치 디버그로 전환하고 실제 결제, 백엔드 확인, 이행/크레딧 부여 및 재시도 처리를 전체 루프로 확인합니다.",
|
|
21186
|
+
"ia.payment.summary": "IAP 수익화는 백엔드 주문 생성, 클라이언트 측 결제 호출, 가상 상품 또는 부가가치 서비스에 대한 백엔드 확인/이행의 전체 체인이며, TikTok Beans가 지원되는 유일한 결제 방법입니다.",
|
|
21187
|
+
"ia.payment.tip1": "클라이언트 성공 콜백을 최종 진실로 취급하지 마세요. 이행 또는 적립은 백엔드 확인 또는 신뢰할 수 있는 주문 상태에 의존해야 합니다.",
|
|
21188
|
+
"ia.payment.tip2": "모의는 반복 속도에 유용하지만 릴리스 전에 특히 약한 네트워크, 중복 주문, 취소 및 시간 초과 사례의 경우 실제 장치 회귀가 여전히 필요합니다.",
|
|
21189
|
+
"ia.shareMessage.highlight1": "`shareAppMessage`의 경우 카드 제목, 설명 및 표지는 동적 비즈니스 측 사용자 정의가 아닌 개발자 포털의 게임 기본 정보에서 가져옵니다.",
|
|
21190
|
+
"ia.shareMessage.highlight2": "비즈니스 측면에서 실제로 설계해야 하는 것은 `query`이므로 적극적인 공유, 임무 공유 및 캠페인 공유가 올바른 게임 내 시나리오에 포함될 수 있습니다.",
|
|
21191
|
+
"ia.shareMessage.prerequisite1": "모든 런타임에 해당 기능이 존재한다고 가정하는 대신 먼저 클라이언트 버전 지원을 확인하고 `TTMinis.game.canIUse('shareAppMessage')`로 가용성을 조사하십시오.",
|
|
21192
|
+
"ia.shareMessage.prerequisite2": "인앱 메시지 카드 제목, 설명 및 표지가 해당 포털 구성에서 제공되므로 먼저 개발자 포털에서 게임 기본 정보가 올바르게 구성되었는지 확인하세요. 그런 다음 `query` 및 착륙 동작에 대한 비즈니스 논리에 중점을 둡니다.",
|
|
21193
|
+
"ia.shareMessage.step1": "획득, 회수 또는 캠페인 공유에 적합한 페이지에 `TTMinis.game.shareAppMessage`를 통합하고 `query` 값이 현재 비즈니스 시나리오를 정확하게 나타내는지 확인합니다.",
|
|
21194
|
+
"ia.shareMessage.step2": "성공, 취소, 실패 및 반복 탭 분기에 집중하여 인앱 메시지 공유 작업, 콜백 및 사용자 피드백이 모두 안정적으로 유지되도록 합니다.",
|
|
21195
|
+
"ia.shareMessage.step3": "장치에서 수신자가 올바른 페이지로 이동하고 쿼리 기반 상태가 올바르게 복원되도록 메시지 카드 표시 및 공유 후 반환 경로를 확인합니다.",
|
|
21196
|
+
"ia.shareMessage.summary": "`shareAppMessage`는 TikTok 인앱 메시지 공유입니다. 카드 제목, 설명, 표지는 개발자 포털에 구성된 게임 기본 정보에서 가져온 반면, 비즈니스 측면 디자인의 초점은 `query`가 정확한 게임 내 공유 시나리오를 전달하는 방법입니다.",
|
|
21197
|
+
"ia.shareMessage.tip1": "이는 인앱 메시지 카드 공유 기능으로 더 잘 설명되지만 카드 제목, 설명 및 표지는 공유 시 비즈니스 코드에 의해 동적으로 사용자 정의되지 않습니다. 실제로 제어하는 것은 `query`와 착륙 흐름입니다.",
|
|
21198
|
+
"ia.shareMessage.tip2": "공유 항목이 많은 경우 `query` 생성 및 구문 분석을 중앙 집중화합니다. 공유 시간 재정의가 지원된다고 가정하는 대신 개발자 포털에서 게임 기본 정보를 별도로 유지 관리하세요.",
|
|
21199
|
+
"ia.shareStory.highlight1": "`shareToStory`는 좀 더 시각적이지만 비즈니스 측면에서 여전히 신중하게 디자인해야 하는 것은 `query`이므로 공유가 게임 내 시나리오에 맞게 돌아올 수 있습니다.",
|
|
21200
|
+
"ia.shareStory.highlight2": "Story에 대한 전용 장치 회귀를 수행하여 자산 표시 품질과 `query` 기반 반환 경로 안정성을 모두 확인합니다.",
|
|
21201
|
+
"ia.shareStory.prerequisite1": "모든 흐름에 스토리 항목을 강제로 적용하는 대신 실제로 스토리 공유에 적합한 캠페인, 게임플레이 또는 결과 페이지를 식별하세요.",
|
|
21202
|
+
"ia.shareStory.prerequisite2": "먼저 스토리에 적합한 자산을 준비한 다음 `query` 값과 착지 동작을 함께 설계하세요. 게임 내 반환 논리를 모호하게 유지하면서 시각적 자료에만 최적화하지 마십시오.",
|
|
21203
|
+
"ia.shareStory.step1": "시각적 전파에 적합한 페이지에 `shareToStory`를 통합하고 선택한 자산과 `query` 값이 모두 활성 비즈니스 시나리오를 올바르게 나타내는지 확인합니다.",
|
|
21204
|
+
"ia.shareStory.step2": "트리거, 취소, 실패 및 다중 자산 분기를 다루므로 스토리 공유 프레젠테이션과 사용자 피드백이 모두 예상대로 작동합니다.",
|
|
21205
|
+
"ia.shareStory.step3": "디바이스에서는 스토리 공유 후 복귀 경로를 확인하고 대상 페이지, 캠페인 상태, 매개변수가 올바르게 복원되었는지 확인합니다.",
|
|
21206
|
+
"ia.shareStory.summary": "`shareToStory`는 스토리 공유에 중점을 두고 있습니다. 눈에 보이는 프레젠테이션은 스토리 자산 자체에 더 많이 의존하는 반면, 비즈니스 측면 디자인의 초점은 여전히 `query` 가치와 공유 후 랜딩 흐름입니다.",
|
|
21207
|
+
"ia.shareStory.tip1": "스토리 공유를 단순한 메시지 공유의 사본으로 취급해서는 안 됩니다. 자산 표현은 한 부분이지만 `query`와 공유 후 착륙 흐름은 여전히 신중한 비즈니스 측면 디자인이 필요합니다.",
|
|
21208
|
+
"ia.shareStory.tip2": "Story가 강력한 시각적 자료에 의존하는 경우 자산 표시와 `query` 기반 반환 경로가 올바른 페이지 상태를 복원하는지 여부에 대해 집중적인 실제 장치 검사를 수행합니다.",
|
|
21209
|
+
"ia.shortcut.highlight1": "바로가기 추가, 홈 화면에서 재진입, 보상 수령 조건 확인까지 검증하세요.",
|
|
21210
|
+
"ia.shortcut.highlight2": "진입 장면과 `canReceiveReward`를 확인한 다음 게임의 보상 지급을 검증하세요.",
|
|
21211
|
+
"ia.shortcut.prerequisite1": "호환성: `TTMinis.game.canIUse('addShortcut')`를 통한 프로브 지원. TikTok 41.0.0+(iOS에는 41.40+ 필요)에서 유효성을 검사합니다.",
|
|
21212
|
+
"ia.shortcut.prerequisite2": "보상 검증: 실제 사용자 흐름에서 `TTMinis.game.getShortcutMissionReward()`는 홈 화면 바로가기에서 세션이 시작된 경우에만 `canReceiveReward=true`를 반환합니다. `scene_shortcut` 시작 모드에서는 세션 자체가 이미 해당 항목을 시뮬레이션합니다.",
|
|
21213
|
+
"ia.shortcut.step1": "UI에 명확한 진입점을 추가합니다. `canIUse('addShortcut')`를 확인한 다음 `TTMinis.game.addShortcut()`를 호출하고 디버깅 실패 시 `errorCode/errorMsg`를 기록합니다.",
|
|
21214
|
+
"ia.shortcut.step2": "로컬 디버깅의 경우: `ttmg dev` 실행 → 시작 모드에서 `Desktop Shortcut` 장면(`scene_shortcut`) 선택 → 스캔하여 입력합니다. 해당 세션은 이미 바탕 화면 바로 가기 항목에서 열기를 시뮬레이션하고 있습니다.",
|
|
21215
|
+
"ia.shortcut.step3": "`TTMinis.game.getShortcutMissionReward()`에 직접 전화해서 `canReceiveReward`를 확인하세요. 사실이라면 보상/청구 흐름을 계속 진행하세요. 실제 사용자 흐름 회귀를 위해 `addShortcut`와 실제 홈 화면을 다시 열어두세요.",
|
|
21216
|
+
"ia.shortcut.summary": "플레이어가 홈 화면에 게임 바로가기를 추가하고 이를 통해 돌아와 조건에 맞는 보상을 받게 하세요.",
|
|
21217
|
+
"ia.shortcut.tip1": "`canReceiveReward`를 입력 소스 신호로 처리합니다. 바로가기 추가 성공이 현재 세션이 재방문 보상을 청구할 자격이 있다는 의미는 아닙니다.",
|
|
21218
|
+
"ia.shortcut.tip2": "게임의 적절한 시점에 바로가기 추가의 이점을 안내하고 보상 자격과 중복 지급 방지를 확인하세요.",
|
|
21219
|
+
"ia.sidebar.highlight1": "사이드바 진입점, 미션 상태, 보상 수령 조건을 함께 확인하세요.",
|
|
21220
|
+
"ia.sidebar.highlight2": "적절한 게임 내 진입점을 선택하고 실제 기기에서 게임 복귀와 보상 수령을 확인하세요.",
|
|
21221
|
+
"ia.sidebar.prerequisite1": "계정 지역이 지원되는 롤아웃 내에 있는지 확인하고 먼저 비즈니스 코드에서 `canIUse`를 사용하여 기능 지원을 확인하세요.",
|
|
21222
|
+
"ia.sidebar.prerequisite2": "기본 QR 경로를 유지하는 대신 실행 모드에서 전용 사이드바 재방문 장면을 사용하세요.",
|
|
21223
|
+
"ia.sidebar.step1": "실행 모드로 이동하여 `Sidebar revisit` 장면을 선택하고 전용 디버그 모드로 저장합니다.",
|
|
21224
|
+
"ia.sidebar.step2": "로컬 디버깅의 경우 `ttmg dev`를 실행하고 시작 모드를 `scene_center`로 전환한 다음 스캔하여 들어갑니다. 해당 세션은 이미 사이드바 항목 열기를 시뮬레이션하고 있습니다.",
|
|
21225
|
+
"ia.sidebar.step3": "`getEntranceMissionReward`를 직접 호출하여 `canReceiveReward`와 보상 전달 논리를 확인하세요. `startEntranceMission`를 필수 시작 모드 단계로 처리하는 대신 실제 사용자 흐름 회귀를 위해 유지하세요.",
|
|
21226
|
+
"ia.sidebar.summary": "플레이어가 TikTok 사이드바에서 게임으로 돌아와 조건을 충족할 때 재방문 보상을 받을 수 있게 하세요.",
|
|
21227
|
+
"ia.sidebar.tip1": "이 기능은 장면 및 지역 조건에 따라 크게 달라지므로 기본 QR 경로를 통해서만 설명하거나 검증하지 마세요.",
|
|
21228
|
+
"ia.sidebar.tip2": "작업을 계속할 수 없는 경우 보상 논리를 의심하기 전에 장면, 계정 영역, 클라이언트 기능 및 작업 상태를 확인하십시오.",
|
|
21229
|
+
"ia.subpackage.highlight1": "분할 패키지 품질은 가능한 한 분할하는 것이 아니라 경계 정의, 사전 로드 타이밍 및 대체에 따라 달라집니다.",
|
|
21230
|
+
"ia.subpackage.highlight2": "약한 네트워크에서 첫 번째 화면 속도와 이후 장면 전환을 모두 검증합니다.",
|
|
21231
|
+
"ia.subpackage.prerequisite1": "첫 번째 화면에서 실제로 필요한 것이 무엇인지, 이후의 게임 플레이나 선택적 리소스에 속하는 것이 무엇인지 확인하세요.",
|
|
21232
|
+
"ia.subpackage.prerequisite2": "비즈니스 페이지 내부에 분할 패키지 로직을 분산시키는 대신 일관된 로딩 폴백, 재시도 및 로딩 상태 UX를 준비하세요.",
|
|
21233
|
+
"ia.subpackage.step1": "`game.json`의 `subpackages`에 이름과 루트 디렉터리를 선언하고, 서브패키지 루트에 `game.js` 진입 파일이 있는지 확인하세요. 첫 화면에 필요한 리소스는 메인 패키지에 유지하세요.",
|
|
21234
|
+
"ia.subpackage.step2": "미리 다운로드할 때는 `preDownloadSubpackage`를 사용하세요. 서브패키지 진입점을 로드하고 실행할 때는 `loadSubpackage`를 사용하세요. 장면에 들어가기 전에 필요한 리소스와 초기화가 완료되었는지 확인하세요.",
|
|
21235
|
+
"ia.subpackage.step3": "첫 번째 화면 진입, 이후 점프 및 분할 패키지 오류 복구 시 장치 및 약한 네트워크 회귀를 실행하여 사용자가 로드 중에 막히지 않도록 하세요.",
|
|
21236
|
+
"ia.subpackage.summary": "하위 패키지 및 사전 로드는 첫 번째 패키지 크기, 분할 경계 및 리소스 로딩 타이밍에 중점을 두므로 첫 번째 화면 속도를 저하시키지 않고 이후 콘텐츠가 원활하게 도착할 수 있습니다.",
|
|
21237
|
+
"ia.subpackage.tip1": "사전 로드가 바로 사용 가능함을 의미하지는 않습니다. 분할 패키지가 정말로 필요한 경우 실제 비즈니스 전환을 검증합니다.",
|
|
21238
|
+
"ia.subpackage.tip2": "더 작은 메인 패키지를 쫓기 위해 과도하게 분할하지 마십시오. 타이밍, 대체 및 종속성 정확성은 원시 분할 수보다 더 중요합니다.",
|
|
21239
|
+
"ia.uiAdaptation.highlight1": "목표는 일회성 페이지 수정이 아니라 안전 영역, 캡슐 버튼 및 창 측정항목에 대한 공유 레이아웃 기준선입니다.",
|
|
21240
|
+
"ia.uiAdaptation.highlight2": "제목, 플로팅 버튼, 하단 작업 영역이 방해받지 않도록 다양한 크기의 실제 장치에서 유효성을 검사합니다.",
|
|
21241
|
+
"ia.uiAdaptation.prerequisite1": "한 페이지만 패치하는 대신 상단 표시줄, 플로팅 작업, 고정 하단 영역 또는 전체 화면 시각적 개체에 의존하는 주요 페이지를 나열하세요.",
|
|
21242
|
+
"ia.uiAdaptation.prerequisite2": "특히 다양한 종횡비, 상단 안전 영역 및 하단 동작 영역에 걸쳐 실제 장치 또는 다중 크기 미리보기 범위를 준비합니다.",
|
|
21243
|
+
"ia.uiAdaptation.step1": "먼저 창 크기, 안전 영역 및 캡슐 버튼 측정항목을 각 페이지에 별도로 하드코딩하는 대신 레이아웃 기준선으로 중앙 집중화합니다.",
|
|
21244
|
+
"ia.uiAdaptation.step2": "상단 제목 영역, 상단 오른쪽 작업, 하단 고정 컨트롤 및 모달 콘텐츠를 조정하여 캡슐 버튼이나 시스템 안전 영역과 겹치지 않도록 합니다.",
|
|
21245
|
+
"ia.uiAdaptation.step3": "주요 페이지에서 실제 장치 회귀를 실행하고 종횡비 변경 사항을 확인하고, 컨테이너, 전체 화면 배경을 스크롤하고, 장치 전반에 걸쳐 대상을 탭합니다.",
|
|
21246
|
+
"ia.uiAdaptation.summary": "UI 적응은 화면 크기, 캡슐 버튼 및 안전 영역 처리에 중점을 두므로 주요 UI가 기기 전반에 걸쳐 표시되고 탭 가능하며 올바르게 정렬됩니다.",
|
|
21247
|
+
"ia.uiAdaptation.tip1": "시각적 정렬만 보지 마십시오. 탭 영역, 모달 닫기 어포던스 및 하단 도달 가능성도 UI 적응의 일부입니다.",
|
|
21248
|
+
"ia.uiAdaptation.tip2": "캡슐 버튼 위치를 고정 픽셀로 하드코딩하지 마세요. 플랫폼 측정항목 및 안전 영역 데이터를 기반으로 한 기본 레이아웃입니다.",
|
|
21249
|
+
"ia.wasmSplit.summary": "Unity Wasm 번들을 온디맨드 청크로 분할하여 초기 페이로드를 줄이고 콜드 스타트를 개선합니다. Unity 엔진 전용.",
|
|
21250
|
+
scene_ad: "피드 광고의 경우",
|
|
21251
|
+
scene_center: "사이드바",
|
|
21252
|
+
scene_fyf_promotion_direct_feed_play: "For You 피드 직접 플레이",
|
|
21253
|
+
scene_scan_qrcode: "QR 코드 스캔",
|
|
21254
|
+
scene_shortcut: "데스크탑 바로가기"
|
|
21255
|
+
}
|
|
21256
|
+
};
|
|
21257
|
+
|
|
21517
21258
|
function integrationChecklist(options = {}) {
|
|
21518
21259
|
const base = { schemaVersion: '1', operationId: crypto$1.randomUUID(), command: 'integration',
|
|
21519
21260
|
platformWrite: false, projectChecked: false, deviceVerified: false,
|
|
@@ -24028,7 +23769,12 @@ const store = Store.getInstance({
|
|
|
24028
23769
|
remoteCdnResources: undefined,
|
|
24029
23770
|
nodeResourceHost: '',
|
|
24030
23771
|
previewRemoteResources: undefined,
|
|
23772
|
+
// 打包产出的屏幕配置(packageConfig.screen_config),没有时为 undefined
|
|
23773
|
+
screenConfig: undefined,
|
|
24031
23774
|
isUnderCompiling: false,
|
|
23775
|
+
// Set once the startup compile has ended, success or failure. The IDE builds its
|
|
23776
|
+
// launch link from screenConfig, so it waits for this first.
|
|
23777
|
+
initialCompileSettled: false,
|
|
24032
23778
|
isUnderUploading: false,
|
|
24033
23779
|
isWaitingForUpload: false,
|
|
24034
23780
|
projectInfo: {
|
|
@@ -24672,10 +24418,11 @@ async function compile(context) {
|
|
|
24672
24418
|
if (context?.signal?.aborted)
|
|
24673
24419
|
return;
|
|
24674
24420
|
if (msg.type === 'status' && msg.status === 'end') {
|
|
24675
|
-
const { isSuccess, errorMsg, packages } = msg;
|
|
24421
|
+
const { isSuccess, errorMsg, packages, screenConfig } = msg;
|
|
24676
24422
|
if (!isSuccess) {
|
|
24677
24423
|
store.setState({
|
|
24678
24424
|
isUnderCompiling: false,
|
|
24425
|
+
initialCompileSettled: true,
|
|
24679
24426
|
});
|
|
24680
24427
|
wsServer.sendCompilationStatus('end', {
|
|
24681
24428
|
errorMsg,
|
|
@@ -24700,8 +24447,10 @@ async function compile(context) {
|
|
|
24700
24447
|
else {
|
|
24701
24448
|
store.setState({
|
|
24702
24449
|
isUnderCompiling: false,
|
|
24450
|
+
initialCompileSettled: true,
|
|
24703
24451
|
packages,
|
|
24704
24452
|
remoteCdnResources: msg.remoteCdnResources,
|
|
24453
|
+
screenConfig,
|
|
24705
24454
|
});
|
|
24706
24455
|
/**
|
|
24707
24456
|
* 编译成功后,需要触发上传
|
|
@@ -25146,6 +24895,7 @@ function listen$1() {
|
|
|
25146
24895
|
wsServer.sendUploadStatus('success', {
|
|
25147
24896
|
status: 'success',
|
|
25148
24897
|
packages: store.getState().packages,
|
|
24898
|
+
screenConfig: store.getState().screenConfig,
|
|
25149
24899
|
clientKey: getClientKey().clientKey,
|
|
25150
24900
|
isSuccess: true,
|
|
25151
24901
|
});
|
|
@@ -25666,6 +25416,90 @@ const gameAssetsRoute = {
|
|
|
25666
25416
|
},
|
|
25667
25417
|
};
|
|
25668
25418
|
|
|
25419
|
+
const DEBUG_META_DATA = {
|
|
25420
|
+
allowed_domains: [],
|
|
25421
|
+
client_key_type: 2,
|
|
25422
|
+
stage: 2,
|
|
25423
|
+
description: 'TTMG Dev Game',
|
|
25424
|
+
entity: '',
|
|
25425
|
+
icon_big_url: '',
|
|
25426
|
+
icon_url: '',
|
|
25427
|
+
minis_category: 'mini_game',
|
|
25428
|
+
minis_status: 1,
|
|
25429
|
+
minis_tech_type: 0,
|
|
25430
|
+
minis_type: 2,
|
|
25431
|
+
scopes: ['user.info.open_id', 'user.info.basic'],
|
|
25432
|
+
tos_url: '',
|
|
25433
|
+
update_time: Date.now(),
|
|
25434
|
+
status_code: 0,
|
|
25435
|
+
status_msg: '',
|
|
25436
|
+
name: 'TikTok Mini Game',
|
|
25437
|
+
};
|
|
25438
|
+
function isObject$1(value) {
|
|
25439
|
+
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
25440
|
+
}
|
|
25441
|
+
/**
|
|
25442
|
+
* Debug link query for a package the packer judged landscape (screen_config),
|
|
25443
|
+
* so the client can pick the landscape container before the debug meta
|
|
25444
|
+
* arrives. Portrait and unknown packages add nothing.
|
|
25445
|
+
*/
|
|
25446
|
+
function devLaunchOrientationQuery(screenConfig) {
|
|
25447
|
+
return isObject$1(screenConfig) && screenConfig.orientation === 'landscape'
|
|
25448
|
+
? '&screen_orientation=landscape'
|
|
25449
|
+
: '';
|
|
25450
|
+
}
|
|
25451
|
+
function assertDevRuntimePackages(value) {
|
|
25452
|
+
if (!isObject$1(value) || Object.keys(value).length === 0) {
|
|
25453
|
+
throw new Error('Compiled package metadata must be a non-empty object keyed by package name.');
|
|
25454
|
+
}
|
|
25455
|
+
for (const [name, entry] of Object.entries(value)) {
|
|
25456
|
+
if (!isObject$1(entry)) {
|
|
25457
|
+
throw new Error(`Compiled package metadata for ${name} is invalid.`);
|
|
25458
|
+
}
|
|
25459
|
+
for (const field of ['url', 'md5', 'root', 'main', 'output', 'type']) {
|
|
25460
|
+
if (typeof entry[field] !== 'string') {
|
|
25461
|
+
throw new Error(`Compiled package metadata for ${name} is missing string field ${field}.`);
|
|
25462
|
+
}
|
|
25463
|
+
}
|
|
25464
|
+
if (!Array.isArray(entry.dependencies)) {
|
|
25465
|
+
throw new Error(`Compiled package metadata for ${name} is missing dependencies.`);
|
|
25466
|
+
}
|
|
25467
|
+
}
|
|
25468
|
+
if (!isObject$1(value.__GAME__) || typeof value.__GAME__.main !== 'string') {
|
|
25469
|
+
throw new Error('Compiled package metadata must contain the __GAME__ main package.');
|
|
25470
|
+
}
|
|
25471
|
+
}
|
|
25472
|
+
function buildDevMeta(options) {
|
|
25473
|
+
assertDevRuntimePackages(options.packages);
|
|
25474
|
+
const remoteResources = buildDevRemoteCdnResources(options.remoteCdnResources, options.remoteResourceBaseUrl);
|
|
25475
|
+
const { scopes, update_time, display_icon_url, request_allowed_domains, name, terms_of_service_link, privacy_policy_link, description, } = options.gameDetail || DEBUG_META_DATA;
|
|
25476
|
+
return {
|
|
25477
|
+
...DEBUG_META_DATA,
|
|
25478
|
+
tos_url: terms_of_service_link,
|
|
25479
|
+
privacy_url: privacy_policy_link,
|
|
25480
|
+
name: name || DEBUG_META_DATA.name,
|
|
25481
|
+
icon_url: display_icon_url || DEBUG_META_DATA.icon_url,
|
|
25482
|
+
icon_big_url: display_icon_url || DEBUG_META_DATA.icon_url,
|
|
25483
|
+
client_key: options.clientKey,
|
|
25484
|
+
minis_url: `https://minis-${options.clientKey}-vdebug-minigame.tiktok-minis.us/`,
|
|
25485
|
+
package_config: JSON.stringify({
|
|
25486
|
+
packages: options.packages,
|
|
25487
|
+
...(remoteResources ? { remote_cdn_resources: remoteResources } : {}),
|
|
25488
|
+
...(options.screenConfig === undefined
|
|
25489
|
+
? {}
|
|
25490
|
+
: { screen_config: options.screenConfig }),
|
|
25491
|
+
}),
|
|
25492
|
+
allowed_domains: remoteResources
|
|
25493
|
+
? [...new Set([...(request_allowed_domains || []), new URL(remoteResources.platform_cdn_base_url).origin])]
|
|
25494
|
+
: request_allowed_domains || [],
|
|
25495
|
+
status_code: 0,
|
|
25496
|
+
status_msg: '',
|
|
25497
|
+
update_time,
|
|
25498
|
+
description,
|
|
25499
|
+
scopes,
|
|
25500
|
+
};
|
|
25501
|
+
}
|
|
25502
|
+
|
|
25669
25503
|
function buildCheckPkgsOptions(outputDir) {
|
|
25670
25504
|
return {
|
|
25671
25505
|
entry: process.cwd(),
|
|
@@ -25685,16 +25519,45 @@ function buildCheckPkgsOptions(outputDir) {
|
|
|
25685
25519
|
};
|
|
25686
25520
|
}
|
|
25687
25521
|
|
|
25522
|
+
// Long enough for a large first pack; after it the route answers as before.
|
|
25523
|
+
const INITIAL_COMPILE_WAIT_MS = 60000;
|
|
25524
|
+
/**
|
|
25525
|
+
* Resolves once the startup compile of `ttmg dev` has ended, or after the timeout,
|
|
25526
|
+
* so the launch link is built from the packed screen_config.
|
|
25527
|
+
*/
|
|
25528
|
+
function waitForInitialCompile(timeoutMs = INITIAL_COMPILE_WAIT_MS) {
|
|
25529
|
+
if (store.getState().initialCompileSettled) {
|
|
25530
|
+
return Promise.resolve();
|
|
25531
|
+
}
|
|
25532
|
+
return new Promise(resolve => {
|
|
25533
|
+
let unsubscribe = () => undefined;
|
|
25534
|
+
const timer = setTimeout(() => {
|
|
25535
|
+
unsubscribe();
|
|
25536
|
+
resolve();
|
|
25537
|
+
}, timeoutMs);
|
|
25538
|
+
unsubscribe = store.subscribe(state => {
|
|
25539
|
+
if (!state.initialCompileSettled)
|
|
25540
|
+
return;
|
|
25541
|
+
clearTimeout(timer);
|
|
25542
|
+
unsubscribe();
|
|
25543
|
+
resolve();
|
|
25544
|
+
});
|
|
25545
|
+
});
|
|
25546
|
+
}
|
|
25547
|
+
|
|
25688
25548
|
const devToolVersion = getDevToolVersion();
|
|
25689
25549
|
const gameConfigRoute = {
|
|
25690
25550
|
method: 'get',
|
|
25691
25551
|
path: '/game/config',
|
|
25692
25552
|
handler: async (req, res) => {
|
|
25553
|
+
// `ttmg dev` opens the IDE before the startup compile, and the IDE reads this
|
|
25554
|
+
// route once. Answering early would drop the landscape launch query.
|
|
25555
|
+
await waitForInitialCompile();
|
|
25693
25556
|
const [basic, checkResult] = await Promise.all([
|
|
25694
|
-
ttmgPack.getPkgs({ entryDir: process.cwd() })
|
|
25695
|
-
|
|
25557
|
+
ttmgPack.getPkgs({ entryDir: process.cwd() }),
|
|
25558
|
+
ttmgPack.checkPkgs(buildCheckPkgsOptions(getOutputDir()), {
|
|
25696
25559
|
lang: getPackLanguage(),
|
|
25697
|
-
})
|
|
25560
|
+
}),
|
|
25698
25561
|
]);
|
|
25699
25562
|
const user = getCurrentUser();
|
|
25700
25563
|
const { clientKey } = getClientKey();
|
|
@@ -25709,10 +25572,10 @@ const gameConfigRoute = {
|
|
|
25709
25572
|
nodeServerPort: store.getState().nodeServerPort,
|
|
25710
25573
|
nodeWsPort: store.getState().nodeWsPort,
|
|
25711
25574
|
clientKey,
|
|
25712
|
-
schema: `https://www.tiktok.com/ttmg/dev/${clientKey}?host=${localHost}&port=${store.getState().nodeWsPort}&host_list=${encodeURIComponent(JSON.stringify(localIPs))}`,
|
|
25575
|
+
schema: `https://www.tiktok.com/ttmg/dev/${clientKey}?host=${localHost}&port=${store.getState().nodeWsPort}&host_list=${encodeURIComponent(JSON.stringify(localIPs))}${devLaunchOrientationQuery(store.getState().screenConfig)}`,
|
|
25713
25576
|
...basic,
|
|
25714
25577
|
devToolVersion,
|
|
25715
|
-
checkResult: checkResult.map(
|
|
25578
|
+
checkResult: checkResult.map(localizePackCheckResult),
|
|
25716
25579
|
lang: localLang,
|
|
25717
25580
|
nodeStaticBaseUrl: `http://localhost:${store.getState().nodeHttpPort}/game/files`,
|
|
25718
25581
|
remoteCdnResources: store.getState().remoteCdnResources || null,
|
|
@@ -25760,73 +25623,19 @@ const gameConfigFillbackRoute = {
|
|
|
25760
25623
|
},
|
|
25761
25624
|
};
|
|
25762
25625
|
|
|
25763
|
-
|
|
25764
|
-
return withPackageSnapshot(directory, async (snapshot, snapshotId) => {
|
|
25765
|
-
let configError = null;
|
|
25766
|
-
try {
|
|
25767
|
-
JSON.parse(fs$1.readFileSync(path$1.join(snapshot, 'game.json'), 'utf8'));
|
|
25768
|
-
}
|
|
25769
|
-
catch (error) {
|
|
25770
|
-
configError = error instanceof Error ? error.message : String(error);
|
|
25771
|
-
}
|
|
25772
|
-
const report = configError ? null : await executeCheck({ dir: snapshot, includePassed: true });
|
|
25773
|
-
if (report?.errorCode === 'CHECK_EXECUTION_FAILED')
|
|
25774
|
-
throw new Error(report.error || report.errorCode);
|
|
25775
|
-
const remap = (value) => value?.split(snapshot).join(directory) ?? value;
|
|
25776
|
-
const capabilities = report?.platformCapabilities || [];
|
|
25777
|
-
// Use the same engine classification as package checks and /game/config.
|
|
25778
|
-
// Capability-scan hints and an earlier IDE session are not engine evidence.
|
|
25779
|
-
const engine = configError ? 'unknown' : (await ttmgPack.getPkgs({ entryDir: snapshot }).catch(() => ({ engine: 'unknown' }))).engine;
|
|
25780
|
-
return {
|
|
25781
|
-
data: [...(configError ? [{ type: 'config', passed: false, level: 'error', msg: `game.json: ${remap(configError)}`, file: path$1.join(directory, 'game.json') }] : []), ...(report?.diagnostics || []).map(item => ({
|
|
25782
|
-
type: item.type, passed: item.passed, msg: remap(item.message), level: item.severity,
|
|
25783
|
-
name: item.name, dimension: item.dimension, file: remap(item.location.file),
|
|
25784
|
-
files: item.location.files.map(file => remap(file)), size: item.metrics.sizeBytes,
|
|
25785
|
-
detail: { link: item.help.url, text: item.help.text },
|
|
25786
|
-
})), ...capabilities],
|
|
25787
|
-
precheck: { directory, engine, checkedAt: new Date().toISOString(), snapshotId,
|
|
25788
|
-
stale: packageFingerprint(directory) !== snapshotId },
|
|
25789
|
-
};
|
|
25790
|
-
});
|
|
25791
|
-
}
|
|
25792
|
-
|
|
25626
|
+
const outputDir = getOutputDir();
|
|
25793
25627
|
const gameCheckRoute = {
|
|
25794
25628
|
method: 'get',
|
|
25795
25629
|
path: '/game/check',
|
|
25796
25630
|
handler: async (req, res) => {
|
|
25797
|
-
|
|
25798
|
-
|
|
25799
|
-
|
|
25800
|
-
|
|
25801
|
-
} });
|
|
25802
|
-
return;
|
|
25803
|
-
}
|
|
25804
|
-
res.send({ code: successCode, ...await runLocalPrecheck(process.cwd()) });
|
|
25805
|
-
}
|
|
25806
|
-
catch (error) {
|
|
25807
|
-
res.send({ code: errorCode$1, error: {
|
|
25808
|
-
code: error?.code || 'LOCAL_CHECK_FAILED',
|
|
25809
|
-
message: error instanceof Error ? error.message : String(error),
|
|
25810
|
-
} });
|
|
25811
|
-
}
|
|
25631
|
+
const checkResult = await ttmgPack.checkPkgs(buildCheckPkgsOptions(store.getState().previewOutputDirectory || outputDir), {
|
|
25632
|
+
lang: getPackLanguage(),
|
|
25633
|
+
});
|
|
25634
|
+
res.send({ code: successCode, data: checkResult.map(localizePackCheckResult) });
|
|
25812
25635
|
},
|
|
25813
25636
|
};
|
|
25814
25637
|
|
|
25815
25638
|
const changelog = [
|
|
25816
|
-
{
|
|
25817
|
-
title: '0.4.8',
|
|
25818
|
-
changes: { feature: [{ module: 'check', desc: {
|
|
25819
|
-
'zh-CN': '必接能力检查改为平台能力检查:展示静态调用线索、文件位置与接入指引,无法检查时说明原因;实际功能仍须真机验证。',
|
|
25820
|
-
'en-US': 'Platform capability checks show static calls, file locations and integration guides, with reasons when scanning is unavailable. Verify actual behavior on a phone.',
|
|
25821
|
-
'ja-JP': 'プラットフォーム機能チェックで静的な呼び出し、ファイル位置、接続ガイドを表示します。チェック不可の場合は理由を示します。実際の動作は実機で検証してください。',
|
|
25822
|
-
'ko-KR': '플랫폼 기능 검사에서 정적 호출, 파일 위치 및 연동 가이드를 표시하고 검사할 수 없을 때 이유를 안내합니다. 실제 동작은 휴대폰에서 검증하세요.',
|
|
25823
|
-
} }, { module: 'new', desc: {
|
|
25824
|
-
'zh-CN': '能力接入默认按 IAA 展示;所有游戏均须接入桌面快捷方式与侧边栏回访,IAP 或身份功能须接入登录。',
|
|
25825
|
-
'en-US': 'Integration guidance defaults to IAA. Both revisit entries are required for every game; login is required for IAP and player-identity features.',
|
|
25826
|
-
'ja-JP': '機能接続ガイドは既定で IAA を表示します。両方の再訪問入口は全ゲームで必須です。IAP やユーザー識別機能にはログインが必要です。',
|
|
25827
|
-
'ko-KR': '기능 연동 안내는 기본적으로 IAA를 표시합니다. 두 재방문 진입점은 모든 게임에 필수이며 IAP 및 플레이어 식별 기능에는 로그인이 필요합니다.',
|
|
25828
|
-
} }] },
|
|
25829
|
-
},
|
|
25830
25639
|
{
|
|
25831
25640
|
title: '0.4.7',
|
|
25832
25641
|
changes: {
|
|
@@ -27091,7 +26900,7 @@ const gameUploadRoute = {
|
|
|
27091
26900
|
handler: async (req, res) => {
|
|
27092
26901
|
try {
|
|
27093
26902
|
console.log(t('native.server.upload.packingDir', { cwd: process.cwd() }));
|
|
27094
|
-
const
|
|
26903
|
+
const gameZipBuffer = await zipCwdToBuffer();
|
|
27095
26904
|
console.log(t('native.server.upload.packed', {
|
|
27096
26905
|
size: (gameZipBuffer.length / 1024 / 1024).toFixed(2),
|
|
27097
26906
|
}));
|
|
@@ -27118,7 +26927,7 @@ const gameUploadRoute = {
|
|
|
27118
26927
|
errorMessage = error.message;
|
|
27119
26928
|
}
|
|
27120
26929
|
console.error(t('native.server.upload.failed', { error: errorMessage }));
|
|
27121
|
-
res.send({ code: errorCode$1,
|
|
26930
|
+
res.status(500).send({ code: errorCode$1, data: errorMessage });
|
|
27122
26931
|
}
|
|
27123
26932
|
},
|
|
27124
26933
|
};
|
|
@@ -29624,8 +29433,8 @@ function redactSensitive(value) {
|
|
|
29624
29433
|
}
|
|
29625
29434
|
return value;
|
|
29626
29435
|
}
|
|
29627
|
-
function buildDevLaunchUrl({ clientKey, host, hosts, wsPort, mode = 'default', configuration, }) {
|
|
29628
|
-
const base = `https://www.tiktok.com/ttmg/dev/${encodeURIComponent(clientKey)}?host=${encodeURIComponent(host)}&port=${wsPort}&host_list=${encodeURIComponent(JSON.stringify(hosts))}`;
|
|
29436
|
+
function buildDevLaunchUrl({ clientKey, host, hosts, wsPort, mode = 'default', configuration, screenConfig, }) {
|
|
29437
|
+
const base = `https://www.tiktok.com/ttmg/dev/${encodeURIComponent(clientKey)}?host=${encodeURIComponent(host)}&port=${wsPort}&host_list=${encodeURIComponent(JSON.stringify(hosts))}${devLaunchOrientationQuery(screenConfig)}`;
|
|
29629
29438
|
if (mode !== 'client-preview')
|
|
29630
29439
|
return base;
|
|
29631
29440
|
const config = configuration || parseLaunchConfig({ schemaVersion: '1' });
|
|
@@ -29672,7 +29481,7 @@ class DevSessionReporter {
|
|
|
29672
29481
|
this.options.onEvent?.(event);
|
|
29673
29482
|
return event;
|
|
29674
29483
|
}
|
|
29675
|
-
async writeReadyManifest({ pageUrl, version, hosts, httpPort, wsPort, control = null, scanPageUrl, runtimeLogsDirectory, updateMode, }) {
|
|
29484
|
+
async writeReadyManifest({ pageUrl, version, hosts, httpPort, wsPort, control = null, scanPageUrl, runtimeLogsDirectory, updateMode, screenConfig, }) {
|
|
29676
29485
|
const advertisedHost = hosts[0] || '127.0.0.1';
|
|
29677
29486
|
const rawUrl = buildDevLaunchUrl({
|
|
29678
29487
|
clientKey: this.options.clientKey,
|
|
@@ -29681,6 +29490,7 @@ class DevSessionReporter {
|
|
|
29681
29490
|
wsPort,
|
|
29682
29491
|
mode: this.options.mode || 'default',
|
|
29683
29492
|
configuration: this.options.configuration,
|
|
29493
|
+
screenConfig,
|
|
29684
29494
|
});
|
|
29685
29495
|
await QRCode.toFile(this.qrFile, rawUrl, { width: 320, margin: 2 });
|
|
29686
29496
|
const manifest = {
|
|
@@ -29893,7 +29703,7 @@ function parseJsonBody(response) {
|
|
|
29893
29703
|
return null;
|
|
29894
29704
|
}
|
|
29895
29705
|
}
|
|
29896
|
-
function isObject
|
|
29706
|
+
function isObject(value) {
|
|
29897
29707
|
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
29898
29708
|
}
|
|
29899
29709
|
function fallbackFormattedLine(record) {
|
|
@@ -29901,7 +29711,7 @@ function fallbackFormattedLine(record) {
|
|
|
29901
29711
|
return `[${level}][${record.category || record.source}] ${record.message}`;
|
|
29902
29712
|
}
|
|
29903
29713
|
function normalizeRuntimeRecord(value) {
|
|
29904
|
-
if (!isObject
|
|
29714
|
+
if (!isObject(value))
|
|
29905
29715
|
return null;
|
|
29906
29716
|
if (!isDecimalCursor(value.sequence) ||
|
|
29907
29717
|
typeof value.timestamp_ms !== 'number' ||
|
|
@@ -29939,7 +29749,7 @@ function normalizeRuntimeRecord(value) {
|
|
|
29939
29749
|
delete normalized.category;
|
|
29940
29750
|
else
|
|
29941
29751
|
normalized.category = category;
|
|
29942
|
-
if (!isObject
|
|
29752
|
+
if (!isObject(value.attributes))
|
|
29943
29753
|
delete normalized.attributes;
|
|
29944
29754
|
if (rawLevel === undefined)
|
|
29945
29755
|
delete normalized.raw_level;
|
|
@@ -29951,7 +29761,7 @@ function redactSensitiveValue(value, token) {
|
|
|
29951
29761
|
if (Array.isArray(value)) {
|
|
29952
29762
|
return value.map(child => redactSensitiveValue(child, token));
|
|
29953
29763
|
}
|
|
29954
|
-
if (isObject
|
|
29764
|
+
if (isObject(value)) {
|
|
29955
29765
|
return Object.fromEntries(Object.entries(value).map(([key, child]) => [
|
|
29956
29766
|
key,
|
|
29957
29767
|
/access[_-]?token|authorization|cookie/i.test(key)
|
|
@@ -30155,7 +29965,7 @@ class RuntimeDebugClient {
|
|
|
30155
29965
|
return;
|
|
30156
29966
|
}
|
|
30157
29967
|
if (message?.method === 'error') {
|
|
30158
|
-
const payload = isObject
|
|
29968
|
+
const payload = isObject(message.payload) ? message.payload : {};
|
|
30159
29969
|
websocketError = new RuntimeDebugError(mapWireErrorCode(payload.code, 'websocket'), protocolErrorMessage('websocket'));
|
|
30160
29970
|
this.reconnectBlocked = true;
|
|
30161
29971
|
this.setStatus('disconnected', {
|
|
@@ -30167,7 +29977,7 @@ class RuntimeDebugClient {
|
|
|
30167
29977
|
return;
|
|
30168
29978
|
}
|
|
30169
29979
|
if (message?.method === 'runtimeLogStreamReady') {
|
|
30170
|
-
const payload = isObject
|
|
29980
|
+
const payload = isObject(message.payload) ? message.payload : {};
|
|
30171
29981
|
if (payload.protocol_version !== RUNTIME_DEBUG_PROTOCOL_VERSION) {
|
|
30172
29982
|
websocketError = new RuntimeDebugError('RUNTIME_DEBUG_UNSUPPORTED', 'Runtime authentication returned an unsupported protocol version.');
|
|
30173
29983
|
this.reconnectBlocked = true;
|
|
@@ -30211,7 +30021,7 @@ class RuntimeDebugClient {
|
|
|
30211
30021
|
if (message?.method === 'runtimeLogBatch') {
|
|
30212
30022
|
if (!authenticated)
|
|
30213
30023
|
return;
|
|
30214
|
-
const payload = isObject
|
|
30024
|
+
const payload = isObject(message.payload) ? message.payload : {};
|
|
30215
30025
|
if (payload.protocol_version !== RUNTIME_DEBUG_PROTOCOL_VERSION ||
|
|
30216
30026
|
payload.session_id !== discovery.runtimeSessionId ||
|
|
30217
30027
|
!isDecimalCursor(payload.from_cursor) ||
|
|
@@ -30376,10 +30186,10 @@ class RuntimeDebugClient {
|
|
|
30376
30186
|
readProtocolEnvelope(response, operation) {
|
|
30377
30187
|
const discovery = this.requireDiscovery();
|
|
30378
30188
|
const body = parseJsonBody(response);
|
|
30379
|
-
if (!isObject
|
|
30189
|
+
if (!isObject(body)) {
|
|
30380
30190
|
throw new RuntimeDebugError(mapWireErrorCode(null, operation), protocolErrorMessage(operation));
|
|
30381
30191
|
}
|
|
30382
|
-
const data = isObject
|
|
30192
|
+
const data = isObject(body.data) ? body.data : {};
|
|
30383
30193
|
if (typeof data.session_id === 'string' &&
|
|
30384
30194
|
data.session_id !== discovery.runtimeSessionId) {
|
|
30385
30195
|
throw new RuntimeDebugError('RUNTIME_SESSION_MISMATCH', 'The Runtime Debug response belongs to a different session.');
|
|
@@ -30411,8 +30221,8 @@ class RuntimeDebugClient {
|
|
|
30411
30221
|
signal,
|
|
30412
30222
|
});
|
|
30413
30223
|
const body = parseJsonBody(response);
|
|
30414
|
-
if (isObject
|
|
30415
|
-
const data = isObject
|
|
30224
|
+
if (isObject(body)) {
|
|
30225
|
+
const data = isObject(body.data) ? body.data : {};
|
|
30416
30226
|
if (typeof data.session_id === 'string' &&
|
|
30417
30227
|
data.session_id !== this.runtimeSessionId) {
|
|
30418
30228
|
throw new RuntimeDebugError('RUNTIME_SESSION_MISMATCH', 'The Runtime Debug response belongs to a different session.');
|
|
@@ -30714,77 +30524,6 @@ function runtimeFailurePayload(error) {
|
|
|
30714
30524
|
};
|
|
30715
30525
|
}
|
|
30716
30526
|
|
|
30717
|
-
const DEBUG_META_DATA = {
|
|
30718
|
-
allowed_domains: [],
|
|
30719
|
-
client_key_type: 2,
|
|
30720
|
-
stage: 2,
|
|
30721
|
-
description: 'TTMG Dev Game',
|
|
30722
|
-
entity: '',
|
|
30723
|
-
icon_big_url: '',
|
|
30724
|
-
icon_url: '',
|
|
30725
|
-
minis_category: 'mini_game',
|
|
30726
|
-
minis_status: 1,
|
|
30727
|
-
minis_tech_type: 0,
|
|
30728
|
-
minis_type: 2,
|
|
30729
|
-
scopes: ['user.info.open_id', 'user.info.basic'],
|
|
30730
|
-
tos_url: '',
|
|
30731
|
-
update_time: Date.now(),
|
|
30732
|
-
status_code: 0,
|
|
30733
|
-
status_msg: '',
|
|
30734
|
-
name: 'TikTok Mini Game',
|
|
30735
|
-
};
|
|
30736
|
-
function isObject(value) {
|
|
30737
|
-
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
30738
|
-
}
|
|
30739
|
-
function assertDevRuntimePackages(value) {
|
|
30740
|
-
if (!isObject(value) || Object.keys(value).length === 0) {
|
|
30741
|
-
throw new Error('Compiled package metadata must be a non-empty object keyed by package name.');
|
|
30742
|
-
}
|
|
30743
|
-
for (const [name, entry] of Object.entries(value)) {
|
|
30744
|
-
if (!isObject(entry)) {
|
|
30745
|
-
throw new Error(`Compiled package metadata for ${name} is invalid.`);
|
|
30746
|
-
}
|
|
30747
|
-
for (const field of ['url', 'md5', 'root', 'main', 'output', 'type']) {
|
|
30748
|
-
if (typeof entry[field] !== 'string') {
|
|
30749
|
-
throw new Error(`Compiled package metadata for ${name} is missing string field ${field}.`);
|
|
30750
|
-
}
|
|
30751
|
-
}
|
|
30752
|
-
if (!Array.isArray(entry.dependencies)) {
|
|
30753
|
-
throw new Error(`Compiled package metadata for ${name} is missing dependencies.`);
|
|
30754
|
-
}
|
|
30755
|
-
}
|
|
30756
|
-
if (!isObject(value.__GAME__) || typeof value.__GAME__.main !== 'string') {
|
|
30757
|
-
throw new Error('Compiled package metadata must contain the __GAME__ main package.');
|
|
30758
|
-
}
|
|
30759
|
-
}
|
|
30760
|
-
function buildDevMeta(options) {
|
|
30761
|
-
assertDevRuntimePackages(options.packages);
|
|
30762
|
-
const remoteResources = buildDevRemoteCdnResources(options.remoteCdnResources, options.remoteResourceBaseUrl);
|
|
30763
|
-
const { scopes, update_time, display_icon_url, request_allowed_domains, name, terms_of_service_link, privacy_policy_link, description, } = options.gameDetail || DEBUG_META_DATA;
|
|
30764
|
-
return {
|
|
30765
|
-
...DEBUG_META_DATA,
|
|
30766
|
-
tos_url: terms_of_service_link,
|
|
30767
|
-
privacy_url: privacy_policy_link,
|
|
30768
|
-
name: name || DEBUG_META_DATA.name,
|
|
30769
|
-
icon_url: display_icon_url || DEBUG_META_DATA.icon_url,
|
|
30770
|
-
icon_big_url: display_icon_url || DEBUG_META_DATA.icon_url,
|
|
30771
|
-
client_key: options.clientKey,
|
|
30772
|
-
minis_url: `https://minis-${options.clientKey}-vdebug-minigame.tiktok-minis.us/`,
|
|
30773
|
-
package_config: JSON.stringify({
|
|
30774
|
-
packages: options.packages,
|
|
30775
|
-
...(remoteResources ? { remote_cdn_resources: remoteResources } : {}),
|
|
30776
|
-
}),
|
|
30777
|
-
allowed_domains: remoteResources
|
|
30778
|
-
? [...new Set([...(request_allowed_domains || []), new URL(remoteResources.platform_cdn_base_url).origin])]
|
|
30779
|
-
: request_allowed_domains || [],
|
|
30780
|
-
status_code: 0,
|
|
30781
|
-
status_msg: '',
|
|
30782
|
-
update_time,
|
|
30783
|
-
description,
|
|
30784
|
-
scopes,
|
|
30785
|
-
};
|
|
30786
|
-
}
|
|
30787
|
-
|
|
30788
30527
|
// Accept a complete set so malformed or partial requests never reset defaults.
|
|
30789
30528
|
function parseDebugSettings(value) {
|
|
30790
30529
|
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
@@ -30895,11 +30634,12 @@ function guardBuildObservation(result) {
|
|
|
30895
30634
|
|
|
30896
30635
|
// Called synchronously by compileSuccess, before the next serialized compile
|
|
30897
30636
|
// can rewrite outputDir. Uploads and /game/meta always consume this same build.
|
|
30898
|
-
function capturePreviewBuild(sourceDirectory = getOutputDir(), packages = store.getState().packages) {
|
|
30637
|
+
function capturePreviewBuild(sourceDirectory = getOutputDir(), packages = store.getState().packages, screenConfig = store.getState().screenConfig) {
|
|
30899
30638
|
const directory = fs$1.mkdtempSync(path$1.join(os$1.tmpdir(), 'ttmg-preview-build-'));
|
|
30900
30639
|
const dispose = () => fs$1.rmSync(directory, { recursive: true, force: true });
|
|
30901
30640
|
try {
|
|
30902
30641
|
const metadata = structuredClone(packages);
|
|
30642
|
+
const screenConfigSnapshot = structuredClone(screenConfig);
|
|
30903
30643
|
fs$1.cpSync(sourceDirectory, directory, {
|
|
30904
30644
|
recursive: true,
|
|
30905
30645
|
dereference: true,
|
|
@@ -30908,7 +30648,13 @@ function capturePreviewBuild(sourceDirectory = getOutputDir(), packages = store.
|
|
|
30908
30648
|
const remoteCdnResources = fs$1.existsSync(configPath)
|
|
30909
30649
|
? readDevRemoteCdnResources(JSON.parse(fs$1.readFileSync(configPath, 'utf8')).remote_cdn_resources)
|
|
30910
30650
|
: undefined;
|
|
30911
|
-
return {
|
|
30651
|
+
return {
|
|
30652
|
+
directory,
|
|
30653
|
+
packages: metadata,
|
|
30654
|
+
remoteCdnResources,
|
|
30655
|
+
screenConfig: screenConfigSnapshot,
|
|
30656
|
+
dispose,
|
|
30657
|
+
};
|
|
30912
30658
|
}
|
|
30913
30659
|
catch {
|
|
30914
30660
|
dispose();
|
|
@@ -31208,6 +30954,7 @@ class ClientPreviewOrchestrator {
|
|
|
31208
30954
|
meta = buildDevMeta({
|
|
31209
30955
|
clientKey: this.options.clientKey,
|
|
31210
30956
|
packages: build.packages,
|
|
30957
|
+
screenConfig: build.screenConfig,
|
|
31211
30958
|
gameDetail: gameInfo,
|
|
31212
30959
|
remoteCdnResources: build.remoteCdnResources,
|
|
31213
30960
|
remoteResourceBaseUrl: build.remoteCdnResources ? getRemoteResourceBaseUrl() : undefined,
|
|
@@ -33457,6 +33204,7 @@ async function dev(options = {}) {
|
|
|
33457
33204
|
control: controlServer?.address || null,
|
|
33458
33205
|
scanPageUrl: scanPage?.url(startedServer.port),
|
|
33459
33206
|
updateMode,
|
|
33207
|
+
screenConfig: store.getState().screenConfig,
|
|
33460
33208
|
});
|
|
33461
33209
|
scanPage?.activate({
|
|
33462
33210
|
port: startedServer.port,
|