diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index 59b64d639..79ced5041 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -272,7 +272,7 @@ class UserController extends AdminController { $list=D('AuthGroup')->where(array('status'=>1))->select(); $this->assign('lists',$list); $this->meta_title = '新增管理员'; - + $this->m_title = '管理员列表'; $this->assign('commonset',M('Kuaijieicon')->where(['url'=>'User/index','status'=>1])->find()); diff --git a/Application/User/Model/UcenterMemberModel.class.php b/Application/User/Model/UcenterMemberModel.class.php index 69506c4ab..6f927f44b 100644 --- a/Application/User/Model/UcenterMemberModel.class.php +++ b/Application/User/Model/UcenterMemberModel.class.php @@ -113,11 +113,14 @@ class UcenterMemberModel extends Model{ //验证手机 if(empty($data['mobile'])) unset($data['mobile']); - /* 添加用户 */ - if($this->create($data)){ - $uid = $this->add(); - return $uid ? $uid : 0; //0-未知错误,大于0-注册成功 + if($data = $this->create($data)){ + $status = M('UcenterMember', 'sys_')->data($data)->add(); + $uid = 0; + if ($status) { + $uid = M()->getLastInsID(); + } + return $uid; //0-未知错误,大于0-注册成功 } else { return $this->getError(); //错误详情见自动验证注释 }