@@ -19,10 +19,7 @@ class LessonStudentService extends CrudService {
// 检查是否已经有数据
const data = await this.model.findOne({ lesson_id, school_id, student_id });
// 数据已存在,检查是否是申请试听
- if (data) {
- const { is_try } = data;
- if (is_try === '0') throw new BusinessError(ErrorCode.DATA_EXISTED, '您已经报名');
- }
+ if (data) throw new BusinessError(ErrorCode.DATA_EXISTED, '您已报名');
// 数据不存在
const { is_try } = body;
// 检查是否使用试听名额