From 475ff0492209cd9f3cce4af0776e4dbc51292232 Mon Sep 17 00:00:00 2001 From: Allen Zhang Date: Mon, 18 Dec 2023 19:05:06 +0800 Subject: [PATCH] feat: update --- .env.example | 2 ++ packages/canyon-backend/src/upload/upload.controller.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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)