Showing
1 changed file
with
1 additions
and
2 deletions
@@ -29,12 +29,11 @@ exports.index = (req, res, next) => { | @@ -29,12 +29,11 @@ exports.index = (req, res, next) => { | ||
29 | exports.main = (req, res, next) => { | 29 | exports.main = (req, res, next) => { |
30 | const isReplay = /^\/live\/replay\//.test(req.path); | 30 | const isReplay = /^\/live\/replay\//.test(req.path); |
31 | const id = req.params.id; | 31 | const id = req.params.id; |
32 | - const goDownload = req.query.no; | ||
33 | 32 | ||
34 | res.locals.liveRoom = id; | 33 | res.locals.liveRoom = id; |
35 | res.locals.module = 'activity'; | 34 | res.locals.module = 'activity'; |
36 | res.locals.page = 'live-play'; | 35 | res.locals.page = 'live-play'; |
37 | - res.locals.enableFoot = goDownload !== 1; | 36 | + res.locals.enableFoot = Number(req.query.no) !== 1; |
38 | 37 | ||
39 | model.fetchInfo(id, isReplay) | 38 | model.fetchInfo(id, isReplay) |
40 | .then(result => { | 39 | .then(result => { |
-
Please register or login to post a comment