修改商详情页UI

This commit is contained in:
2026-06-04 18:32:08 +08:00
parent 714e63e12a
commit fc808bd562
14 changed files with 6440 additions and 1605 deletions

View File

@@ -196,14 +196,7 @@ export class AkReq {
if (origRangeUnit != null) currentHeaders['Range-Unit'] = origRangeUnit
// 请求发出前诊断日志脱敏前6位+后4位
const dbgKey = finalApikey != null && finalApikey.length > 14
? finalApikey.substring(0, 6) + '...' + finalApikey.substring(finalApikey.length - 4)
: (finalApikey != null ? '(short)' : '(MISSING!)')
const dbgAuth = finalAuth != null && finalAuth.length > 15
? finalAuth.substring(0, 13) + '...' + finalAuth.substring(finalAuth.length - 4)
: (finalAuth != null ? finalAuth : '(MISSING!)')
console.log('[ak-req]', (options.method ?? 'GET'), options.url)
console.log('[ak-req] apikey:', dbgKey, '| Authorization:', dbgAuth, '| auth-mode:', authMode, '| prefer:', origPrefer ?? '(none)')
console.log('[ak-req] request', options.method ?? 'GET', 'auth-mode:', authMode, 'prefer:', origPrefer ?? '(none)')
const timeout = options.timeout ?? 10000;
const maxRetry = Math.max(0, options.retryCount ?? 0);
@@ -303,7 +296,6 @@ export class AkReq {
}
console.error('[ak-req] HTTP error response')
console.error('[ak-req] status:', res.statusCode)
console.error('[ak-req] url:', options.url)
console.error('[ak-req] body:', bodyPreview)
}
resolve(result);
@@ -350,10 +342,7 @@ export class AkReq {
? sentAuth.substring(0, 13) + '...' + sentAuth.substring(sentAuth.length - 4)
: (sentAuth != null ? '(short)' : '(MISSING!)')
console.error('[ak-req] ★ 401 Unauthorized')
console.error('[ak-req] url:', options.url)
console.error('[ak-req] auth-mode: ' + authMode)
console.error('[ak-req] 发送 apikey:', dbgSentKey)
console.error('[ak-req] 发送 Authorization:', dbgSentAuth)
console.error('[ak-req] response body:', JSON.stringify(finalRes.data))
// 前端 header 检查
if (sentApikey == null || sentApikey === '') {
@@ -514,4 +503,4 @@ export class AkReq {
}
export default AkReq;
export default AkReq;