|
@@ -7,10 +7,12 @@ let axios = require("axios");
|
|
|
var router = express.Router(); // get an instance of the express Router
|
|
|
const querystring = require("querystring");
|
|
|
var mysql = require("./mysql");
|
|
|
-const _mysqlLabor = ["123.58.32.151", "sc_app"]; //edu數據庫信息
|
|
|
-const _mysqluser = ["123.58.32.151", "cocorobouser"]; //用户数据库信息
|
|
|
+// const _mysqlLabor = ["123.58.32.151", "sc_app"]; //edu數據庫信息
|
|
|
+// const _mysqluser = ["123.58.32.151", "cocorobouser"]; //用户数据库信息
|
|
|
// const _mysqlLabor = ["10.3.13.84", "sc_app"]; //edu數據庫信息
|
|
|
-// const _mysqluser = ["172.16.12.5", "cocorobouser"]; //edu數據庫信息
|
|
|
+
|
|
|
+const _mysqlLabor = ["172.16.12.5", "sc_app"]; //edu數據庫信息
|
|
|
+const _mysqluser = ["172.16.12.5", "cocorobouser"]; //edu數據庫信息
|
|
|
var crypto = require("crypto");
|
|
|
var https = require("https");
|
|
|
let jwt = require("jsonwebtoken");
|
|
@@ -40,6 +42,11 @@ function asynnext(req, res, next) {
|
|
|
}
|
|
|
/*測試*/
|
|
|
router.route("/a").all((req, res, next) => {
|
|
|
+ res.send(
|
|
|
+ {
|
|
|
+ msg: "成功",
|
|
|
+ }
|
|
|
+ );
|
|
|
return console.log(req.query);
|
|
|
QMysql(req, res, "insert_user");
|
|
|
var json = queryString(req.url);
|