$this->db->trans_start();
$insert_user = $this->user_model->insert_data([
'student_id' => $student_id,
'username' => $username,
'user_password' => $user_password,
'user_email' => $user_email,
'level_id' => 1 //后面改,接入website_model
]);
$insert_userFront = $this->user_front_model->insert_data([
'student_id' => $student_id
]);
$this->db->trans_complete();
if (!$this->db->trans_status()){
return_msg(false, '数据库出错 注册失败');
}