Authored by 毕凯

协议

@@ -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);