...
|
...
|
@@ -7,7 +7,7 @@ |
|
|
'use strict';
|
|
|
|
|
|
var api = global.yoho.API;
|
|
|
|
|
|
const service = global.yoho.ServiceAPI;
|
|
|
|
|
|
/* 男生频道取品牌广告及热门品牌数据的位置码 */
|
|
|
let CODE_TOPPOS_BOYS = 'ce6ac059493ec26241a8cbe0bfa1b17a';
|
...
|
...
|
@@ -26,15 +26,20 @@ let CODE_TOPPOS_LIFESTYLE = 'f1aa914fd23cbcda71a87de6f5416c75'; |
|
|
*/
|
|
|
|
|
|
const _packageAd = (params) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.brand.newBrandList',
|
|
|
yh_channel: params.channel
|
|
|
|
|
|
}, { code: 200 }).then(result => {
|
|
|
return service.get('/operations/api/v5/resource/home', {
|
|
|
content_code: '5a9b5bcfd2e13d56c9ba6b867a325dc1',
|
|
|
gender: 1,
|
|
|
limit: 1000,
|
|
|
page: 1
|
|
|
}).then(result => {
|
|
|
|
|
|
console.log(result);
|
|
|
|
|
|
return result;
|
|
|
|
|
|
});
|
|
|
|
|
|
};
|
|
|
|
|
|
const _packageList = (params) => {
|
...
|
...
|
@@ -57,7 +62,7 @@ const _package = (params) => { |
|
|
|
|
|
]).then(result => {
|
|
|
|
|
|
console.log(result[0]);
|
|
|
//console.log(result[0]);
|
|
|
|
|
|
return result;
|
|
|
|
...
|
...
|
|