perf: email proxy

This commit is contained in:
xiaojunnuo
2024-08-23 11:35:34 +08:00
parent 14ab93dc2f
commit 453f1baa0b
8 changed files with 166 additions and 35 deletions
@@ -8,6 +8,9 @@ export async function request(config: any) {
if (data) {
throw new Error(data.message || data.msg || data.error || data);
}
if (e.statusText) {
throw new Error(`请求失败:${e.request?.url} ${e.status} ${e.statusText}`);
}
throw e;
}
}