...
|
...
|
@@ -240,7 +240,7 @@ class Goods extends Frontend |
|
|
}
|
|
|
$data = $goodsModel
|
|
|
->alias('g')
|
|
|
->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')
|
|
|
->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')
|
|
|
->join('sto_goodstype t','t.id = g.goodstype_id')
|
|
|
->join('sto_store s','s.id = g.store_id')
|
|
|
->where($where)
|
...
|
...
|
@@ -262,8 +262,8 @@ class Goods extends Frontend |
|
|
$data[$key]['insurance'] = $insurance;
|
|
|
//若不是会员加密部分信息
|
|
|
if($insurance == '2'){
|
|
|
$data[$key]['phone'] = "***********";
|
|
|
$data[$key]['address'] = "**********";
|
|
|
$data[$key]['store_phone'] = "***********";
|
|
|
$data[$key]['store_address'] = "***********";
|
|
|
}
|
|
|
//计算平均分
|
|
|
$score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count();
|
...
|
...
|
|