wangguoyu 2 月之前
父節點
當前提交
418b5c2356
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/customMap/customMap.vue

+ 2 - 2
components/customMap/customMap.vue

@@ -144,7 +144,7 @@
 		// #endif
 		// #ifdef APP
 		uni.request({
-			url: url,
+			url: url2,
 			method: 'get',
 			timeout: 20000,
 		}).then(res => {
@@ -266,7 +266,7 @@
 
 	function getCityName(latitude, longitude) {
 		const Key = `KBYBZ-FS3KZ-U2FXR-7VPDX-L7J46-23F55`
-		const url1 = `https://apis.map.qq.com/ws/geocoder/v1?location=${latitude},${longitude}&key=${Key}&output=jsonp`;
+		const url1 = `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=${Key}`;
 		const url = `https://apis.map.qq.com/ws/geocoder/v1`;
 		//const url = `https://apis.map.qq.com/ws/geocoder/v1/`;
 		// #ifdef H5