Просмотр исходного кода

原报撤回时,金额缓存调整

MaiXinRong 2 лет назад
Родитель
Сommit
31c463df9c
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/service/stage_audit.js

+ 1 - 2
app/service/stage_audit.js

@@ -995,12 +995,11 @@ module.exports = app => {
                         yf_tp: yfPay.tp,
                         sf_tp: sfPay.tp,
                     };
-                    this.ctx.stage.tp_history.push({ times, order: curAudit.order, ...stageTp });
                     await transaction.update(this.ctx.service.stage.tableName, {
                         id: stageId,
                         times,
                         ...stageTp,
-                        tp_history: JSON.stringify(this.ctx.stage.tp_history),
+                        tp_history: JSON.stringify(this.ctx.stage.tp_history.filter(x => { return x.times < times; })),
                         cache_time_r: this.ctx.stage.cache_time_l,
                         status: times === 1 ? auditConst.status.uncheck : auditConst.status.checkNo,
                     });