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

修改问题文档

... ... @@ -291,14 +291,14 @@ class Goods extends Frontend
}
$data[$key]['insurance'] = $insurance;
//当前用户若不是会员加密部分信息
/*if($encrypt == '2'){
if($encrypt == '2'){
$text = '';
if(empty($user_id)){
$text = "(请您先登录)";
}
$data[$key]['store_phone'] = "***********$text";
$data[$key]['store_address'] = "***********$text";
}*/
}
//计算平均分
$score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count();
$score_sum = $evaluateModel->where(['goods_id'=>$vo['id']])->sum('level');
... ...
... ... @@ -54,10 +54,10 @@ class Shop extends Frontend
}
$data['is_collect'] = $is_collect;
//当前用户若不是会员加密部分信息
/*if($encrypt == '2'){
if($encrypt == '2'){
$data['phone'] = "***********";
$data['address'] = "***********";
}*/
}
$this->assign('data',$data);
// dump(collection($data)->toArray());
if($this->request->isAjax()){
... ...