Showing
1 changed file
with
1 additions
and
1 deletions
@@ -8,7 +8,7 @@ exports.index = (req, res, next) => { | @@ -8,7 +8,7 @@ exports.index = (req, res, next) => { | ||
8 | let activityId = req.query.act_id || 2023, | 8 | let activityId = req.query.act_id || 2023, |
9 | isApp = req.yoho.isApp, | 9 | isApp = req.yoho.isApp, |
10 | uid = req.user.uid, | 10 | uid = req.user.uid, |
11 | - protocol = req.protocol ? req.protocol + ':' : 'http:'; | 11 | + protocol = req.app.locals.isProduction ? 'https:' : 'http:'; |
12 | 12 | ||
13 | co(function* () { | 13 | co(function* () { |
14 | let isStudent = yield req.ctx(shareBuyModel).checkStudent(uid); | 14 | let isStudent = yield req.ctx(shareBuyModel).checkStudent(uid); |
-
Please register or login to post a comment