We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WxMaJsapiServiceImpl 里面的getCardApiTicket方法返回值有bug
下面的代码最后return那一行,一顿操作更新了cardApiTicket,最后返回了jsApiTicket
另外,我发现小程序文档里好像没有cardApiTicket和jsApiTicket的概念,代码中用的获取链接也是公众号的获取链接,建议还是删掉这两个东西…………
@Override public String getCardApiTicket(boolean forceRefresh) throws WxErrorException { Lock lock = this.wxMaService.getWxMaConfig().getCardApiTicketLock(); try { lock.lock(); if (forceRefresh) { this.wxMaService.getWxMaConfig().expireCardApiTicket(); } if (this.wxMaService.getWxMaConfig().isCardApiTicketExpired()) { String responseContent = this.wxMaService.get(GET_JSAPI_TICKET_URL + "?type=wx_card", null); JsonElement tmpJsonElement = JSON_PARSER.parse(responseContent); JsonObject tmpJsonObject = tmpJsonElement.getAsJsonObject(); String jsapiTicket = tmpJsonObject.get("ticket").getAsString(); int expiresInSeconds = tmpJsonObject.get("expires_in").getAsInt(); this.wxMaService.getWxMaConfig().updateCardApiTicket(jsapiTicket, expiresInSeconds); } } finally { lock.unlock(); } return this.wxMaService.getWxMaConfig().getJsapiTicket(); }
没有
The text was updated successfully, but these errors were encountered:
#672 jssdk是有的
#776 card的也是特意加上的
代码确实有问题,先修复了
Sorry, something went wrong.
🐛 #1415 修复小程序getCardApiTicket方法中的错误代码
1dba5db
最新正式版3.7.0已修复错误代码
No branches or pull requests
简要描述
WxMaJsapiServiceImpl 里面的getCardApiTicket方法返回值有bug
模块版本情况
详细描述
下面的代码最后return那一行,一顿操作更新了cardApiTicket,最后返回了jsApiTicket
另外,我发现小程序文档里好像没有cardApiTicket和jsApiTicket的概念,代码中用的获取链接也是公众号的获取链接,建议还是删掉这两个东西…………
日志
没有
The text was updated successfully, but these errors were encountered: