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
+4 -2
View File
@@ -24,7 +24,7 @@ export interface AppConfig {
};
blockchain: {
driver: 'mock' | 'tianhe';
tianhe: { baseUrl: string; appId: string; appKey: string };
tianhe: { baseUrl: string; appId: string; appKey: string; userId: string; userKey: string };
};
seedAdmin: { username: string; password: string; name: string };
logRetentionDays: number;
@@ -68,9 +68,11 @@ export default (): AppConfig => {
blockchain: {
driver: (process.env.BLOCKCHAIN_DRIVER as 'mock' | 'tianhe') || 'mock',
tianhe: {
baseUrl: process.env.TIANHE_BASE_URL || '',
baseUrl: process.env.TIANHE_BASE_URL || 'https://test.api.tichain.tianhecloud.com',
appId: process.env.TIANHE_APP_ID || '',
appKey: process.env.TIANHE_APP_KEY || '',
userId: process.env.TIANHE_USER_ID || '',
userKey: process.env.TIANHE_USER_KEY || '',
},
},
seedAdmin: {