Browse Source

修复新建bug

laiguoran 2 years ago
parent
commit
c5bbbed390
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/payment_detail.js

+ 1 - 1
app/service/payment_detail.js

@@ -72,7 +72,7 @@ module.exports = app => {
                 const newDetail = {
                     tender_id: this.ctx.paymentTender.id,
                     tr_id: trInfo.id,
-                    order: preDetail.order ? preDetail.order + 1 : 1,
+                    order: preDetail && preDetail.order ? preDetail.order + 1 : 1,
                     times: 1,
                     status: auditConst.status.uncheck,
                     uid: this.ctx.session.sessionUser.accountId,