2 Commits 778bda1360 ... 81d12300f5

Author SHA1 Message Date
  lsc 81d12300f5 Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-api 1 month ago
  lsc c46e09c826 feat: add checkEduid api endpoint 1 month ago
1 changed files with 6 additions and 0 deletions
  1. 6 0
      pbl.js

+ 6 - 0
pbl.js

@@ -10706,6 +10706,12 @@ router.route('/setEduid').all((req, res, next) => {
     getmysql2(req, res, "setEduid", json['userid'], json['eduid']);
 });
 
+//获取用户eduid
+router.route('/checkEduid').all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql2(req, res, "checkEduid", json['eduid']);
+});
+
 // 获取服务器时间
 router.route('/getServerTime').all((req, res, next) => {
     res.end(JSON.stringify({time: new Date().getTime()}));