html52.com
我爱小程序-开发者交流社区

errcode:40029是什么原因,求教一下

在网上也搜了一部分,但是都不理想,有没有碰见这类问题的。。。求教


在获取到code之后


根据code,appid,sercet,获取信息。出的这个错

网友回复

祝通:

//java代码

String url = url = "https://api.weixin.qq.com/sns/jscode2session?appid=" + appId +
       "&secret=" + appSecret + "&js_code=" + code + "&grant_type=authorization_code";


//进行网络请求,访问url接口
ResponseEntity<String> responseEntity = restTemplate.exchange(url, HttpMethod.GET, null, String.class);


//结果

<200,{"errcode":40029,"errmsg":"invalid code, hints: [ req_id: ******* ]"},{Connection=[keep-alive], Content-Type=[text/plain], Date=[Mon, 23 Jul 2018 09:34:34 GMT], Content-Length=[76]}>

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付