From 51833be543cced85a53800151034364b17a27870 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Sun, 2 Mar 2025 20:37:58 +0800 Subject: [PATCH] add --- apps/server/src/models/resource/processor/VideoProcessor.ts | 2 ++ apps/server/src/models/visit/visit.service.ts | 5 ----- apps/server/src/upload/tus.service.ts | 2 +- config/nginx/conf.d/web.conf | 2 +- web-dist/index.html | 4 ++-- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/apps/server/src/models/resource/processor/VideoProcessor.ts b/apps/server/src/models/resource/processor/VideoProcessor.ts index 083bb5f..ef0ecb2 100755 --- a/apps/server/src/models/resource/processor/VideoProcessor.ts +++ b/apps/server/src/models/resource/processor/VideoProcessor.ts @@ -12,6 +12,7 @@ export class VideoProcessor extends BaseProcessor { super(); } async process(resource: Resource): Promise { + console.log('process'); const { url } = resource; const filepath = getUploadFilePath(url); this.logger.log( @@ -114,6 +115,7 @@ export class VideoProcessor extends BaseProcessor { filepath: string, outputDir: string, ): Promise { + console.log('outputDir', outputDir); const m3u8Path = path.join(outputDir, 'index.m3u8'); this.logger.log( `Generating M3U8 stream for video: ${filepath}, Output Dir: ${outputDir}`, diff --git a/apps/server/src/models/visit/visit.service.ts b/apps/server/src/models/visit/visit.service.ts index e050fa5..ba6ed20 100755 --- a/apps/server/src/models/visit/visit.service.ts +++ b/apps/server/src/models/visit/visit.service.ts @@ -11,9 +11,6 @@ export class VisitService extends BaseService { const { postId, lectureId, messageId } = args.data; const visitorId = args.data?.visitorId || staff?.id; let result; - console.log(args.data.type); - console.log(visitorId); - console.log(postId); const existingVisit = await db.visit.findFirst({ where: { type: args.data.type, @@ -21,10 +18,8 @@ export class VisitService extends BaseService { OR: [{ postId }, { messageId }], }, }); - console.log('result', existingVisit); if (!existingVisit) { result = await super.create(args); - console.log('createdResult', result); } else if (args.data.type === VisitType.READED) { result = await super.update({ where: { id: existingVisit.id }, diff --git a/apps/server/src/upload/tus.service.ts b/apps/server/src/upload/tus.service.ts index e2dc45d..01c9072 100755 --- a/apps/server/src/upload/tus.service.ts +++ b/apps/server/src/upload/tus.service.ts @@ -128,7 +128,7 @@ export class TusService implements OnModuleInit { } async handleTus(req: Request, res: Response) { - console.log(req) + // console.log(req) return this.tusServer.handle(req, res); } } diff --git a/config/nginx/conf.d/web.conf b/config/nginx/conf.d/web.conf index 67302b8..88fa2c9 100755 --- a/config/nginx/conf.d/web.conf +++ b/config/nginx/conf.d/web.conf @@ -100,7 +100,7 @@ server { # 仅供内部使用 internal; # 代理到认证服务 - proxy_pass http://host.docker.internal:3000/auth/file; + proxy_pass http://host.docker.internal:3006/auth/file; # 请求优化:不传递请求体 proxy_pass_request_body off; diff --git a/web-dist/index.html b/web-dist/index.html index 7414671..fa1c56f 100644 --- a/web-dist/index.html +++ b/web-dist/index.html @@ -7,8 +7,8 @@