- 生成安装授权二维码链接提示preauthcode校验失败
生成的授权的二维码链接如下: https://open.work.weixin.qq.com/3rdapp/install?suite_id=ww1d4e893359418def&pre_auth_code=lKEPdtvanMCSxaKba4RETZEVnrXIHI8WEIwlLNPw7MxwYzlNIBcUMPZMx6lWQglu&redirect_uri=https://wkbbgray.natapp4.cc/api/wx/v1/cpopen/callbackForPreAuth&state=STATE 打开链接时,二维码页面提示preauthcode校验失败。在生成这链接时,也调用了设置授权配置接口(设置auth_type为0或1均有此问题)。 请问是什么原因,谢谢 生成二维码JAVA代码如下: String redirectURI = serviceConfig.getHost() + "/api/wx/v1/cpopen/callbackForPreAuth"; String preAuthCode = wxCpOpenInitService.getWxCpTpService().getPreAuthCode(); log.info("******preAuthCode:{}*******",preAuthCode.toString()); wxCpOpenInitService.getWxCpTpService().setSessionInfo(preAuthCode); StringBuilder preAuthUrl = new StringBuilder("https://open.work.weixin.qq.com/3rdapp/install"); preAuthUrl.append("?suite_id="); preAuthUrl.append(wxCpOpenInitService.getCpTpRedisConfigStorage().getSuiteId()); preAuthUrl.append("&pre_auth_code="); preAuthUrl.append(preAuthCode); preAuthUrl.append("&redirect_uri="); preAuthUrl.append(redirectURI); preAuthUrl.append("&state="); preAuthUrl.append("STATE"); log.info("******preAuthUrl:{}*******",preAuthUrl.toString());
2020-05-16 - 企业微信小程序授权服务应用商(第三方)成功后过大概3个小时后报永久授权码失效
企业微信小程序授权服务应用商(第三方)授权成功后(添加测试企业方式)过大概3-4个小时后,再调获取通讯录等接口时会报永久授权码失效。需要取消授权再重新授权则又可以调用接口了。请问这是什么原因?谢谢 {"errcode":41025,"errmsg":"permanent code missing, hint: [1589606621_59_ab999b1ffd3b705d51927fbe9aced227], from ip: 113.110.184.119, more info at https://open.work.weixin.qq.com/devtool/query?e=41025"}
2020-05-16