lrf 2 years ago
parent
commit
1974617c0c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/service/business/lessonStudent.js

+ 2 - 0
app/service/business/lessonStudent.js

@@ -48,6 +48,7 @@ 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);
@@ -71,6 +72,7 @@ class LessonStudentService extends CrudService {
   }
 
   async create(data) {
+    console.log(data);
     // 检查是否能报名上课
     data = await this.beforeCreate(data);
     // 能报名上课,就直接创建数据