完善delivery运行bug

This commit is contained in:
2026-05-21 15:51:12 +08:00
parent 7ba3d313be
commit 3a7b2808af
18 changed files with 1823 additions and 1772 deletions

View File

@@ -903,6 +903,8 @@ export class AkSupa {
// 核心修复:在这里拦截英文错误并转换为中文
if (rawMsg.includes('Invalid login credentials')) {
msg = '用户名或密码错误';
} else if (rawMsg.includes('Invalid authentication credentials')) {
msg = '网关认证失败,请检查 delivery 端的 SUPA_URL 与 SUPA_KEY 是否属于同一套 Supabase 实例';
} else if (rawMsg != '') {
msg = rawMsg;
}