(res: Response)
| 29 | } |
| 30 | |
| 31 | async function parseErrorResponse(res: Response): Promise<string> { |
| 32 | try { |
| 33 | const data = await res.json(); |
| 34 | return data?.texts || data?.message || `HTTP ${res.status}`; |
| 35 | } catch { |
| 36 | return `HTTP ${res.status}`; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | /** 下载证书 ZIP */ |
| 41 | export async function downloadCertZip(uuid: string): Promise<void> { |
no outgoing calls
no test coverage detected