mm_os 1.4.7 → 1.4.9

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/index.js CHANGED
@@ -122,7 +122,7 @@ Soa.prototype.loadModule = function(config) {
122
122
  $.app = new App();
123
123
  this.com = $.com;
124
124
  this.app = $.app;
125
- if (conf.sys.game) {
125
+ if (config.sys.game) {
126
126
  $.game = new Game();
127
127
  this.game = $.game;
128
128
  }
@@ -56,7 +56,7 @@ module.exports = function(server, config) {
56
56
  // 解析 application/json、application/x-www-form-urlencoded、text/plain
57
57
  // 接收主体
58
58
  server.use(async (ctx, next) => {
59
- if (!ctx.request.body && ctx.request.method == "POST") {
59
+ if (!ctx.request.body) {
60
60
  await func(ctx, next);
61
61
  } else {
62
62
  await next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {