Authored by zhangxiaoru

plustar

@@ -47,6 +47,7 @@ const getDetailData = (req, res, next) => { @@ -47,6 +47,7 @@ const getDetailData = (req, res, next) => {
47 let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || '1,3'; 47 let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || '1,3';
48 let isApp = req.query.app_version || req.query.appVersion || false; 48 let isApp = req.query.app_version || req.query.appVersion || false;
49 let clientType = req.body.client_type || ''; 49 let clientType = req.body.client_type || '';
  50 + let version = req.body.app_version || '';
50 51
51 if (clientType.toLowerCase() === 'ios' && version) { 52 if (clientType.toLowerCase() === 'ios' && version) {
52 clientType = 'iphone'; 53 clientType = 'iphone';
@@ -81,7 +81,7 @@ const getRelatedEditorial = () => { @@ -81,7 +81,7 @@ const getRelatedEditorial = () => {
81 81
82 }; 82 };
83 83
84 -//是否收藏 84 +// 是否收藏
85 const isCollection = (uid, brandId, clientType) => { 85 const isCollection = (uid, brandId, clientType) => {
86 return serviceAPI.get('shops/service/v1/favorite/getUidBrandFav', { 86 return serviceAPI.get('shops/service/v1/favorite/getUidBrandFav', {
87 uid: uid, 87 uid: uid,
@@ -97,12 +97,6 @@ const isCollection = (uid, brandId, clientType) => { @@ -97,12 +97,6 @@ const isCollection = (uid, brandId, clientType) => {
97 let isLike = false; 97 let isLike = false;
98 return isLike; 98 return isLike;
99 } 99 }
100 -  
101 - if (isset($getUidBrandFav['code']) && $getUidBrandFav['code'] == 200) {  
102 - $cached['getUidBrandFav'] = true;  
103 - } else {  
104 - $getUidBrandFavResult = false;  
105 - }  
106 }); 100 });
107 }; 101 };
108 102