Authored by yyq

已下架商品处理

@@ -91,10 +91,15 @@ const getProductItemData = (params, url, uid) => { @@ -91,10 +91,15 @@ const getProductItemData = (params, url, uid) => {
91 let resData = {}; 91 let resData = {};
92 let data = {}; 92 let data = {};
93 93
  94 + // 如果status为0,即商品下架时则返回空对象
  95 + if (!result.status) {
  96 + return resData;
  97 + }
  98 +
94 if (!result.productName && 99 if (!result.productName &&
95 !result.erpProductId && 100 !result.erpProductId &&
96 !result.productPriceBo) { 101 !result.productPriceBo) {
97 - return data; 102 + return resData;
98 } 103 }
99 104
100 result.uid = uid; 105 result.uid = uid;