收藏
回答

微信小程序获取接口列表返回结果不一致,有时候返回是待申请开通的,有时候返回是已开通的

https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/apply_api/get_privacy_interface.html

例如小程序:wx3e487e547f2aaebe,有时候返回wx.chooseLocation、wx.chooseAddress、wx.getLocation是已开通的,有时候是待申请开通

{

        "errcode": 0,

        "errmsg": "ok",

        "interface_list": [

            {

                "api_desc": "获取当前的地理位置、速度",

                "group_name": "地理位置",

                "api_name": "wx.getLocation",

                "api_ch_name": "wx.getLocation",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html ",

                "status": 1

            },

            {

                "api_desc": "获取当前的模糊地理位置",

                "group_name": "地理位置",

                "api_name": "wx.getFuzzyLocation",

                "api_ch_name": "wx.getFuzzyLocation",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getFuzzyLocation.html",

                "status": 1

            },

            {

                "api_desc": "打开 POI 列表选择位置",

                "group_name": "地理位置",

                "api_name": "wx.choosePoi",

                "api_ch_name": "wx.choosePoi",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.choosePoi.html",

                "status": 1

            },

            {

                "api_desc": "开启小程序进入前后台时均接收位置消息",

                "group_name": "地理位置",

                "api_name": "wx.startLocationUpdateBackground",

                "api_ch_name": "wx.startLocationUpdateBackground",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdateBackground.html",

                "status": 1

            },

            {

                "api_desc": "打开地图选择位置",

                "group_name": "地理位置",

                "api_name": "wx.chooseLocation",

                "api_ch_name": "wx.chooseLocation",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html",

                "status": 1

            },

            {

                "api_desc": "获取用户收货地址",

                "group_name": "地理位置",

                "api_name": "wx.chooseAddress",

                "api_ch_name": "wx.chooseAddress",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html",

                "status": 1

            },

            {

                "api_desc": "开启小程序进入前台时接收位置消息",

                "group_name": "地理位置",

                "api_name": "wx.startLocationUpdate",

                "api_ch_name": "wx.startLocationUpdate",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdate.html",

                "status": 1

            },

            {

                "api_desc": "监听实时地理位置变化事件",

                "group_name": "地理位置",

                "api_name": "wx.onLocationChange",

                "api_ch_name": "wx.onLocationChange",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html",

                "status": 1

            }

        ]

    }


返回的已开通

{

        "errcode": 0,

        "errmsg": "ok",

        "interface_list": [

            {

                "audit_id": 435549576,

                "api_desc": "打开地图选择位置",

                "group_name": "地理位置",

                "api_name": "wx.chooseLocation",

                "api_ch_name": "wx.chooseLocation",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html",

                "apply_time": 1731391825,

                "fail_reason": "",

                "status": 5

            },

            {

                "api_desc": "开启小程序进入前后台时均接收位置消息",

                "group_name": "地理位置",

                "api_name": "wx.startLocationUpdateBackground",

                "api_ch_name": "wx.startLocationUpdateBackground",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdateBackground.html",

                "status": 1

            },

            {

                "audit_id": 435549575,

                "api_desc": "获取用户收货地址",

                "group_name": "地理位置",

                "api_name": "wx.chooseAddress",

                "api_ch_name": "wx.chooseAddress",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html",

                "apply_time": 1731391825,

                "fail_reason": "",

                "status": 5

            },

            {

                "api_desc": "开启小程序进入前台时接收位置消息",

                "group_name": "地理位置",

                "api_name": "wx.startLocationUpdate",

                "api_ch_name": "wx.startLocationUpdate",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdate.html",

                "status": 1

            },

            {

                "api_desc": "监听实时地理位置变化事件",

                "group_name": "地理位置",

                "api_name": "wx.onLocationChange",

                "api_ch_name": "wx.onLocationChange",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html",

                "status": 1

            },

            {

                "api_desc": "打开 POI 列表选择位置",

                "group_name": "地理位置",

                "api_name": "wx.choosePoi",

                "api_ch_name": "wx.choosePoi",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.choosePoi.html",

                "status": 1

            },

            {

                "api_desc": "获取当前的模糊地理位置",

                "group_name": "地理位置",

                "api_name": "wx.getFuzzyLocation",

                "api_ch_name": "wx.getFuzzyLocation",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getFuzzyLocation.html",

                "status": 1

            },

            {

                "audit_id": 435250033,

                "api_desc": "获取当前的地理位置、速度",

                "group_name": "地理位置",

                "api_name": "wx.getLocation",

                "api_ch_name": "wx.getLocation",

                "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html ",

                "apply_time": 1652754931,

                "fail_reason": "",

                "status": 5

            }

        ]

    }

回答关注问题邀请回答
收藏

1 个回答

  • 小程序运营专员-yuan
    小程序运营专员-yuan
    01-30

    你好,这是已知问题,正在修复中,请耐心等待

    01-30
    有用
    回复
登录 后发表内容