This commit is contained in:
Apcallover
2024-07-25 11:22:05 +08:00
parent 9fe5c37292
commit 6504a558ac
3 changed files with 9 additions and 9 deletions

View File

@@ -128,7 +128,7 @@
})
uni.request({
//url: 'https://service.sdmap.gov.cn/geodecode',
url: 'http://api.tianditu.gov.cn:9075/geocoder',
url: 'https://api.tianditu.gov.cn/geocoder',
method: 'GET',
@@ -193,7 +193,7 @@
if (this.option && this.option.apikey) {
const script = document.createElement('script')
// view 层的页面运行在 www 根目录,其相对路径相对于 www 计算
script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey
script.src = 'https://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey
script.onload = this.initEcharts.bind(this)
document.head.appendChild(script)
@@ -212,7 +212,7 @@
if (this.option.apikey) {
const script = document.createElement('script')
script.src = 'http://api.tianditu.gov.cn:9075/api?v=4.0&tk=' + this.option.apikey
script.src = 'https://api.tianditu.gov.cn/api?v=4.0&tk=' + this.option.apikey
script.onload = this.initEcharts.bind(this)
document.head.appendChild(script)