quanwei
2025-12-10 898043fc97d2ab8b793fd317a049b874ed207c6d
admin/app/api/model/store/Store.php
@@ -53,6 +53,10 @@
        $list = $data->isEmpty() ? [] : $data->toArray();
        $sortArr = [];
        foreach ($list as &$store) {
            if (empty($store['longitude']) || empty($store['latitude'])) {// 排序列
                $sortArr[] = 0;
                continue;
            }
            // 计算距离
            $distance = self::getDistance($longitude, $latitude, $store['longitude'], $store['latitude']);
            // 排序列