|
@@ -13,8 +13,8 @@ var mysql = require("./mysql");
|
|
|
// const _mysqlLabor = ["127.0.0.1", "sc_app"]; //袁一鸣
|
|
|
// const _mysqlLabor = ["10.3.13.84", "sc_app"]; //袁一鸣
|
|
|
|
|
|
-const _mysqlLabor = ["172.16.12.5", "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");
|
|
@@ -361,6 +361,18 @@ router.get("/selectSearchdata", (req, res) => {
|
|
|
|
|
|
});
|
|
|
|
|
|
+// yym 根据学号/工号自动获取信息
|
|
|
+router.get("/selectStudentNumber", (req, res) => {
|
|
|
+
|
|
|
+ var json = req.query
|
|
|
+
|
|
|
+ // console.log(json['openid']);
|
|
|
+ // getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty'],json['page'],json['lim'],);
|
|
|
+ getmysql(req, res, "selectStudentNumber",json['txt']);
|
|
|
+
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
//lqh获取活动acid
|
|
|
router.post("/selectActivityID", (req, res) => {
|
|
|
postmysql3(req, res, "select_activityID");
|