|
@@ -6,17 +6,17 @@ var bcrypt = require("bcryptjs");
|
|
|
var router = express.Router();
|
|
|
const querystring = require("querystring");
|
|
|
var mysql = require("./mysql");
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-const _mysqlLabor = ["172.16.12.5", "pbl"];
|
|
|
-const _mysqluser = ["172.16.12.5", "cocorobouser"];
|
|
|
+const _mysqlLabor = ["123.58.32.151", "pbl"];
|
|
|
+const _mysqluser = ["123.58.32.151", "cocorobouser"];
|
|
|
+const _getmysqlLabor = ["123.58.32.152", "pbl"];
|
|
|
+const _getmysqluser = ["123.58.32.152", "cocorobouser"];
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
-const _getmysqlLabor2 = ["172.16.12.7", "pbl"];
|
|
|
-const _getmysqlLabor = ["172.16.12.7", "pbl"];
|
|
|
-const _getmysqluser = ["172.16.12.7", "cocorobouser"];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
var crypto = require("crypto");
|
|
|
var https = require("https");
|
|
|
|
|
@@ -7666,6 +7666,17 @@ router.route("/insert_systemOperation_classRoomHelper").all((req,res,next)=>{
|
|
|
postmysql(req, res, "insert_systemOperation_classRoomHelper");
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+router.route("/insert_systemOperation_countdownBehavior").all((req,res,next)=>{
|
|
|
+ postmysql(req,res,'insert_systemOperation_countdownBehavior')
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
+router.route("/select_systemOperation_countdownBehavior").all((req,res,next)=>{
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "select_systemOperation_countdownBehavior", json["uid"],json["courseId"]);
|
|
|
+})
|
|
|
+
|
|
|
function generateAPIKey(username) {
|
|
|
let timeStamp = new Date().getTime();
|
|
|
|