|
@@ -297,6 +297,21 @@ router.route("/download").all(async(req, res, next) => {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+// 罗湖get
|
|
|
+router.route("/luohugetTeacherInfo").all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ //mode的处理
|
|
|
+ https.get("https://web.luohuedu.net/tx/userinfo.aspx?code=" + json['code'], function(res2) {
|
|
|
+ let data = '';
|
|
|
+ res2.on("data", function(chunk) {
|
|
|
+ data += chunk; // 累加获取的数据
|
|
|
+ });
|
|
|
+ res2.on("end", function() {
|
|
|
+ res.end(JSON.stringify(data)); // 将获取的值传参给前端
|
|
|
+ });
|
|
|
+ });
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
/*登录接口*/
|
|
|
router.route("/loginRace").all((req, res, next) => {
|