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

修改问题文档

... ... @@ -307,7 +307,7 @@ class Goods extends Frontend
if(empty($user_id)){
$text = "(请您先登录)";
$data[$key]['store_phone'] = substr_replace($vo['store_phone'],'****',3,4).$text;
$data[$key]['store_address'] = substr_replace($vo['store_address'],'********',3).$text;
$data[$key]['store_address'] = substr_replace($vo['store_address'],'********',9).$text;
}
//当前用户若不是会员加密部分信息
if($insurance == '2'){
... ... @@ -316,7 +316,7 @@ class Goods extends Frontend
$text = "(请您先登录)";
}
$data[$key]['store_phone'] = substr_replace($vo['store_phone'],'****',3,4).$text;
$data[$key]['store_address'] = substr_replace($vo['store_address'],'********',3).$text;
$data[$key]['store_address'] = substr_replace($vo['store_address'],'********',9).$text;
}
//计算平均分
$score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count();
... ...
... ... @@ -63,7 +63,7 @@ class Shop extends Frontend
if(empty($user_id)){
$text = "(请您先登录)";
$data['phone'] = substr_replace($data['phone'],'****',3,4).$text;
$data['address'] = substr_replace($data['address'],'********',3).$text;
$data['address'] = substr_replace($data['address'],'********',9).$text;
}
//当前用户若不是会员加密部分信息
if($encrypt == '2'){
... ... @@ -72,7 +72,7 @@ class Shop extends Frontend
$text = "(请您先登录)";
}
$data['phone'] = substr_replace($data['phone'],'****',3,4).$text;
$data['address'] = substr_replace($data['address'],'********',3).$text;
$data['address'] = substr_replace($data['address'],'********',9).$text;
}
$this->assign('data',$data);
// dump(collection($data)->toArray());
... ...