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