Authored by 郝肖肖

设置活动页cookie path

@@ -6,13 +6,12 @@ @@ -6,13 +6,12 @@
6 'use strict'; 6 'use strict';
7 7
8 // 活动页保存相应cookie的值 8 // 活动页保存相应cookie的值
9 -exports.index = (req, res, next) => { 9 +exports.index = (req, res) => {
10 let mktCode = req.query.mkt_code || false; 10 let mktCode = req.query.mkt_code || false;
11 11
12 // 下载浮层,下载按钮会用到该参数 12 // 下载浮层,下载按钮会用到该参数
13 if (mktCode) { 13 if (mktCode) {
14 res.cookie('unionTypeYas', mktCode, { 14 res.cookie('unionTypeYas', mktCode, {
15 - domain: 'm.yohobuy.com',  
16 path: '/' 15 path: '/'
17 }); 16 });
18 } 17 }