lrf 2 gadi atpakaļ
vecāks
revīzija
1974617c0c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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 }) {
   async toRePay({ id }) {
     const data = await this.model.findById(id);
     const data = await this.model.findById(id);
+    console.log(data);
     if (!data) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到报名信息');
     if (!data) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到报名信息');
     if (data.is_pay === '1') throw new BusinessError(ErrorCode.SERVICE_FAULT, '该课程已支付成功');
     if (data.is_pay === '1') throw new BusinessError(ErrorCode.SERVICE_FAULT, '该课程已支付成功');
     const payOrder = await this.payOrderModel.findById(data.pay_id);
     const payOrder = await this.payOrderModel.findById(data.pay_id);
@@ -71,6 +72,7 @@ class LessonStudentService extends CrudService {
   }
   }
 
 
   async create(data) {
   async create(data) {
+    console.log(data);
     // 检查是否能报名上课
     // 检查是否能报名上课
     data = await this.beforeCreate(data);
     data = await this.beforeCreate(data);
     // 能报名上课,就直接创建数据
     // 能报名上课,就直接创建数据