Silent %!s(int64=6) %!d(string=hai) anos
pai
achega
36b7da9b40
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/TestController.php

+ 2 - 2
app/Http/Controllers/TestController.php

xqd
@@ -14,9 +14,9 @@ class TestController extends Controller
     public function index(Request $request)
     {
         $client = new Client();
-        $from = '39.916527,116.397128';
+        $from = '39.071510,117.190091';
         $to = $from;
-        $url = 'https://apis.map.qq.com/ws/distance/v1/?from=' . $from . '&to=' . $to . '&key=' . env('TECENT_POSITION_KEY');
+        $url = 'https://apis.map.qq.com/ws/distance/v1?from=' . $from . '&to=' . $to . '&key=' . env('TECENT_POSITION_KEY');
         $res = $client->get($url);
         $res = (string)$res->getBody();
         dd($res);