From 0022719b1207d0b268ea45389513d9a34e1d54d0 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sun, 29 Sep 2024 15:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/GetLocation.php | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 app/api/controller/GetLocation.php diff --git a/app/api/controller/GetLocation.php b/app/api/controller/GetLocation.php deleted file mode 100644 index 6a2bdb9f..00000000 --- a/app/api/controller/GetLocation.php +++ /dev/null @@ -1,26 +0,0 @@ -request->post(); - $url = 'https://apis.map.qq.com/ws/geocoder/v1?key=' . ConfigServer::get('map', 'tx_map_key') . '&address=' . $post['address']; - $result = file_get_contents($url); - $data = json_decode($result, true); - if ($data['message'] == 'Success') { - return JsonServer::success('', $data['result']['location']); - } - - return JsonServer::error('获取失败'); - - } - -} \ No newline at end of file