Commit 86cebbca by biao

1

parent 3ea11cc3
...@@ -7,6 +7,8 @@ ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....Start.", 0); ...@@ -7,6 +7,8 @@ ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....Start.", 0);
//获取参数 //获取参数
$name = ParamUtil::getRequestString("name");//用户填写的用户名称 $name = ParamUtil::getRequestString("name");//用户填写的用户名称
$mobile = ParamUtil::getRequestNumber("mobile"); $mobile = ParamUtil::getRequestNumber("mobile");
$legalPerson = ParamUtil::getRequestString("legalPerson");
$organizationContact = ParamUtil::getRequestNumber("organizationContact");
$openId = ParamUtil::getRequestString("openId"); $openId = ParamUtil::getRequestString("openId");
$unionId = ParamUtil::getRequestString("unionId"); $unionId = ParamUtil::getRequestString("unionId");
...@@ -37,13 +39,18 @@ if(!empty($userList)) { ...@@ -37,13 +39,18 @@ if(!empty($userList)) {
$userMst = new UserMst(); $userMst = new UserMst();
$userMst->school_no = $schoolNo; $userMst->school_no = $schoolNo;
$userMst->class_no = $classNo; $userMst->class_no = $classNo;
$userMst->original_source = $role;//此处跟role一样 if(empty($legalPerson)) {
$userMst->role = 4; //社会用户[非机构]
} else {
$userMst->role = 5; //社会用户[机构]
}
$userMst->openid = $openId; $userMst->openid = $openId;
$userMst->unionid = $unionId; $userMst->unionid = $unionId;
$userMst->name = $name; $userMst->name = $name;
$userMst->mobile = $mobile; $userMst->mobile = $mobile;
$userMst->role = 5; //社会用户 $userMst->legal_person = $legalPerson;
$userMst->organization_contact = $organizationContact;
$userMst->save(); $userMst->save();
ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....End.", 0); ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....End.", 0);
......
...@@ -5,7 +5,6 @@ require_once ("../user_include.inc"); ...@@ -5,7 +5,6 @@ require_once ("../user_include.inc");
ErrorLogger::doOutput("Compass...ajax_social_user_register2.php....Start.", 0); ErrorLogger::doOutput("Compass...ajax_social_user_register2.php....Start.", 0);
//获取参数 //获取参数
$name = ParamUtil::getRequestString("name");//用户微信昵称
$openId = ParamUtil::getRequestString("openId"); $openId = ParamUtil::getRequestString("openId");
$unionId = ParamUtil::getRequestString("unionId"); $unionId = ParamUtil::getRequestString("unionId");
$role = ParamUtil::getRequestNumber("role"); $role = ParamUtil::getRequestNumber("role");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment