|
@@ -6,16 +6,36 @@ 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 = ["183.36.25.93", "pbl"]; //edu數據庫信息
|
|
|
// const _mysqluser = ["183.36.25.93", "cocorobouser"]; //用户数据库信息
|
|
|
-// const _getmysqlLabor = ["123.58.32.152", "pbl"]; //edu數據庫信息
|
|
|
-// const _getmysqluser = ["123.58.32.152", "cocorobouser"]; //edu數據庫信息
|
|
|
+// const _getmysqlLabor2 = ["183.36.25.93", "pbl"]; //edu數據庫信息
|
|
|
+// const _getmysqlLabor = ["183.36.25.93", "pbl"]; //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 _mysqlLabor = ["183.36.25.93", "pbl"]; //edu數據庫信息
|
|
|
+// const _mysqluser = ["183.36.25.93", "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 = ["183.36.25.93", "pbl"]; //edu數據庫信息
|
|
|
+// const _getmysqlLabor = ["183.36.25.93", "pbl"]; //edu數據庫信息
|
|
|
const _getmysqluser = ["172.16.12.7", "cocorobouser"]; //edu數據庫信息
|
|
|
const _localhost = ["127.0.0.1", "pbl"]; //edu數據庫信息
|
|
|
var crypto = require("crypto");
|
|
@@ -8944,7 +8964,28 @@ router.route('/select_classroomTask').all((req,res,next)=>{
|
|
|
getmysql(req, res, "select_classroomTask", json["userId"]);
|
|
|
})
|
|
|
|
|
|
+//qgt 教学模式-添加应用
|
|
|
+router.route("/insert_teachingMode").all((req,res,next)=>{
|
|
|
+ postmysql(req, res, "insert_teachingMode");
|
|
|
+})
|
|
|
|
|
|
+//qgt 教学模式-获取应用
|
|
|
+router.route("/select_teachingMode").all((req,res,next)=>{
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "select_teachingMode", json["uid"],json["jur"],json["type"],json["model"],json["status"],json["search"]);
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
+//qgt 教学模式-修改应用
|
|
|
+router.route("/update_teachingMode").all((req,res,next)=>{
|
|
|
+ postmysql(req, res, "update_teachingMode");
|
|
|
+})
|
|
|
+
|
|
|
+//qgt 教学模式-获取单个应用详细数据
|
|
|
+router.route("/select_teachingModeById").all((req,res,next)=>{
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "select_teachingModeById", json["uid"],json["tid"]);
|
|
|
+})
|
|
|
|
|
|
|
|
|
//教师管理 查看填写范围的教师权限
|