Authored by 周少峰

Merge branch 'release/5.4' into gray

@@ -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
@@ -183,7 +183,7 @@ $(document).pjax('.foot-pager .pager > a, .catagory-navs li.active > a', '#pjax- @@ -183,7 +183,7 @@ $(document).pjax('.foot-pager .pager > a, .catagory-navs li.active > a', '#pjax-
183 }); 183 });
184 184
185 $(document).pjax('.catagory-navs li:not(.active) > a', '#pjax-container', { 185 $(document).pjax('.catagory-navs li:not(.active) > a', '#pjax-container', {
186 - url: '?', 186 + url: '?channel=' + window.queryString().channel,
187 timeout: 2000 187 timeout: 2000
188 }); 188 });
189 189