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