xiongzhu 2 yıl önce
ebeveyn
işleme
dfc8c9607c
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      src/paper/paper-gen/upload.ts

+ 3 - 0
src/paper/paper-gen/upload.ts

@@ -3,6 +3,7 @@ import { Upload } from '@aws-sdk/lib-storage'
 import { PassThrough, Readable } from 'stream'
 import { WritableStreamBuffer } from 'stream-buffers'
 import * as path from 'path'
+import { Logger } from '@nestjs/common'
 
 export async function uploadUml(plantUml) {
     const s3 = new S3Client({
@@ -56,6 +57,8 @@ export async function uploadUml(plantUml) {
 }
 
 export async function uploadDoc(title, content) {
+    Logger.log(`title: ${title}`, '生成docx')
+    Logger.log(`content: ${content}`, '生成docx')
     const s3 = new S3Client({
         region: process.env.ALIYUN_OSS_REGION,
         endpoint: `https://${process.env.ALIYUN_OSS_ENDPOINT}`,