修改查询逻辑

This commit is contained in:
liu 2024-07-04 17:14:29 +08:00
parent 4f2617068c
commit cb8edc5a67

View File

@ -189,11 +189,11 @@ class OrderLogic extends BaseLogic
->order('id','desc')->find();
if($checkOrderStore){
$store['near_store'] =SystemStore::where('id', $checkOrderStore['store_id'])->field('id,name,phone,address,detailed_address,latitude,longitude')->find()??[];
$store_check = 1;
}else{
$store_id = getenv('STORE_ID') ?? 1;
$store['near_store'] =SystemStore::where('id', $store_id)->field('id,name,phone,address,detailed_address,latitude,longitude')->find()??[];
}
$store_check = 1;
}
if (empty($store_check)) {
if ((isset($params['lat']) && $params['lat'] != '') && (isset($params['long']) && $params['long'] != '')) {