公众号获取openid的流程也是 先获取code 然后通过code 去换取openid ,检查代码吧
https://api.weixin.qq.com/sns/oauth2握手失败报错信息如下:标红是程序里的代码,功能是获取用户的openid,请问出现这个原因和解决办法是什么? javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:965) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at com.keji09.develop.weixin.util.WeixinUtil.httpRequest(WeixinUtil.java:119) at com.haier.controller.weixin.WeixinController.getOpen_id(WeixinController.java:138) at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at nl.nlighten.prometheus.tomcat.TomcatServletMetricsFilter.doFilter(TomcatServletMetricsFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.haier.filter.CrossFilter.doFilter(CrossFilter.java:40) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:958) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.EOFException: SSL peer shut down incorrectly at sun.security.ssl.InputRecord.read(InputRecord.java:482) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946) ... 73 more
2018-09-02跟目录 就是输入你这个域名就能访问的目录。下载文件[图片]就在这里啊
在哪里找根目录和上传校验文件- 当前 Bug 的表现(可附上截图)在哪里找根目录和上传校验文件[图片] - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2018-09-02那你就别把用户信息存入数据库了,放在缓存里,直接从缓存用,用户退出的时候,清除缓存就行了
有没有清除用户授权信息的API接口啊?今天,上司提了个奇葩的要求,就是添加一个退出登录的方法,清除用户授权信息。请教各路大神,怎么清除用户授权信息,有没有这样的API接口啊?
2018-09-02可能是域名问题吧?域名配置https了吗?
小程序发布体验版为什么小程序发布体验版之后只有打开[图片] 调试才能用,关闭调试就不能用了呢?
2018-08-31进入小程序弹窗授权,线上可以用,但是开发工具废弃了而已。
进入小程序就出现授权弹窗小程序“腾讯NOW直播” 和 “黑咔相机"一打开就弹授权的,这种是怎么实现的?
2018-08-31有页面 没有wx.hideLoading api,只写了wx.showLoading吧??
【求助】小程序经常收到【告警】小程序经常收到【告警】,去后台查询结果如下: [图片] 微信收到的信息如下: [图片] 以上为【告警】内容之一 请问怎么定位小程序代码中的错误位置和告警原因呢? 若是无视告警会有何后果?
2018-08-31多截图。还有就是你的update 函数在哪里呢?
小程序获取用户信息成功,报错:updata in not a function- 当前 Bug 的表现(可附上截图) [图片] [图片] - 预期表现 小程序获取用户信息成功,下面的that.updata报错:updata in not a function - 复现路径 - 提供一个最简复现 Demo
2018-08-31公众号还是小程序模板消息?
微信公众号模板消息推送出现40013错误。如题,appid应该是没问题的,小程序已经上过一版了, 。。。。。。。
2018-08-31用公司资质 注册个开放平台,将小程序和公众号都绑定这个公众开放平台
UnionID 问题只是一个微信公众账号,这个账户不能登录微信开放平台。 现在需要开发一个小程序, 因为公众号和小程序用户积分需要共享, 怎么要瞒住哪些条件才能让两个应用 UnionID 一样?
2018-08-31web-view 支持打开的是https 而提示的是http 检查配置吧
web-view 不支持打开非业务域名 http://后台已经配置https://的业务域名,并且使用的web-view组件的连接页面无http://请求 [代码]<[代码][代码]web-view[代码] [代码]src[代码][代码]=[代码][代码]"https://dankeyuer.yunxuetang.com/m/Home"[代码][代码]></[代码][代码]web-view[代码][代码]>[代码]在进入小程序的第一次会出现不支持打开非业务域名 http:// [图片] 但是第二次/往后就可以正常访问。 这是什么原因导致的?
2018-08-31