@@ -293,6 +293,11 @@ class Topicdongtai extends Api
//距离
$val['distance'] = isset($val['distance']) ? $val['distance'] : 0;
$val['distance'] = bcdiv(intval($val['distance']),1000,2).'km';
+ //vip如果开了隐私保护,需要隐藏距离
+ $yinsi = $this->user_power($val['user_id'],'yinsi');
+ if($yinsi == 1){
+ $val['distance'] = '';
+ }
//用户年龄
$val['age'] = birthtime_to_age($val['birthday']);