getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json
人话解释:从基础库 2.24.0 起,地理位置/选点等私有接口必须在 app.json 的 requiredPrivateInfos 里显式声明才能调用。
人话解释:从基础库 2.24.0 起,地理位置/选点等私有接口必须在 app.json 的 requiredPrivateInfos 里显式声明才能调用。
// 在 app.json 根对象添加(工具类优先用 getFuzzyLocation):
{
"requiredPrivateInfos": ["getFuzzyLocation"]
}