完善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

@@ -342,8 +342,11 @@ export class AkReq {
// 前端 header 检查
if (sentApikey == null || sentApikey === '') {
console.error('[ak-req] ✗ 前端问题apikey 未发送,检查 SUPA_KEY 是否已配置')
} else if ((sentAuth == null || sentAuth === '') && authMode == 'apikey-only') {
console.error('[ak-req] 当前请求按 apikey-only 模式发送,这是匿名登录/匿名接口的预期行为')
console.error('[ak-req] ✗ 401 更可能来自服务端网关认证:请检查 SUPA_URL 对应实例与 SUPA_KEY/ANON_KEY 是否匹配')
} else if (sentAuth == null || sentAuth === '') {
console.error('[ak-req] ✗ 前端问题Authorization 未发送(本次修复后不应再出现此情况)')
console.error('[ak-req] ✗ 前端问题Authorization 未发送,请检查当前请求是否应携带用户 token 或显式 Authorization')
} else {
console.error('[ak-req] ✓ 前端 header 已正确发送401 来自服务端')
console.error('[ak-req] 请运维核查以下服务端配置:')