修改bug

master
ELF 5 years ago
parent 07ee1fc43e
commit ec2c9161e9

@ -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());

@ -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(); //错误详情见自动验证注释
}

Loading…
Cancel
Save