feat: 接入天河链存证接口
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user