lrf 2 年之前
父节点
当前提交
11ac5a0029
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
       await this.payService.close(order_no);
       // 删了重做
       // 删了重做
       this.tran.remove('LessonStudent', id);
       this.tran.remove('LessonStudent', id);
-      await this.create({ openid, money, school_id, student_id, lesson_id });
       await this.tran.run();
       await this.tran.run();
+      await this.create({ openid, money, school_id, student_id, lesson_id });
     } catch (error) {
     } catch (error) {
       await this.tran.rollback();
       await this.tran.rollback();
     } finally {
     } finally {