...
|
...
|
@@ -101,8 +101,7 @@ class Common extends Api |
|
|
$key = config('site.google_map_key');
|
|
|
$apiurl = "https://maps.googleapis.com/maps/api/geocode/json?address=$address&key=$key";
|
|
|
$data = file_get_contents($apiurl);
|
|
|
print_r($data);exit;
|
|
|
$this->success('获取成功',['address'=>$data]);
|
|
|
$this->success('获取成功',['address'=>json_decode($data,true)]);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|