Browse Source

完善代码

thm 8 years ago
parent
commit
0a9617893a
2 changed files with 4 additions and 4 deletions
  1. 3 3
      app.js
  2. 1 1
      config.js

+ 3 - 3
app.js

@@ -26,13 +26,13 @@ server.post('/api/sqls', function (req, res) {
     }, this);*/
 
     Promise.all(promises).then(function () {
-        //res.send('{success:true}');
+        res.send('success');
     }).catch(function (err) {
-        //res.send('{success:false}');
+        res.send('failure');
         console.log('error:' + err);
     });
 
-    res.send('ok');
+   // res.send('ok');
 });
 
 server.listen(8080, function () {

+ 1 - 1
config.js

@@ -5,7 +5,7 @@ exports = module.exports = {
 	db: {
 			username:"sa",
 			password:"zjwsrjkj",
-			database:"target",
+			database:"Winsoft.WSAP",
 			dialect:"mssql",
 			host:"192.168.16.115"
 	}