1.本地生活上级列表优化

This commit is contained in:
xucong 2024-08-10 15:57:52 +08:00
parent e2bf2787b6
commit 86f66fc24a

@ -34,7 +34,7 @@ class LocalStoreLogic extends Logic
// FROM ls_local_store where is_delete = 0 $s
// ORDER BY distance limit $page,$size";
$sql = "SELECT * FROM ls_local_store where is_delete = 0 and shopLogo is not null $s ORDER BY lstore_id asc limit ".$page.",".$size;
// var_dump($sql);
var_dump($sql);
$lists = Db::query($sql);
foreach($lists as $key=>$value){
$lists[$key]['distance'] = round($this->distance($data['latitude'], $data['longitude'], $value['latitude'], $value['longitude'])/1000,1)."公里";