mm_os 4.0.4 → 4.0.7
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/com/event/script.tpl.js +1 -1
- package/core/app/index.js +2 -2
- package/package.json +1 -1
package/com/event/script.tpl.js
CHANGED
package/core/app/index.js
CHANGED
|
@@ -584,7 +584,7 @@ App.prototype._installPlugin = async function (info) {
|
|
|
584
584
|
|
|
585
585
|
var manager = this.manager.plugin;
|
|
586
586
|
if (info.app !== this.config.name) {
|
|
587
|
-
var app = this.getServer()[info.app];
|
|
587
|
+
var app = this.getServer().app[info.app];
|
|
588
588
|
if (!app) {
|
|
589
589
|
throw new Error(`安装失败:应用 ${info.app} 不存在`);
|
|
590
590
|
}
|
|
@@ -594,7 +594,7 @@ App.prototype._installPlugin = async function (info) {
|
|
|
594
594
|
await manager.load(info.config_file);
|
|
595
595
|
|
|
596
596
|
// 执行安装方法
|
|
597
|
-
var plugin = manager.
|
|
597
|
+
var plugin = manager.getMod(info.name);
|
|
598
598
|
if (plugin && plugin.call) {
|
|
599
599
|
await plugin.call('install');
|
|
600
600
|
}
|