diff --git a/packages/canyon-backend/src/upload/upload.controller.ts b/packages/canyon-backend/src/upload/upload.controller.ts index e21aa021..485cdc17 100755 --- a/packages/canyon-backend/src/upload/upload.controller.ts +++ b/packages/canyon-backend/src/upload/upload.controller.ts @@ -17,13 +17,15 @@ export class UploadController { @HttpCode(200) test(@Query() q, @Body() b) { console.log(q, b); + // TODO: 需要一个唯一id在post和put之间传递 return `http://localhost:8080/upload/v4 - http://localhost:8080/upload/v4`; + http://localhost:8080/upload/v4?query=1`; } @Put('v4') @HttpCode(200) @UseInterceptors(RawBodyMiddleware) test1(@Query() q, @Body() buffer: Buffer) { + console.log(q); fs.writeFileSync('./test.txt', buffer); return 'test'; } diff --git a/packages/canyon-cli/src/helpers/web.ts b/packages/canyon-cli/src/helpers/web.ts index b6a5df2c..078ccee8 100755 --- a/packages/canyon-cli/src/helpers/web.ts +++ b/packages/canyon-cli/src/helpers/web.ts @@ -47,9 +47,9 @@ export function populateBuildParams( export function getPackage(source: string): string { if (source) { - return `${source}-uploader-${version}` + return `${source}-canyon-cli-${version}` } else { - return `uploader-${version}` + return `canyon-cli-${version}` } }