Browse Source

Update mysql funcs

HonorLee 7 years ago
parent
commit
0e328fd011
1 changed files with 4 additions and 1 deletions
  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){
-
+        if(!res) return;
+        res.writeHead(200, {'Content-Type': 'text/json'});
+        res.write(data);
+        res.end();
     },
     apiResponse:function(res,data){
         if(!res) return;