cgserver 6.4.12 → 6.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/Core/Core.js +4 -4
- package/package.json +1 -1
package/dist/lib/Core/Core.js
CHANGED
|
@@ -573,13 +573,13 @@ class core {
|
|
|
573
573
|
let rs = undefined;
|
|
574
574
|
if (core.isAsyncFunc(func)) {
|
|
575
575
|
if (thisArg) {
|
|
576
|
-
rs = await func.call(thisArg, params).catch((reason) => {
|
|
576
|
+
rs = await func.call(thisArg, ...params).catch((reason) => {
|
|
577
577
|
Log_1.GLog.error(reason);
|
|
578
578
|
rs = { errcode: { id: 1008611, des: "failed" } };
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
else {
|
|
582
|
-
rs = await func(params).catch((reason) => {
|
|
582
|
+
rs = await func(...params).catch((reason) => {
|
|
583
583
|
Log_1.GLog.error(reason);
|
|
584
584
|
rs = { errcode: { id: 1008612, des: "failed" } };
|
|
585
585
|
});
|
|
@@ -587,10 +587,10 @@ class core {
|
|
|
587
587
|
}
|
|
588
588
|
else {
|
|
589
589
|
if (thisArg) {
|
|
590
|
-
rs = func.call(thisArg, params);
|
|
590
|
+
rs = func.call(thisArg, ...params);
|
|
591
591
|
}
|
|
592
592
|
else {
|
|
593
|
-
rs = func(params);
|
|
593
|
+
rs = func(...params);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
return rs;
|