diff --git a/lib/shop/page/select_address_page.dart b/lib/shop/page/select_address_page.dart index 44c5e5d81..58614c692 100644 --- a/lib/shop/page/select_address_page.dart +++ b/lib/shop/page/select_address_page.dart @@ -34,7 +34,7 @@ class _AddressSelectPageState extends State<AddressSelectPage> { /// 配置key Flutter2dAMap.setApiKey( iOSKey: '4327916279bf45a044bb53b947442387', - webKey: '4e479545913a3a180b3cffc267dad646', + webKey: 'c9446a164fd1245dd110b54114095303', ); } diff --git a/web/index.html b/web/index.html index 35d20e34d..a116661a1 100644 --- a/web/index.html +++ b/web/index.html @@ -36,8 +36,13 @@ navigator.serviceWorker.register('flutter_service_worker.js'); }); } - </script> -<!--高德地图--> +</script> +<!--高德地图 https://lbs.amap.com/api/javascript-api-v2/guide/abc/jscode --> +<script type="text/javascript"> + window._AMapSecurityConfig = { + securityJsCode: "71d62f39f1672a3469ee464ab1f4665f", + }; +</script> <script src="https://webapi.amap.com/loader.js"></script> <script src="main.dart.js" type="application/javascript"></script> </body>