From a1fb3d0cec25df0cf258c1715b4f2bfd195f1372 Mon Sep 17 00:00:00 2001 From: Jerryplusy Date: Tue, 23 Sep 2025 15:35:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:linux=E4=B8=8A=E8=B7=AF=E5=BE=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/files/files.service.ts | 12 ++++++------ src/modules/cdn/cdn.service.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/files/files.service.ts b/src/core/files/files.service.ts index 8c5a56f..9b2777d 100644 --- a/src/core/files/files.service.ts +++ b/src/core/files/files.service.ts @@ -103,12 +103,12 @@ export class FilesService { const localFilePath = path.normalize(localFilePathRaw); const localFilePathForCompare = localFilePath.replace(/\\/g, '/'); - this.logger.debug(`replacPath: ${replacPath}`); - this.logger.debug(`remoteBaseNorm: ${remoteBaseNorm}`); - this.logger.debug(`rawRemotePath: ${rawRemotePath}`); - this.logger.debug(`remoteRelativePath: ${remoteRelativePath}`); - this.logger.debug(`localRelative: ${localRelative}`); - this.logger.debug(`localFilePath: ${localFilePathForCompare}`); + //this.logger.debug(`replacPath: ${replacPath}`); + //this.logger.debug(`remoteBaseNorm: ${remoteBaseNorm}`); + //this.logger.debug(`rawRemotePath: ${rawRemotePath}`); + //this.logger.debug(`remoteRelativePath: ${remoteRelativePath}`); + //this.logger.debug(`localRelative: ${localRelative}`); + //this.logger.debug(`localFilePath: ${localFilePathForCompare}`); if (remoteFile.is_dir) { try { diff --git a/src/modules/cdn/cdn.service.ts b/src/modules/cdn/cdn.service.ts index 98c1ba9..4f61686 100644 --- a/src/modules/cdn/cdn.service.ts +++ b/src/modules/cdn/cdn.service.ts @@ -10,7 +10,7 @@ import { FilesService } from '../../core/files/files.service'; export class CdnService { private readonly logger = new Logger(CdnService.name); private filePath: string; - private readonly updateMs = 2 * 60 * 100; // 15min + private readonly updateMs = 10 * 60 * 1000; // 10min @Inject(PathService) private readonly paths: PathService; constructor( @@ -40,7 +40,7 @@ export class CdnService { let remoteFileList = remoteFiles.data.content; const localFiles = await this.filesService.getLocalFileList(cdnPath); - this.logger.debug(`localFlies: ${JSON.stringify(localFiles)}`); + //this.logger.debug(`localFlies: ${JSON.stringify(localFiles)}`); await this.filesService.compareAndDownloadFiles( cdnPath, localFiles,