Merge branch 'main' of git.njrzwl.cn:wangmingchuan/yanzong into main

wysf
ztt 9 months ago
commit 94ea0a073e
  1. 2
      app/store/model/store/Shop.php

@ -127,9 +127,11 @@ class Shop extends ShopModel
$data['latitude'] = $coordinate[0];
$data['longitude'] = $coordinate[1];
// 格式化停车场坐标信息
if (!empty($data['parking_coordinate'])) {
$parking_coordinate = explode(',', $data['parking_coordinate']);
$data['parking_latitude'] = $parking_coordinate[0];
$data['parking_longitude'] = $parking_coordinate[1];
}
// 生成geohash
$data['geohash'] = (new Geohash)->encode($data['longitude'], $data['latitude']);
// 省市区ID

Loading…
Cancel
Save