Showing
1 changed file
with
2 additions
and
1 deletions
@@ -167,6 +167,8 @@ const couponController = { | @@ -167,6 +167,8 @@ const couponController = { | ||
167 | downloadNoList(req, res, next) { | 167 | downloadNoList(req, res, next) { |
168 | const couponId = req.query.id; | 168 | const couponId = req.query.id; |
169 | 169 | ||
170 | + res.setTimeout(1000 * 60 * 3 + 1000); | ||
171 | + | ||
170 | if (!couponId) { | 172 | if (!couponId) { |
171 | return res.json({ | 173 | return res.json({ |
172 | code: 400, | 174 | code: 400, |
@@ -216,7 +218,6 @@ const couponController = { | @@ -216,7 +218,6 @@ const couponController = { | ||
216 | 218 | ||
217 | let exportFile = excelExport.execute(conf); | 219 | let exportFile = excelExport.execute(conf); |
218 | 220 | ||
219 | - res.setTimeout(1000 * 60 * 3 + 1000); | ||
220 | res.setHeader('Content-Type', 'application/vnd.openxmlformats'); | 221 | res.setHeader('Content-Type', 'application/vnd.openxmlformats'); |
221 | res.setHeader('Content-Disposition', 'attachment; filename=couponList.xlsx'); | 222 | res.setHeader('Content-Disposition', 'attachment; filename=couponList.xlsx'); |
222 | res.end(exportFile, 'binary'); | 223 | res.end(exportFile, 'binary'); |
-
Please register or login to post a comment