雨悸
雨悸
  • 发布:2021-01-26 11:27
  • 更新:2021-01-26 11:27
  • 阅读:590

【报Bug】安卓手机 poiSearchNearBy 有时候不执行,并且返回参数没有code和totalNumber ,ios正常

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.0.7

手机系统: Android

手机系统版本号: Android 10

手机厂商: OPPO

手机机型: oppo

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
// 周边检索  
                poiSearchNearBy() {  
                    var that = this;  
                    mapSearch.poiSearchNearBy(  
                        {  
                            point: {  
                                latitude: this.latitude,  
                                longitude: this.longitude  
                            },  
                            key: '交通',  
                            radius: 1000  
                        },  
                        ret => {  
                console.log(ret);     
                        }  
                    );  
                },  

demo见附件

操作步骤:

// 周边检索
poiSearchNearBy() {
var that = this;
mapSearch.poiSearchNearBy(
{
point: {
latitude: this.latitude,
longitude: this.longitude
},
key: '交通',
radius: 1000
},
ret => {
console.log(ret);
}
);
},


demo见附件

预期结果:

安卓手机 poiSearchNearBy 执行,返回参数有code和totalNumber ,和ios 一样

实际结果:

安卓手机 poiSearchNearBy 有时候不执行,返回参数没有code和totalNumber ,ios正常

bug描述:

安卓手机 poiSearchNearBy 有时候不执行,并且返回参数没有code和totalNumber ,ios正常,文档里面明明也写了有的,https://uniapp.dcloud.io/api/location/map?id=mapsearch-%e6%a8%a1%e5%9d%97

{  
    "poiList": [{  
        "location": {  
            "longitude": 102.780448,  
            "latitude": 24.938186  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "商启街与商英街交叉口",  
        "phone": "",  
        "province": "云南省",  
        "distance": 35,  
        "address": "官渡区",  
        "district": "530000",  
        "typecode": "190302"  
    }, {  
        "location": {  
            "longitude": 102.780284,  
            "latitude": 24.938474  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "俊发·新螺蛳湾国际商贸城精品二区16栋停车场",  
        "phone": "",  
        "province": "云南省",  
        "distance": 69,  
        "address": "商启街与商英街交叉口西北50米",  
        "district": "530000",  
        "typecode": "150904"  
    }, {  
        "location": {  
            "longitude": 102.780189,  
            "latitude": 24.938389  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "俊发·新螺蛳湾国际商贸城精品二区停车场",  
        "phone": "",  
        "province": "云南省",  
        "distance": 70,  
        "address": "商启街与商英街交叉口西北50米",  
        "district": "530000",  
        "typecode": "150904"  
    }, {  
        "location": {  
            "longitude": 102.779872,  
            "latitude": 24.93827  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "停车场\\(商启街\\)",  
        "phone": "",  
        "province": "云南省",  
        "distance": 92,  
        "address": "商启街与商英街交叉口西100米",  
        "district": "530000",  
        "typecode": "150904"  
    }, {  
        "location": {  
            "longitude": 102.780593,  
            "latitude": 24.936742  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "新螺蛳湾商贸城精品区停车场",  
        "phone": "",  
        "province": "云南省",  
        "distance": 141,  
        "address": "商贸城精品区",  
        "district": "530000",  
        "typecode": "150904"  
    }, {  
        "location": {  
            "longitude": 102.779545,  
            "latitude": 24.937283  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "住宿停车",  
        "phone": "",  
        "province": "云南省",  
        "distance": 145,  
        "address": "精品街10号附近",  
        "district": "530000",  
        "typecode": "150900"  
    }, {  
        "location": {  
            "longitude": 102.780931,  
            "latitude": 24.936655  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "商杰街与商英街交叉口",  
        "phone": "",  
        "province": "云南省",  
        "distance": 151,  
        "address": "官渡区",  
        "district": "530000",  
        "typecode": "190302"  
    }, {  
        "location": {  
            "longitude": 102.779975,  
            "latitude": 24.93919  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "俊发新螺蛳湾国际商贸城精品2区地下停车场\\(出口\\)",  
        "phone": "",  
        "province": "云南省",  
        "distance": 152,  
        "address": "商启街与商英街交叉口西北150米",  
        "district": "530000",  
        "typecode": "150908"  
    }, {  
        "location": {  
            "longitude": 102.779166,  
            "latitude": 24.93816  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "旅游机票",  
        "phone": "",  
        "province": "云南省",  
        "distance": 159,  
        "address": "精品街4栋附近",  
        "district": "530000",  
        "typecode": "070301"  
    }, {  
        "location": {  
            "longitude": 102.78045,  
            "latitude": 24.936564  
        },  
        "postcode": "",  
        "adcode": "530111",  
        "city": "昆明市",  
        "name": "商杰街",  
        "phone": "",  
        "province": "云南省",  
        "distance": 163,  
        "address": "官渡区",  
        "district": "530000",  
        "typecode": "190301"  
    }],  
    "currentNumber": 10,  
    "pageIndex": 1,  
    "pageNumber": 19  
}  
2021-01-26 11:27 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复