...
|
...
|
@@ -43,9 +43,10 @@ const task = async(options, tick = 1) => { |
|
|
return task(options, tick + 1);
|
|
|
}
|
|
|
};
|
|
|
const lockTask = nodeLockup(task, config.delay);
|
|
|
|
|
|
module.exports = (ids, url = 'http://du.hupu.com/mapi/product/detail', params) => {
|
|
|
const lockTask = nodeLockup(task, config.delay);
|
|
|
|
|
|
return ids.map(id => lockTask(Object.assign({
|
|
|
productId: id,
|
|
|
source: 'boutiqueRecommend',
|
...
|
...
|
|