修改查询逻辑
This commit is contained in:
parent
4f2617068c
commit
cb8edc5a67
@ -189,11 +189,11 @@ class OrderLogic extends BaseLogic
|
|||||||
->order('id','desc')->find();
|
->order('id','desc')->find();
|
||||||
if($checkOrderStore){
|
if($checkOrderStore){
|
||||||
$store['near_store'] =SystemStore::where('id', $checkOrderStore['store_id'])->field('id,name,phone,address,detailed_address,latitude,longitude')->find()??[];
|
$store['near_store'] =SystemStore::where('id', $checkOrderStore['store_id'])->field('id,name,phone,address,detailed_address,latitude,longitude')->find()??[];
|
||||||
|
$store_check = 1;
|
||||||
}else{
|
}else{
|
||||||
$store_id = getenv('STORE_ID') ?? 1;
|
$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['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 (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'] != '')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user