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类型