lrf 2 年之前
父節點
當前提交
1974617c0c
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);
     // 能报名上课,就直接创建数据