From 49703f08e55b303851086d9f36aca562d7999be6 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 20 Mar 2026 12:08:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=8C=89=E9=92=AE=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/pipeline/service/pipeline-service.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/ui/certd-server/src/modules/pipeline/service/pipeline-service.ts b/packages/ui/certd-server/src/modules/pipeline/service/pipeline-service.ts index 7ae7e3ae0..880234b01 100644 --- a/packages/ui/certd-server/src/modules/pipeline/service/pipeline-service.ts +++ b/packages/ui/certd-server/src/modules/pipeline/service/pipeline-service.ts @@ -1071,6 +1071,7 @@ export class PipelineService extends BaseService { if (!isPlus()) { throw new NeedVIPException("此功能需要升级专业版"); } + //允许管理员修改,userId=null const query: any = {} if (userId && userId > 0) { query.userId = userId; @@ -1123,6 +1124,7 @@ export class PipelineService extends BaseService { if (!isPlus()) { throw new NeedVIPException("此功能需要升级专业版"); } + //允许管理员修改,userId=null const query: any = {} if (userId && userId > 0) { query.userId = userId; @@ -1161,9 +1163,9 @@ export class PipelineService extends BaseService { if (!isPlus()) { throw new NeedVIPException("此功能需要升级专业版"); } - - if (userId == null || ids.length === 0) { - return; + //允许userId为空,为空则为管理员触发 + if (ids.length === 0) { + throw new Error("参数错误 ids 不能为空"); } const where: any = { id: In(ids),