diff --git a/addons/address/config.php b/addons/address/config.php index 96ab16a..6bf5e5e 100644 --- a/addons/address/config.php +++ b/addons/address/config.php @@ -70,7 +70,7 @@ return [ 'title' => '高德地图KEY', 'type' => 'string', 'content' => [], - 'value' => 'dd4e8434697466586aaac37167abfb52', + 'value' => 'cc6b0958c512ac08b0aa884f9b64d553', 'rule' => '', 'msg' => '', 'tip' => '', @@ -82,7 +82,7 @@ return [ 'title' => '高德地图安全密钥', 'type' => 'string', 'content' => [], - 'value' => '38b7b7a5e4b90dcb1aa4999826d4e9d1', + 'value' => 'a2ac54e925b448f8884e35ead370c12d', 'rule' => '', 'msg' => '', 'tip' => '', diff --git a/application/admin/controller/AmapTrait.php b/application/admin/controller/AmapTrait.php index 5fa3e51..41cfa89 100644 --- a/application/admin/controller/AmapTrait.php +++ b/application/admin/controller/AmapTrait.php @@ -32,11 +32,12 @@ trait AmapTrait try { $response = Http::get($url, $params); $data = json_decode($response, true); - +// dd($data); if (isset($data['status']) && $data['status'] == '1') { return $data['pois']['0'] ?? false; } } catch (\Exception $e) { + throw $e; // 这里可以做日志记录 } return false; diff --git a/application/admin/view/order/add.html b/application/admin/view/order/add.html index d811cc4..ad8cb8d 100644 --- a/application/admin/view/order/add.html +++ b/application/admin/view/order/add.html @@ -53,13 +53,14 @@ data-lat-id="lat">地图查找 -