From db69917a6ef0bb76c228590340f1e3832ebe57df Mon Sep 17 00:00:00 2001 From: wanggang <1366376228@qq.com> Date: Wed, 11 Sep 2024 17:53:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(dianziqian):=20=E5=A4=84=E7=90=86url=20(#15?= =?UTF-8?q?31)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sealday Co-authored-by: TomyJan Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1531 Co-authored-by: wanggang <1366376228@qq.com> Co-committed-by: wanggang <1366376228@qq.com> --- .../src/server/features/request/RequestInstruction.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts index 2ee151ab8..4d9b7411f 100644 --- a/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts +++ b/packages/plugins/@tachybase/plugin-workflow/src/server/features/request/RequestInstruction.ts @@ -97,11 +97,6 @@ async function request(config, context) { if (key === 'file') { let { url: resourceUrl, params: resourceParams, headers: resourceHeader, body: resourceBody } = data[key]; resourceUrl = resourceUrl?.trim() || ''; - if (!resourceUrl.startsWith('http')) { - //如果开头不是http默认该url是内部url,需要加上token - resourceUrl = `${origin}${resourceUrl}`; - resourceHeader.Authorization = 'Bearer ' + token - } if (resourceHeader['Content-Type'] === 'multipart/form-data' && resourceBody) { //resource contentType类型