...
|
...
|
@@ -11,7 +11,6 @@ const API = require(`${library}/api`).API; |
|
|
const ServiceAPI = require(`${library}/api`).ServiceAPI;
|
|
|
const api = new API();
|
|
|
const serviceAPI = new ServiceAPI();
|
|
|
const sign = require(`${library}/sign`);
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
const yhChannel = {
|
...
|
...
|
@@ -47,7 +46,7 @@ exports.getSaleGoodsList = (params) => { |
|
|
|
|
|
Object.assign(finalParams, params);
|
|
|
|
|
|
return api.get('', sign.apiSign(finalParams));
|
|
|
return api.get('', finalParams);
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -57,10 +56,10 @@ exports.getSaleGoodsList = (params) => { |
|
|
exports.getSalebreakingYardsSortList = (params) => {
|
|
|
let tempChannel = _.isEmpty(params.channel) ? 'boys' : params.channel;
|
|
|
|
|
|
return api.get('', sign.apiSign({
|
|
|
return api.get('', {
|
|
|
method: 'app.sale.getBreakingSort',
|
|
|
yh_channel: yhChannel[tempChannel].channel
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -70,13 +69,13 @@ exports.getSalebreakingYardsSortList = (params) => { |
|
|
exports.getSaleActivityList = (params, channel) => {
|
|
|
let tempChannel = _.isEmpty(channel) ? 'boys' : channel;
|
|
|
|
|
|
return api.get('', sign.apiSign({
|
|
|
return api.get('', {
|
|
|
id: params.id || null,
|
|
|
method: 'app.activity.get',
|
|
|
sort: '2',
|
|
|
plateform: '1',
|
|
|
yh_channel: yhChannel[tempChannel].channel
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -84,9 +83,9 @@ exports.getSaleActivityList = (params, channel) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.getSaleBannerList = (cCode) => {
|
|
|
return serviceAPI.get('operations/api/v5/resource/get', sign.apiSign({
|
|
|
return serviceAPI.get('operations/api/v5/resource/get', {
|
|
|
content_code: cCode
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -94,9 +93,9 @@ exports.getSaleBannerList = (cCode) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.getLeftContentList = () => {
|
|
|
return api.get('', sign.apiSign({
|
|
|
return api.get('', {
|
|
|
method: 'app.sort.get'
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -111,8 +110,8 @@ exports.getUserProfile = (uid) => { |
|
|
data: {}
|
|
|
});
|
|
|
}
|
|
|
return api.get('', sign.apiSign({
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.profile',
|
|
|
uid: uid
|
|
|
}), true);
|
|
|
}, true);
|
|
|
}; |
...
|
...
|
|