|
@@ -6,17 +6,17 @@ var bcrypt = require("bcryptjs");
|
|
|
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", "pbl"]; //edu數據庫信息
|
|
|
-// const _mysqluser = ["123.58.32.151", "cocorobouser"]; //用户数据库信息
|
|
|
-// const _getmysqlLabor = ["123.58.32.152", "pbl"]; //edu數據庫信息
|
|
|
-// const _getmysqluser = ["123.58.32.152", "cocorobouser"]; //edu數據庫信息
|
|
|
-const _mysqlLabor = ["172.16.12.5", "pbl"]; //edu數據庫信息
|
|
|
-const _mysqluser = ["172.16.12.5", "cocorobouser"]; //edu數據庫信息
|
|
|
+const _mysqlLabor = ["123.58.32.151", "pbl"]; //edu數據庫信息
|
|
|
+const _mysqluser = ["123.58.32.151", "cocorobouser"]; //用户数据库信息
|
|
|
+const _getmysqlLabor = ["123.58.32.152", "pbl"]; //edu數據庫信息
|
|
|
+const _getmysqluser = ["123.58.32.152", "cocorobouser"]; //edu數據庫信息
|
|
|
+// const _mysqlLabor = ["172.16.12.5", "pbl"]; //edu數據庫信息
|
|
|
+// const _mysqluser = ["172.16.12.5", "cocorobouser"]; //edu數據庫信息
|
|
|
// const _getmysqlLabor = ["172.16.12.5", "pbl"]; //edu數據庫信息
|
|
|
// const _getmysqluser = ["172.16.12.5", "cocorobouser"]; //edu數據庫信息
|
|
|
-const _getmysqlLabor2 = ["172.16.12.7", "pbl"]; //edu數據庫信息
|
|
|
-const _getmysqlLabor = ["172.16.12.7", "pbl"]; //edu數據庫信息
|
|
|
-const _getmysqluser = ["172.16.12.7", "cocorobouser"]; //edu數據庫信息
|
|
|
+// const _getmysqlLabor2 = ["172.16.12.7", "pbl"]; //edu數據庫信息
|
|
|
+// const _getmysqlLabor = ["172.16.12.7", "pbl"]; //edu數據庫信息
|
|
|
+// const _getmysqluser = ["172.16.12.7", "cocorobouser"]; //edu數據庫信息
|
|
|
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");
|
|
|
})
|
|
|
|
|
|
+//qgt 课堂助手行为备忘(添加)
|
|
|
+router.route("/insert_systemOperation_countdownBehavior").all((req,res,next)=>{
|
|
|
+ postmysql(req,res,'insert_systemOperation_countdownBehavior')
|
|
|
+})
|
|
|
+
|
|
|
+//qgt 课堂助手行为备忘(获取)
|
|
|
+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();
|
|
|
|