Files
2026-11-12 09:07:07 +08:00

2 lines
929 B
JavaScript

function i(n){var t,a;if(n instanceof Error)return n.message;if(typeof n=="string")return n;const e=n;return((a=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:a.msg)||(e==null?void 0:e.msg)||(e==null?void 0:e.message)||"请求失败,请刷新后重试"}function o(n){return(n==null?void 0:n.code)==="ERR_CANCELED"}function c(n){return n?new Date(n*1e3).toLocaleString("zh-CN",{hour12:!1}):"—"}function f(n){return n?new Date(n*1e3).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai",hour12:!1}):"—"}const g={queued:"等待处理",running:"分析中",ready:"已生成 · 待人工核对",failed:"生成失败",needs_reconciliation:"调用状态待核实",stale:"结果已过期"},s={manual:"人工服务记录",im:"腾讯 IM",tracking:"跟踪备注",tracking_note:"跟踪备注",wecom:"企业微信",qywx:"企业微信",audio:"录音 / 转写"},m=n=>s[n]||n;export{m as c,i as e,c as f,o as i,g as j,f as s};