lsc 1 miesiąc temu
rodzic
commit
45657f9535
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      cocoflow.js

+ 2 - 2
cocoflow.js

@@ -194,9 +194,9 @@ router.route("/wechat-register").post(function(req, res, next) {
   var _ph = "";
   var _class = "";
   var _type = "1";
-  var _openid = users.username;
+  var _openid = users.openid;
   var _dest = "";
-  var _eduId = users.username;
+  var _eduId = users.openid;
   //加密密碼
   _password = bcrypt.hashSync(_password, bcrypt.genSaltSync(10));
   //生成激活碼