From 565c4f00094c6894911b47fae031c4777539b616 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Mon, 26 Dec 2016 15:48:25 +0800
Subject: [PATCH] 服务端代码优化与测试

---
 server.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/server.js b/server.js
index ae5b574..921b518 100644
--- a/server.js
+++ b/server.js
@@ -19,6 +19,8 @@
     "5a000001000c": 20   //������������
 };
 
+global.configs = {};
+
 function handleData(db, socket, value) {
 
     //1.���������������
@@ -119,6 +121,12 @@
     }
     console.log('Connecting to Mongo DB at ' + config.URL);
 
+    //���������������������������������
+    method.initConfigs(db);
+
+    //���������������������������������������
+    queue.listenToMQ("ex_data_config");
+
     net.createServer().on('connection', function(socket){
         console.log('CONNECTED: ' + socket.remoteAddress +':'+ socket.remotePort);
 
@@ -158,4 +166,4 @@
     }).listen(config.PORT, config.HOST);
     
     console.log('TCP Server listening on ' + config.HOST + ':' + config.PORT);
-});
+});
\ No newline at end of file

--
Gitblit v1.8.0