lrf hace 2 años
padre
commit
11ac5a0029
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/service/business/lessonStudent.js

+ 1 - 1
app/service/business/lessonStudent.js

@@ -58,8 +58,8 @@ class LessonStudentService extends CrudService {
       await this.payService.close(order_no);
       // 删了重做
       this.tran.remove('LessonStudent', id);
-      await this.create({ openid, money, school_id, student_id, lesson_id });
       await this.tran.run();
+      await this.create({ openid, money, school_id, student_id, lesson_id });
     } catch (error) {
       await this.tran.rollback();
     } finally {