lrf 2 tahun lalu
induk
melakukan
d09d36391a
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      app/service/apply/tryLessonApply.js

+ 1 - 0
app/service/apply/tryLessonApply.js

@@ -51,6 +51,7 @@ class TryLessonApplyService extends CrudService {
     // 通过,则需要在 lessonStudent中添加数据
     // 通过,则需要在 lessonStudent中添加数据
     const obj = _.pick(data, [ 'school_id', 'lesson_id', 'student_id' ]);
     const obj = _.pick(data, [ 'school_id', 'lesson_id', 'student_id' ]);
     obj.is_try = '1';
     obj.is_try = '1';
+    obj.is_pay = '1';
     await this.lessonStudentService.create(obj);
     await this.lessonStudentService.create(obj);
     return data;
     return data;
   }
   }