|
@@ -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 {
|