放心行(约客多 2026/6/22 最新版本改版)
hejianhao
2026-06-23 f40ccd60fba186abd7760e5b1e773daf9cd62e89
修复(小程序): 更新所有高德地图API密钥

替换旧的无效API密钥为新密钥,恢复地图服务正常功能
11个文件已修改
44 ■■■■■ 已修改文件
miniprogram/FreeRidePackage/pages/hitchhome/hitchhome.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/app.js 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/advoad-city-search/advoad-message/advoad-message.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/advoad-city-search/advoad-message/electronic-fence/electronic-fence.js 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/ferry-coach/ferry-coach.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/getLocation/getLocation.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/home/home.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/scanOrder/scanOrder.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/pages/setLocation/setLocation.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/test_amap.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/utils/util.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
miniprogram/FreeRidePackage/pages/hitchhome/hitchhome.js
@@ -52,7 +52,7 @@
    getLocal(latitude, longitude) {
        console.log(latitude, longitude, "===getLocal");
        var myAmapFun = new GdMap.AMapWX({
            key: "cea7923a93987b959ab1d2f8ab44d497",
            key: "0a4ecc86729b8d18661abd5d0686e42c",
        });
        myAmapFun.getRegeo({
            location: longitude + "," + latitude,
miniprogram/app.js
@@ -367,7 +367,7 @@
    getQQMap() {
        return new GdMap.AMapWX({
            key: "cea7923a93987b959ab1d2f8ab44d497",
            key: "0a4ecc86729b8d18661abd5d0686e42c",
            // key:"be262c006216c542747fce766130cee3"
        });
        // return new QQMapWX({
@@ -377,7 +377,7 @@
    getQQMaps() {
        // return new GdMap.AMapWX({
        //     key: "cea7923a93987b959ab1d2f8ab44d497",
        //     key: "0a4ecc86729b8d18661abd5d0686e42c",
        // });
        return new QQMapWX({
            key: "UHWBZ-6NM3U-DHCVH-2NMFG-XWCIH-WUBYM",
miniprogram/pages/advoad-city-search/advoad-message/advoad-message.js
@@ -93,7 +93,7 @@
        const latitude = locationRes.latitude
        const longitude = locationRes.longitude
        const myAmapFun = new GdMap.AMapWX({
          key: 'cea7923a93987b959ab1d2f8ab44d497'
          key: '0a4ecc86729b8d18661abd5d0686e42c'
        })
        const regeoRes = await new Promise((regeoResolve, regeoReject) => {
          myAmapFun.getRegeo({
miniprogram/pages/advoad-city-search/advoad-message/electronic-fence/electronic-fence.js
@@ -156,7 +156,7 @@
  },
  getAmapInstance(){
    return new amapFile.AMapWX({
      key: 'cea7923a93987b959ab1d2f8ab44d497'
      key: '0a4ecc86729b8d18661abd5d0686e42c'
    })
  },
  reverseGeocode(latitude, longitude) {
@@ -643,7 +643,7 @@
     console.log('///////////',location);
    //  let myAmapFun = new amapFile.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });     
    var myAmapFun = new amapFile.AMapWX({
      key: 'cea7923a93987b959ab1d2f8ab44d497'
      key: '0a4ecc86729b8d18661abd5d0686e42c'
    });
    myAmapFun.getInputtips({
      keywords: inputValue,
miniprogram/pages/ferry-coach/ferry-coach.js
@@ -143,7 +143,7 @@
    // })
    // ====== 高德地图逻辑 ======
    const myAmapFun = new amapFile.AMapWX({ key: 'cea7923a93987b959ab1d2f8ab44d497' });
    const myAmapFun = new amapFile.AMapWX({ key: '0a4ecc86729b8d18661abd5d0686e42c' });
    myAmapFun.getRegeo({
      location: `${longitude},${latitude}`, // 高德经纬度顺序为 "经度,纬度"
      success: (data) => {
miniprogram/pages/getLocation/getLocation.js
@@ -119,7 +119,7 @@
        // var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });
        try {
            var myAmapFun = new GdMap.AMapWX({
                key: 'cea7923a93987b959ab1d2f8ab44d497'
                key: '0a4ecc86729b8d18661abd5d0686e42c'
            });
            console.log('myAmapFun created successfully:', myAmapFun)
            myAmapFun.getInputtips({
miniprogram/pages/home/home.js
@@ -2068,7 +2068,7 @@
            const latitude = locationRes.latitude;
            const longitude = locationRes.longitude;
            const myAmapFun = new GdMap.AMapWX({
                key: "cea7923a93987b959ab1d2f8ab44d497",
                key: "0a4ecc86729b8d18661abd5d0686e42c",
            });
            const regeoRes = await new Promise((resolve, reject) => {
                myAmapFun.getRegeo({
@@ -3826,7 +3826,7 @@
    getLocal(latitude, longitude) {
        console.log(latitude, longitude, "===getLocal");
        var myAmapFun = new GdMap.AMapWX({
            key: "cea7923a93987b959ab1d2f8ab44d497",
            key: "0a4ecc86729b8d18661abd5d0686e42c",
        });
        myAmapFun.getRegeo({
            location: longitude + "," + latitude, // 高德经纬度为 经度,纬度
@@ -3978,7 +3978,7 @@
            // 初始化高德地图SDK
            var amap = new GdMap.AMapWX({
                key: 'cea7923a93987b959ab1d2f8ab44d497'
                key: '0a4ecc86729b8d18661abd5d0686e42c'
            });
            console.log('开始路线规划:', {
miniprogram/pages/scanOrder/scanOrder.js
@@ -184,7 +184,7 @@
                                            //接入高地地图调用.....
                                            // var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });
                                            var myAmapFun = new GdMap.AMapWX({
                                                key: "cea7923a93987b959ab1d2f8ab44d497",
                                                key: "0a4ecc86729b8d18661abd5d0686e42c",
                                            });
                                            myAmapFun.getRegeo({
                                                success: (res) => {
@@ -290,7 +290,7 @@
                                    if (res.confirm) {
                                        //  var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });
                                        var myAmapFun = new GdMap.AMapWX({
                                            key: "cea7923a93987b959ab1d2f8ab44d497",
                                            key: "0a4ecc86729b8d18661abd5d0686e42c",
                                        });
                                        myAmapFun.getRegeo({
                                            success: (res) => {
@@ -392,7 +392,7 @@
                                                    //接入高地地图调用.....
                                                    // var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });
                                                    var myAmapFun = new GdMap.AMapWX({
                                                        key: "cea7923a93987b959ab1d2f8ab44d497",
                                                        key: "0a4ecc86729b8d18661abd5d0686e42c",
                                                    });
                                                    myAmapFun.getRegeo({
                                                        success: (res) => {
@@ -469,7 +469,7 @@
                        } else if (res.authSetting["scope.userLocation"] == true) {
                            //  var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });
                            var myAmapFun = new GdMap.AMapWX({
                                key: "cea7923a93987b959ab1d2f8ab44d497",
                                key: "0a4ecc86729b8d18661abd5d0686e42c",
                            });
                            myAmapFun.getRegeo({
                                success: (res) => {
miniprogram/pages/setLocation/setLocation.js
@@ -144,7 +144,7 @@
        console.log('eqweqwe478484',latitude,longitude);
        // 使用高德地图API替代腾讯地图
        var myAmapFun = new GdMap.AMapWX({
            key: 'cea7923a93987b959ab1d2f8ab44d497'
            key: '0a4ecc86729b8d18661abd5d0686e42c'
        });
        let that = this;
@@ -284,7 +284,7 @@
        try {
            // var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });      
            var myAmapFun = new GdMap.AMapWX({
                key: 'cea7923a93987b959ab1d2f8ab44d497'
                key: '0a4ecc86729b8d18661abd5d0686e42c'
            });
            console.log('myAmapFun created successfully:', myAmapFun)
            myAmapFun.getInputtips({
@@ -325,7 +325,7 @@
                            if (res.confirm) {
                                //  var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });       
                                var myAmapFun = new GdMap.AMapWX({
                                    key: 'cea7923a93987b959ab1d2f8ab44d497'
                                    key: '0a4ecc86729b8d18661abd5d0686e42c'
                                });
                                myAmapFun.getRegeo({
                                    success: (res) => {
@@ -368,7 +368,7 @@
                                            //接入高地地图调用.....
                                            // var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });     
                                            var myAmapFun = new GdMap.AMapWX({
                                                key: 'cea7923a93987b959ab1d2f8ab44d497'
                                                key: '0a4ecc86729b8d18661abd5d0686e42c'
                                            });
                                            myAmapFun.getRegeo({
                                                success: (res) => {
@@ -395,7 +395,7 @@
                    //  var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });    
                    console.log('qweqweqweqweqw',this.data.longitude,this.data.latitude);     
                    var myAmapFun = new GdMap.AMapWX({
                        key: 'cea7923a93987b959ab1d2f8ab44d497'
                        key: '0a4ecc86729b8d18661abd5d0686e42c'
                    });
                    myAmapFun.getRegeo({
                        location:this.data.longitude + ',' + this.data.latitude,
miniprogram/test_amap.js
@@ -11,7 +11,7 @@
// 初始化高德地图SDK
const amap = new GdMap.AMapWX({
    key: 'cea7923a93987b959ab1d2f8ab44d497'
    key: '0a4ecc86729b8d18661abd5d0686e42c'
});
console.log("测试坐标:", testCoordinates);
miniprogram/utils/util.js
@@ -86,7 +86,7 @@
                                        //接入高地地图调用.....
                                        // var myAmapFun = new GdMap.AMapWX({ key: '22f054fcf175ade2af008875bdd68242' });
                                        var myAmapFun = new GdMap.AMapWX({
                                            key: 'cea7923a93987b959ab1d2f8ab44d497'
                                            key: '0a4ecc86729b8d18661abd5d0686e42c'
                                        });
                                        myAmapFun.getRegeo({
                                            success: (res) => {