Silent 6 роки тому
батько
коміт
c3be7e8583
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/Http/Controllers/TestController.php

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

xqd
@@ -16,7 +16,7 @@ class TestController extends Controller
         $client = new Client();
         $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');
         $url = 'https://apis.map.qq.com/ws/distance/v1/?mode=driving&from=39.983171,116.308479&to=39.996060,116.353455;39.949227,116.394310&key=2DEBZ-SPSK3-ICA3T-Y4Y7D-EDWYQ-WBFVE';
         $res = $client->get($url);
         $res = (string)$res->getBody();