|
@@ -148,9 +148,10 @@ const _proListHandler = (data, params) => { |
|
@@ -148,9 +148,10 @@ const _proListHandler = (data, params) => { |
148
|
*/
|
148
|
*/
|
149
|
const index = (req) => {
|
149
|
const index = (req) => {
|
150
|
|
150
|
|
151
|
- let channel = req.query.channel || req.cookies._Channel || 'boys';
|
151
|
+ let channel = req.yoho.channel;
|
152
|
let params = {
|
152
|
let params = {
|
153
|
yh_channel: channelMap[channel].yh_channel,
|
153
|
yh_channel: channelMap[channel].yh_channel,
|
|
|
154
|
+ channel: channel,
|
154
|
uid: req.user.uid || ''
|
155
|
uid: req.user.uid || ''
|
155
|
};
|
156
|
};
|
156
|
|
157
|
|
|
@@ -317,10 +318,11 @@ const index = (req) => { |
|
@@ -317,10 +318,11 @@ const index = (req) => { |
317
|
* @returns {Promise.<TResult>}
|
318
|
* @returns {Promise.<TResult>}
|
318
|
*/
|
319
|
*/
|
319
|
const getRecList = (req) => {
|
320
|
const getRecList = (req) => {
|
320
|
- let channel = req.query.channel || req.cookies._Channel || 'boys';
|
321
|
+ let channel = req.yoho.channel;
|
321
|
|
322
|
|
322
|
let params = {
|
323
|
let params = {
|
323
|
yh_channel: channelMap[channel].yh_channel,
|
324
|
yh_channel: channelMap[channel].yh_channel,
|
|
|
325
|
+ channel: channel,
|
324
|
uid: req.user.uid || ''
|
326
|
uid: req.user.uid || ''
|
325
|
};
|
327
|
};
|
326
|
|
328
|
|