Authored by hongweigao

对brandsAPI接口,做code判断

... ... @@ -90,7 +90,7 @@ const getBrandViewTop = channel => {
brandAds = [],
brandLogos = [];
if (res.data === 'false' || res.code !== 200 ) {
if (res.data === 'false' || res.code !== 200) {
return result;
}
... ... @@ -154,6 +154,7 @@ const getBrandViewList = (channel, start, length) => {
if (res.data === 'false' || res.code !== 200) {
return result;
}
// 品牌list A-Z 0-9
if (res.data && res.data.brands) {
... ... @@ -349,7 +350,7 @@ const getPlustarList = (brandType, gender) => {
brandsIds = [],
result = {brandsIds: [], data: {}};
if (list.data === 'false' || list.code !== 200 ) {
if (list.data === 'false' || list.code !== 200) {
return result;
}
if (list.data && list.data.data && list.data.data.list) {
... ...