feat: 天河链升级为存证+发行(NFT)双层,新增轮换 UserKey 与 C 端 tokenId 展示
- 上链流程:upload 存证 → publish 铸 NFT → 接口9确认 mint → ONCHAIN,记录 tokenId/合约地址 - blockchain_proof 加 token_id/contract_address 字段(迁移),schema 补 VarChar 注解消除 drift - TianheProvider 新增 publish/updateUserKey;合约地址与 maxTokenId 存系统设置维护 baseTokenId - 轮换 UserKey:接口7 + 设置页「轮换密钥」(二次确认+回显强提示+操作日志) - C 端区块链卡展示数字藏品编号(tokenId)与合约地址 - 测试环境全链路实测通过;媒体上链层级待甲方确认,暂维持 JSON 存证 - docs/天河链文档.md 标注以 APIFox 为准并列勘误
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
"code": "Trace Code",
|
||||
"hash": "Tx Hash",
|
||||
"dataHash": "Data Hash",
|
||||
"tokenId": "Token ID",
|
||||
"contract": "Contract",
|
||||
"blockHeight": "Block Height",
|
||||
"onchainAt": "On-chain Time",
|
||||
"explorer": "View Proof",
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
"code": "唯一追溯码",
|
||||
"hash": "交易哈希",
|
||||
"dataHash": "数据哈希",
|
||||
"tokenId": "数字藏品编号",
|
||||
"contract": "合约地址",
|
||||
"blockHeight": "区块高度",
|
||||
"onchainAt": "上链时间",
|
||||
"explorer": "查看存证",
|
||||
|
||||
@@ -310,6 +310,20 @@
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="data.blockchain.tokenId !== null && data.blockchain.tokenId !== undefined" class="chain-row">
|
||||
<span class="chain-k">{{ t('chain.tokenId') }}</span>
|
||||
<span class="chain-v mono">{{ data.blockchain.tokenId }}</span>
|
||||
</div>
|
||||
<div v-if="data.blockchain.contractAddress" class="chain-row">
|
||||
<span class="chain-k">{{ t('chain.contract') }}</span>
|
||||
<span class="chain-v mono">{{ ellipsis(data.blockchain.contractAddress) }}</span>
|
||||
<button class="icon-copy" :aria-label="t('chain.copy')" :title="t('chain.copy')" @click="copy(data.blockchain.contractAddress)">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" aria-hidden="true">
|
||||
<rect x="9" y="9" width="11" height="11" rx="2" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
<path d="M5 15V5a2 2 0 0 1 2-2h8" fill="none" stroke="currentColor" stroke-width="1.7" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="chain-row">
|
||||
<span class="chain-k">{{ t('chain.blockHeight') }}</span>
|
||||
<span class="chain-v">{{ data.blockchain.blockHeight ?? '-' }}</span>
|
||||
|
||||
Reference in New Issue
Block a user