lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
11ac5a0029
Modificáronse 1 ficheiros con 1 adicións e 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 {