Authored by zhangxiaoru

判断 protocol取不到

... ... @@ -8,7 +8,7 @@ exports.index = (req, res, next) => {
let activityId = req.query.act_id || 2023,
isApp = req.yoho.isApp,
uid = req.user.uid,
protocol = req.protocol;
protocol = req.protocol ? req.protocol + ':' : '';
co(function* () {
let isStudent = yield req.ctx(shareBuyModel).checkStudent(uid);
... ...
... ... @@ -44,8 +44,8 @@ module.exports = class extends global.yoho.BaseModel {
});
if (isApp) {
val.detailUrl = protocol + ':' + val.detailUrl +
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' + protocol + ':' +
val.detailUrl = protocol + val.detailUrl +
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' + protocol +
val.detailUrl + '","params":{"couponId":"' + val.couponId + '","couponCode":"' +
val.couponCode + '"}}}';
}
... ...