作者 王智

daima

... ... @@ -326,15 +326,16 @@ class Index extends Api
if (empty($param['lng']) || $param['lng'] == null || $param['lng'] == '' || $param['lng'] == "") {
$ruestul[$k]['from'] = '暂无距离信息';
} else {
$ruestul[$k]['from'] = $this->getDistance($param['lng'], $param['lat'], $v['lng'], $v['lat']) . 'km';
$ruestul[$k]['from'] = $this->getDistance($param['lng'], $param['lat'], $v['lng'], $v['lat']);
}
$ruestul[$k]['talk_num'] = $v['talk_num'];
}
$newarr = array_column($ruestul, 'from');
array_multisort($newarr, SORT_ASC, $ruestul);
dump($ruestul);
die;
$ruestul = $this->page_array($param['rows'], $param['pages'], $ruestul, 0);
foreach ($ruestul as $k => $v) {
$ruestul[$k]['from'] = $v['from'] . 'km';
}
$list = [
'count' => count($count),
'list' => $ruestul
... ...