修改bug

master
ELF 5 years ago
parent 07ee1fc43e
commit ec2c9161e9

@ -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