springboot+mysql本地服务器,电脑和测试平板在同一个WiFi,postman测试接口正常,开发者工具调试没有问题,真机显示find openid err {errno: 600001, errMsg: "request:fail -109:net::ERR_ADDRESS_UNREACHABLE"}
wx.request({
url: 'http://10.20.66.190:8000/position/findTheIfExitOpenID/'+res.data.openid,
success:function(res){
console.log('userid',res.data)
if(res.data){
wx.request({
url: 'http://10.20.66.190:8000/position/findTheUserID/'+that.globalData.openid,
success:function(res){
console.log('finduserid',res.data)
that.globalData.userid=res.data
},
fail:function(err){
console.log('find userid err',err)
}
})
}else{
wx.request({
url: 'http://10.20.66.190:8000/position/findTheNumOfTheUser/',
success:function(res){
that.globalData.userid=res.data+1;
console.log(that.globalData.userid);
},
fail:function(err){
console.log('count userid err',err)
}
})
}
},
fail:function(err){
console.log('find openid err',err)
}
})
这个报错一般就是网络原因导致无法解析出请求地址