fix: use customer token for assets and video

This commit is contained in:
xuejianwu
2026-07-30 09:35:06 +08:00
parent a107e19b8f
commit e111833df6
5 changed files with 63 additions and 75 deletions

View File

@@ -13,7 +13,7 @@
<h1>AI 短剧数字人生产</h1>
</div>
<div class="topbar-actions">
<button class="key-change-button hidden" type="button" id="changeVideoKeyButton">更换视频 Key</button>
<button class="key-change-button hidden" type="button" id="changeVideoKeyButton">更换客户令牌</button>
<div class="connection" id="connectionState">正在检查接口配置…</div>
</div>
</header>
@@ -268,10 +268,10 @@
<div class="key-gate hidden" id="videoKeyGate">
<form class="key-gate-card" id="videoKeyForm">
<span class="section-kicker">首次使用</span>
<h2>输入生视频 Key</h2>
<p>该 Key 用于本次客户的视频生成与费用统计,仅保存在当前浏览器。</p>
<h2>输入客户令牌</h2>
<p>素材库与视频生成共用该令牌,相关费用归属此令牌,仅保存在当前浏览器。</p>
<label class="field">
<span>生视频 Key</span>
<span>客户令牌</span>
<input id="videoKeyInput" type="password" autocomplete="off" spellcheck="false" placeholder="sk-..." required />
</label>
<p class="key-gate-error hidden" id="videoKeyError"></p>
@@ -283,6 +283,6 @@
</div>
<div class="toast hidden" id="toast"></div>
<script src="./app.js?v=26"></script>
<script src="./app.js?v=27"></script>
</body>
</html>