Explorar o código

修复新建bug

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