浏览代码

Update mysql funcs

HonorLee 7 年之前
父节点
当前提交
0e328fd011
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      system/lib/core/handler.js

+ 4 - 1
system/lib/core/handler.js

@@ -19,7 +19,10 @@ var Handler = {
 
 
     // },
     // },
     response:function(res,data){
     response:function(res,data){
-
+        if(!res) return;
+        res.writeHead(200, {'Content-Type': 'text/json'});
+        res.write(data);
+        res.end();
     },
     },
     apiResponse:function(res,data){
     apiResponse:function(res,data){
         if(!res) return;
         if(!res) return;