Update randomSelect.js

main
luoyonghuang 2 months ago
parent 873b9a982d
commit fcc3bda958

@ -31,7 +31,9 @@ async function selectStudent(req, res) {
} }
if (selectedStudent) { if (selectedStudent) {
res.send({ student: selectedStudent }); res.send({ student_name: selectedStudent.student_name,
student_id: selectedStudent.student_id
});
} else { } else {
res.status(404).send({ message: '无学生数据' }); res.status(404).send({ message: '无学生数据' });
} }

Loading…
Cancel
Save