Merge branch 'featurn/markets' of wmtx/platform into master

名字增加修改
master
万盟天下 5 years ago committed by Gogs
commit 32d4450e4a

@ -288,7 +288,7 @@ class UserController extends AdminController
$User = new UserApi; $User = new UserApi;
$uid = $User->register($username, $password, $email, $second_pwd); $uid = $User->register($username, $password, $email, $second_pwd);
if (0 < $uid) { //注册成功 if (0 < $uid) { //注册成功
$user = array('uid' => $uid,'realname'=>$real_name, 'nickname' => $username, 'status' => 1,"birthday"=>date('Y-m-d',time())); $user = array('uid' => $uid,'real_name'=>$real_name, 'nickname' => $username, 'status' => 1,"birthday"=>date('Y-m-d',time()));
$data['uid'] = $uid; $data['uid'] = $uid;
$data['group_id'] = I('auth'); $data['group_id'] = I('auth');
M('auth_group_access')->data($data)->add(); M('auth_group_access')->data($data)->add();

Loading…
Cancel
Save