Procházet zdrojové kódy

奖罚金,附件

MaiXinRong před 3 roky
rodič
revize
459d18d251
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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 [];