string url2 = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=" + str1; var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Post, url2); var content = new StringContent("{\"code\":\"" + code + "\"}", null, "application/json"); request.Content = content; var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); str2 = await response.Content.ReadAsStringAsync(); //注: 已经获取到access_token值了,使用postman访问https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=" + str1 (加json格式参数code)能获取到手机号数据。但是使用api代码时报错:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, could get access_token by getStableAccessToken, more details at https://mmbizurl.cn/s/JtxxFh33r ......
获取微信手机号码报errcode:40001错误是什么原因?获取微信手机号码报errcode:40001错误, 使用postman分步测试却正常?
2023-09-05[图片]
小程序开发工具中提示"对应的服务器证书无效",要如何解决?请问一下ss: "peihu.jiachengpm.com"这个域名对应的站点https://peihu.jiachengpm.com/api/JchPeihu/LuTest2已经可以打开访问了,为什么小程序开发工具中还提示"对应的服务器证书无效"? 这个问题要如何解决?
2023-08-31