add
This commit is contained in:
parent
c54c49e743
commit
51833be543
|
@ -12,6 +12,7 @@ export class VideoProcessor extends BaseProcessor {
|
|||
super();
|
||||
}
|
||||
async process(resource: Resource): Promise<Resource> {
|
||||
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<string> {
|
||||
console.log('outputDir', outputDir);
|
||||
const m3u8Path = path.join(outputDir, 'index.m3u8');
|
||||
this.logger.log(
|
||||
`Generating M3U8 stream for video: ${filepath}, Output Dir: ${outputDir}`,
|
||||
|
|
|
@ -11,9 +11,6 @@ export class VisitService extends BaseService<Prisma.VisitDelegate> {
|
|||
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<Prisma.VisitDelegate> {
|
|||
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 },
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<script>
|
||||
window.env = {
|
||||
VITE_APP_SERVER_IP: "192.168.139.239",
|
||||
VITE_APP_SERVER_PORT: "3000",
|
||||
VITE_APP_FILE_PORT: "80",
|
||||
VITE_APP_SERVER_PORT: "3006",
|
||||
VITE_APP_FILE_PORT: "8092",
|
||||
VITE_APP_VERSION: "0.3.0",
|
||||
VITE_APP_APP_NAME: "烽火慕课",
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue