fix: 出证连接失败时停止查询并允许重试

This commit is contained in:
Nixevol
2026-11-15 13:56:44 +08:00
parent e17ebe53df
commit 72e99daa7b
6 changed files with 51 additions and 13 deletions
+1
View File
@@ -77,6 +77,7 @@ export interface TraceCertificateResult {
status: 'NONE' | 'PENDING' | 'SUBMITTING' | 'CHECKING' | 'WAITING' | 'READY' | 'UNKNOWN' | 'FAILED';
generatedAt: string | null;
certificate: TraceCertificateRecord | null;
message?: string | null;
}
export function requestTraceCertificate(shortCode: string): Promise<TraceCertificateResult> {
return instance.post(`/public/trace/${encodeURIComponent(shortCode)}/certificate`, {}, { timeout: 90_000 }) as unknown as Promise<TraceCertificateResult>;