|
|
@ -102,7 +102,7 @@ class UcenterMemberModel extends Model{
|
|
|
|
* @param string $mobile 用户手机号码
|
|
|
|
* @param string $mobile 用户手机号码
|
|
|
|
* @return integer 注册成功-用户信息,注册失败-错误编号
|
|
|
|
* @return integer 注册成功-用户信息,注册失败-错误编号
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function register($username, $password, $email,$second_pwd,$mobile){
|
|
|
|
public function register($username, $password, $email, $second_pwd,$mobile){
|
|
|
|
$data = array(
|
|
|
|
$data = array(
|
|
|
|
'username' => $username,
|
|
|
|
'username' => $username,
|
|
|
|
'password' => $password,
|
|
|
|
'password' => $password,
|
|
|
@ -115,6 +115,8 @@ class UcenterMemberModel extends Model{
|
|
|
|
if(empty($data['mobile'])) unset($data['mobile']);
|
|
|
|
if(empty($data['mobile'])) unset($data['mobile']);
|
|
|
|
/* 添加用户 */
|
|
|
|
/* 添加用户 */
|
|
|
|
if($data = $this->create($data)){
|
|
|
|
if($data = $this->create($data)){
|
|
|
|
|
|
|
|
$data['username'] = $username;
|
|
|
|
|
|
|
|
$data['email'] = $email;
|
|
|
|
$status = M('UcenterMember', 'sys_')->data($data)->add();
|
|
|
|
$status = M('UcenterMember', 'sys_')->data($data)->add();
|
|
|
|
$uid = 0;
|
|
|
|
$uid = 0;
|
|
|
|
if ($status) {
|
|
|
|
if ($status) {
|
|
|
|