public function register() {
$reg_result = $this->create($data);
if ($reg_result) {
$data['uid'] = $this->add();
return $data['uid'] ? $data['uid'] : 0;
}else {
return $this->getError();
}
} 最佳答案