正在显示
1 个修改的文件
包含
5 行增加
和
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'); |
-
请 注册 或 登录 后发表评论