重写获取本地商家方法
This commit is contained in:
parent
b9ea667ffd
commit
8cf0b81c95
@ -145,7 +145,7 @@ class LocalStoreLogic extends Logic
|
|||||||
foreach ($lists as $key => &$value) {
|
foreach ($lists as $key => &$value) {
|
||||||
$pic = LocalStoreGoodsPic::where('lsg_id', $value['id'])->field('url')->find();
|
$pic = LocalStoreGoodsPic::where('lsg_id', $value['id'])->field('url')->find();
|
||||||
$lists[$key]['url'] = UrlServer::getFileUrl($pic['url']);
|
$lists[$key]['url'] = UrlServer::getFileUrl($pic['url']);
|
||||||
$lists[$key]['distance'] = round($this->distance($data['latitude'], $data['longitude'], $value['latitude'], $value['longitude']) / 1000, 2) . "公里";
|
$lists[$key]['distance'] = round($this->distance($data['latitude'], $data['longitude'], $value['latitude'], $value['longitude']) / 1000, 2) . "KM";
|
||||||
$lists[$key]['store_nickname'] = $value["shopName"];
|
$lists[$key]['store_nickname'] = $value["shopName"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user