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