This commit is contained in:
mkm 2024-07-04 11:32:47 +08:00
commit 4f7397a1fc

View File

@ -195,7 +195,7 @@ class OrderLogic extends BaseLogic
} }
$store_check = 1; $store_check = 1;
} }
if ($store_check) { if (empty($store_check)) {
if ((isset($params['lat']) && $params['lat'] != '') && (isset($params['long']) && $params['long'] != '')) { if ((isset($params['lat']) && $params['lat'] != '') && (isset($params['long']) && $params['long'] != '')) {
$storeAll = SystemStore::field('id,name,phone,address,detailed_address,latitude,longitude')->select()->toArray(); $storeAll = SystemStore::field('id,name,phone,address,detailed_address,latitude,longitude')->select()->toArray();
$nearestStore = null; $nearestStore = null;