完善delivery运行bug
This commit is contained in:
@@ -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] 请运维核查以下服务端配置:')
|
||||
|
||||
Reference in New Issue
Block a user