mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 14:10:29 +08:00
任务调用实例不区分首字母大小写
This commit is contained in:
parent
85888bc420
commit
6f7e58662b
@ -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('(');
|
||||
|
Loading…
Reference in New Issue
Block a user