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