Browse Source

optimize router && add Wechat api

HonorLee 6 years ago
parent
commit
e0b777bfc1
2 changed files with 2 additions and 1 deletions
  1. 0 1
      server.js
  2. 2 0
      system/core.js

+ 0 - 1
server.js

@@ -11,7 +11,6 @@
  */
 'use strict'
 global.ROOTPATH = __dirname;
-global.serverUID = (Math.ceil(Math.random()*61439+4096)).toString(16).toUpperCase();
 
 require('./config.js');
 require('./system/core.js');

+ 2 - 0
system/core.js

@@ -25,8 +25,10 @@ global.Core.Path = {
 };
 
 //Global Extension Require 
+global.serverUID   = (Math.ceil(Math.random()*61439+4096)).toString(16).toUpperCase();
 global.Moment       = require('moment-range').extendMoment(require('moment'));
 global.URL          = require('url');
+global.Querystring  = require('querystring');
 global.FILE         = require('fs-extra');
 global.EJS          = require('ejs');
 global.ASYNC        = require('async');