From 6f7e58662b734610a507582c474790c81c4cb1d3 Mon Sep 17 00:00:00 2001 From: cool Date: Sat, 25 Nov 2023 16:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=B0=83=E7=94=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E4=B8=8D=E5=8C=BA=E5=88=86=E9=A6=96=E5=AD=97=E6=AF=8D?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/task/service/info.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/task/service/info.ts b/src/modules/task/service/info.ts index 3adea85..3f1cd00 100644 --- a/src/modules/task/service/info.ts +++ b/src/modules/task/service/info.ts @@ -330,7 +330,9 @@ export class TaskInfoService extends BaseService { async invokeService(serviceStr) { if (serviceStr) { const arr = serviceStr.split('.'); - const service = await this.app.getApplicationContext().getAsync(arr[0]); + const service = await this.app + .getApplicationContext() + .getAsync(_.lowerFirst(arr[0])); for (const child of arr) { if (child.includes('(')) { const lastArr = child.split('(');