任务调用实例不区分首字母大小写

This commit is contained in:
cool 2023-11-25 16:35:19 +08:00
parent 85888bc420
commit 6f7e58662b

View File

@ -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('(');