Skip to content

Commit 92a5a57

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent af18533 commit 92a5a57

2 files changed

Lines changed: 931 additions & 247 deletions

File tree

src/services/ip/downloadMaxmindDb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ async function downloadDatabase() {
8989

9090
// 构建下载URL (包含账户ID和许可证密钥)
9191
const url = `${DOWNLOAD_CONFIG.downloadUrl}?edition_id=${DOWNLOAD_CONFIG.edition}&license_key=${USER_CONFIG.licenseKey}&suffix=${DOWNLOAD_CONFIG.suffix}&account_id=${USER_CONFIG.accountId}`;
92+
logger.debug(`[ip] 下载URL: ${url}`);
9293
const tempFile = path.join(
9394
DATA_DIR,
9495
`${DOWNLOAD_CONFIG.edition}.${DOWNLOAD_CONFIG.suffix}`

0 commit comments

Comments
 (0)