diff --git a/.env.example b/.env.example index b76c4db1..ffe3ff84 100755 --- a/.env.example +++ b/.env.example @@ -11,3 +11,5 @@ GITLAB_CLIENT_ID="***" GITLAB_CLIENT_SECRET="***" COVERAGE_DATA_URL=http://s3.xxx REDIRECT_URI=http://localhost:3000/login + +UPLOAD_URL=http://localhost:3000 diff --git a/packages/canyon-backend/src/upload/upload.controller.ts b/packages/canyon-backend/src/upload/upload.controller.ts index f61ac084..a42c217c 100755 --- a/packages/canyon-backend/src/upload/upload.controller.ts +++ b/packages/canyon-backend/src/upload/upload.controller.ts @@ -21,8 +21,8 @@ export class UploadController { // 第一个参数 resultURL // 第二个参数 putURL - return `http://localhost:8080/upload/v41234 - http://localhost:8080/upload/v4?query=1`; + return `${process.env.UPLOAD_URL}/upload/query + ${process.env.UPLOAD_URL}/upload/v4?query=1`; } @Put('v4') @HttpCode(200)