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

问题文档修复

@@ -260,6 +260,11 @@ class Goods extends Frontend @@ -260,6 +260,11 @@ class Goods extends Frontend
260 $insurance = '1'; 260 $insurance = '1';
261 } 261 }
262 $data[$key]['insurance'] = $insurance; 262 $data[$key]['insurance'] = $insurance;
  263 + //若不是会员加密部分信息
  264 + if($insurance == '2'){
  265 + $data[$key]['phone'] = "***********";
  266 + $data[$key]['address'] = "**********";
  267 + }
263 //计算平均分 268 //计算平均分
264 $score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count(); 269 $score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count();
265 $score_sum = $evaluateModel->where(['goods_id'=>$vo['id']])->sum('level'); 270 $score_sum = $evaluateModel->where(['goods_id'=>$vo['id']])->sum('level');