Authored by htoooth

refactor

@@ -32,7 +32,7 @@ const BLANK_STR = ' '; @@ -32,7 +32,7 @@ const BLANK_STR = ' ';
32 32
33 const cachedRequestData = {}; 33 const cachedRequestData = {};
34 34
35 -const getProductAdditionInfoByProductBaseInfoAsync = (data) => { 35 +const getProductAdditionInfoAsync = (data) => {
36 return co(function * () { 36 return co(function * () {
37 let productId = data.id; 37 let productId = data.id;
38 let uid = data.uid ? data.uid : 0; 38 let uid = data.uid ? data.uid : 0;
@@ -562,7 +562,7 @@ const detailDataPkg = (origin, uid, vipLevel) => { @@ -562,7 +562,7 @@ const detailDataPkg = (origin, uid, vipLevel) => {
562 } 562 }
563 563
564 let requestData = yield Promise.all([ 564 let requestData = yield Promise.all([
565 - getProductAdditionInfoByProductBaseInfoAsync(origin), // 接口处理数据,设置并发请求数据 565 + getProductAdditionInfoAsync(origin), // 接口处理数据,设置并发请求数据
566 getProductFavoriteDataAsync(uid, result.productId, brandId) // 处理收藏喜欢数据 566 getProductFavoriteDataAsync(uid, result.productId, brandId) // 处理收藏喜欢数据
567 ]); 567 ]);
568 568