@pisell/pisellos 0.0.272 → 0.0.273
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.
|
@@ -55,16 +55,13 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
55
55
|
this.store = options.store;
|
|
56
56
|
this.request = this.core.getPlugin('request');
|
|
57
57
|
appPlugin = this.core.getPlugin('app');
|
|
58
|
-
if (appPlugin) {
|
|
59
|
-
|
|
60
|
-
break;
|
|
58
|
+
if (!appPlugin) {
|
|
59
|
+
console.warn('Order 模块需要 app 插件支持');
|
|
61
60
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
app = appPlugin.getApp();
|
|
65
|
-
this.logger = app.logger;
|
|
61
|
+
app = appPlugin === null || appPlugin === void 0 ? void 0 : appPlugin.getApp();
|
|
62
|
+
if (app) this.logger = app.logger;
|
|
66
63
|
this.logInfo('OrderModule initialized successfully');
|
|
67
|
-
case
|
|
64
|
+
case 8:
|
|
68
65
|
case "end":
|
|
69
66
|
return _context.stop();
|
|
70
67
|
}
|
|
@@ -49,10 +49,11 @@ var OrderModule = class extends import_BaseModule.BaseModule {
|
|
|
49
49
|
this.request = this.core.getPlugin("request");
|
|
50
50
|
const appPlugin = this.core.getPlugin("app");
|
|
51
51
|
if (!appPlugin) {
|
|
52
|
-
|
|
52
|
+
console.warn("Order 模块需要 app 插件支持");
|
|
53
53
|
}
|
|
54
|
-
const app = appPlugin.getApp();
|
|
55
|
-
|
|
54
|
+
const app = appPlugin == null ? void 0 : appPlugin.getApp();
|
|
55
|
+
if (app)
|
|
56
|
+
this.logger = app.logger;
|
|
56
57
|
this.logInfo("OrderModule initialized successfully");
|
|
57
58
|
}
|
|
58
59
|
/**
|