|
@@ -48,7 +48,6 @@ class LessonStudentService extends CrudService {
|
|
|
|
|
|
async toRePay({ id }) {
|
|
|
const data = await this.model.findById(id);
|
|
|
- console.log(data);
|
|
|
if (!data) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到报名信息');
|
|
|
if (data.is_pay === '1') throw new BusinessError(ErrorCode.SERVICE_FAULT, '该课程已支付成功');
|
|
|
const payOrder = await this.payOrderModel.findById(data.pay_id);
|
|
@@ -72,7 +71,6 @@ class LessonStudentService extends CrudService {
|
|
|
}
|
|
|
|
|
|
async create(data) {
|
|
|
- console.log(data);
|
|
|
// 检查是否能报名上课
|
|
|
data = await this.beforeCreate(data);
|
|
|
// 能报名上课,就直接创建数据
|