fix: clarify public traffic asset summaries
This commit is contained in:
parent
a84826c9c0
commit
8ae8d13d6e
@ -116,6 +116,16 @@ describe('public traffic stats', () => {
|
||||
key: 'direct-upload-asset',
|
||||
label: '图片直链访问',
|
||||
category: '直传资源',
|
||||
detail: '直传上传目录下的图片、视频、压缩包等资源直链汇总,具体文件请看“流量最高路径”。',
|
||||
}),
|
||||
)
|
||||
|
||||
expect(classifyPublicTrafficPurpose('s3.jiansun.vip', '/gongxiangpan/uploads/1775120618610-g75pxl.png', 'GET')).toEqual(
|
||||
expect.objectContaining({
|
||||
key: 'legacy-upload-asset',
|
||||
label: '图片直链访问',
|
||||
category: '历史上传资源',
|
||||
detail: '历史上传目录下的图片、视频、压缩包等资源直链汇总,具体文件请看“流量最高路径”。',
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
@ -381,7 +381,7 @@ export function classifyPublicTrafficPurpose(domain: string, pathValue: string,
|
||||
key: 'direct-upload-asset',
|
||||
label: assetTypeLabel(pathValue),
|
||||
category: '直传资源',
|
||||
detail: `直传上传目录里的资源文件:${fileNameFromPath(pathValue)}`,
|
||||
detail: '直传上传目录下的图片、视频、压缩包等资源直链汇总,具体文件请看“流量最高路径”。',
|
||||
}
|
||||
}
|
||||
|
||||
@ -390,7 +390,7 @@ export function classifyPublicTrafficPurpose(domain: string, pathValue: string,
|
||||
key: 'legacy-upload-asset',
|
||||
label: assetTypeLabel(pathValue),
|
||||
category: '历史上传资源',
|
||||
detail: `历史上传目录里的资源文件:${fileNameFromPath(pathValue)}`,
|
||||
detail: '历史上传目录下的图片、视频、压缩包等资源直链汇总,具体文件请看“流量最高路径”。',
|
||||
}
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ export function classifyPublicTrafficPurpose(domain: string, pathValue: string,
|
||||
label: isAssetPath(pathValue) ? assetTypeLabel(pathValue) : '资源存储入口访问',
|
||||
category: '资源直链',
|
||||
detail: isAssetPath(pathValue)
|
||||
? `资源入口直接返回文件:${fileNameFromPath(pathValue)}`
|
||||
? '资源入口直接返回的对象存储文件汇总,具体文件请看“流量最高路径”。'
|
||||
: '资源入口上的对象存储、探测或目录类请求。',
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user