feat: 接入天河链存证接口

This commit is contained in:
Nixevol
2026-07-06 18:25:55 +08:00
parent 3efc1ecd88
commit 07114b759d
26 changed files with 412 additions and 236 deletions
+14
View File
@@ -14,6 +14,13 @@ const EDITABLE_KEYS = [
'backupSchedule',
'backupRetentionDays',
'backupRetentionCount',
'blockchainDriver',
'tianheEnv',
'tianheBaseUrl',
'tianheAppId',
'tianheAppKey',
'tianheUserId',
'tianheUserKey',
];
@Injectable()
@@ -37,6 +44,13 @@ export class SettingsService {
backupSchedule: 'daily',
backupRetentionDays: '30',
backupRetentionCount: '10',
blockchainDriver: this.config.get<string>('blockchain.driver') || 'mock',
tianheEnv: 'test',
tianheBaseUrl: this.config.get<string>('blockchain.tianhe.baseUrl') || 'https://test.api.tichain.tianhecloud.com',
tianheAppId: this.config.get<string>('blockchain.tianhe.appId') || '',
tianheAppKey: this.config.get<string>('blockchain.tianhe.appKey') || '',
tianheUserId: this.config.get<string>('blockchain.tianhe.userId') || '',
tianheUserKey: this.config.get<string>('blockchain.tianhe.userKey') || '',
};
for (const r of rows) {
map[r.key] = r.key === 'appName' && r.value === '艺术品可信溯源与认证平台' ? '艺术品溯源平台' : r.value;