mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-06-05 23:50:29 +08:00
feat(accounts): 新增 Sub2Api 格式导出功能
This commit is contained in:
@@ -696,7 +696,7 @@ async function exportAccounts(format) {
|
||||
|
||||
// 从 Content-Disposition 获取文件名
|
||||
const disposition = response.headers.get('Content-Disposition');
|
||||
let filename = `accounts_${Date.now()}.${format === 'cpa' ? 'json' : format}`;
|
||||
let filename = `accounts_${Date.now()}.${(format === 'cpa' || format === 'sub2api') ? 'json' : format}`;
|
||||
if (disposition) {
|
||||
const match = disposition.match(/filename=(.+)/);
|
||||
if (match) {
|
||||
|
||||
Reference in New Issue
Block a user