feat: url 支持 credentials; 修改导出文件名格式

This commit is contained in:
xream
2025-03-13 17:37:40 +08:00
parent 312caa6880
commit 47307716b2
6 changed files with 52 additions and 25 deletions

View File

@@ -268,13 +268,17 @@ function getSubscription(req, res) {
`sub-store_subscription_${name}_${new Date()
.toLocaleString('zh-CN', {
year: 'numeric',
day: 'numeric',
month: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false,
})
.replace(/\D/g, '')}.json`,
.replace(
/^(\d+?)\/(\d+?)\/(\d+?)\s*?(\d+?):(\d+?):(\d+?)$/,
'$1-$2-$3_$4-$5-$6',
)}.json`,
)}"`,
)
.send(JSON.stringify(sub));