|
@@ -1803,6 +1803,7 @@ router.route('/batchRegistration1').post(function(req, res, next) {
|
|
|
var _mail = users.username;
|
|
|
var _password = users.password || "123456";
|
|
|
var _alias = users.alias;
|
|
|
+ var _org = users.org;
|
|
|
var _oid = users.oid;
|
|
|
var _ph = users.ph;
|
|
|
var _class = users.cid;
|
|
@@ -1827,6 +1828,7 @@ router.route('/batchRegistration1').post(function(req, res, next) {
|
|
|
_username,
|
|
|
_sId,
|
|
|
1,
|
|
|
+ _org,
|
|
|
_oid,
|
|
|
_ph,
|
|
|
_class,
|
|
@@ -1834,7 +1836,7 @@ router.route('/batchRegistration1').post(function(req, res, next) {
|
|
|
"0",
|
|
|
];
|
|
|
//參數拼接,註冊
|
|
|
- _userdata.unshift(_mysqluser[0], _mysqluser[1], "pbl_add_batchregister");
|
|
|
+ _userdata.unshift(_mysqluser[0], _mysqluser[1], "pbl_add_batchregister1");
|
|
|
//用戶註冊處理
|
|
|
mysql.usselect(_userdata, function(ret) {
|
|
|
res.end(JSON.stringify({ uid: ret[1][0].uid, ph: _ph, oid: _oid, cid: _class, success: 1 }));
|