作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

问题文档修复

@@ -240,7 +240,7 @@ class Goods extends Frontend @@ -240,7 +240,7 @@ class Goods extends Frontend
240 } 240 }
241 $data = $goodsModel 241 $data = $goodsModel
242 ->alias('g') 242 ->alias('g')
243 - ->field('g.*,t.name as goodstype_name,s.lng,s.lat,s.name as store_name,s.address as store_address,s.property,s.type,s.content as store_content,s.thumbnail as store_thumbnail,s.money as store_money') 243 + ->field('g.*,t.name as goodstype_name,s.lng,s.lat,s.name as store_name,s.phone.store_phone,s.address as store_address,s.property,s.type,s.content as store_content,s.thumbnail as store_thumbnail,s.money as store_money')
244 ->join('sto_goodstype t','t.id = g.goodstype_id') 244 ->join('sto_goodstype t','t.id = g.goodstype_id')
245 ->join('sto_store s','s.id = g.store_id') 245 ->join('sto_store s','s.id = g.store_id')
246 ->where($where) 246 ->where($where)
@@ -262,8 +262,8 @@ class Goods extends Frontend @@ -262,8 +262,8 @@ class Goods extends Frontend
262 $data[$key]['insurance'] = $insurance; 262 $data[$key]['insurance'] = $insurance;
263 //若不是会员加密部分信息 263 //若不是会员加密部分信息
264 if($insurance == '2'){ 264 if($insurance == '2'){
265 - $data[$key]['phone'] = "***********";  
266 - $data[$key]['address'] = "**********"; 265 + $data[$key]['store_phone'] = "***********";
  266 + $data[$key]['store_address'] = "***********";
267 } 267 }
268 //计算平均分 268 //计算平均分
269 $score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count(); 269 $score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count();