1、从http升级了https 之后出现的问题;
原因:原来的方法,得到的url还是http的,导致微信签名错误:63002,改成下面的代码,签名一致,就可以了
protected String currentUrl() { HttpServletRequest request = ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest(); String path = request.getRequestURL() + ""; if (request.getQueryString() != null) { path = path + "?" + request.getQueryString(); } String environmentType = Global.getConfig("environment_type"); if ("prod".equals(environmentType)) { path = path.replace("http://", "https://"); } return path.replace(":80", ""); }