Browse Source

奖罚金,附件

MaiXinRong 3 năm trước cách đây
mục cha
commit
459d18d251
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      app/service/report_memory.js

+ 6 - 0
app/service/report_memory.js

@@ -845,6 +845,12 @@ module.exports = app => {
                 await this.ctx.service.stage.checkStage(sid);
 
                 const data = await this.ctx.service.stageBonus.getEndStageData(this.ctx.stage.order);
+                for (const d of data) {
+                    const names = this.ctx.helper._.map(d.proof_file, function (x) {
+                        return x.filename + x.fileext;
+                    });
+                    d.proof = names.join('\n');
+                }
                 return data;
             } catch (err) {
                 return [];