Authored by 张孝茹

from

... ... @@ -23,6 +23,7 @@ const thirdAccount = require('../data/third-account.json');
const auth = require('../models/auth-helper');
const loginPage = `${config.siteUrl}/signin.html`;
const FROM = require('../../../config/from');
function doPassportCallback(openId, nickname, sourceType, req, res) {
let shoppingKey = cookie.getShoppingKey(req);
... ... @@ -152,7 +153,7 @@ const common = {
let from = req.query.from;
if (from) {
if (from && FROM[from]) {
res.cookie('from', from, {
domain: 'yohobuy.com',
expires: new Date(Date.now() + 10 * 60 * 1000)
... ...
... ... @@ -23,7 +23,7 @@ class PhoneService {
area: param.area,
code: param.code,
shopping_key: param.shopping_key,
business_line: FROM[param.from] ? FROM[param.from].business_line : 'Yoho!Buy'
business_line: FROM[param.from].business_line
});
}
... ...