- 小程序被封禁,没有申述入口?
appid:wx0fdadc41c74f3ce1,微信小程序被封禁,没有申述入口,麻烦官方给个申述入口,谢谢。
2022-01-22 - 商家券支持支付核销吗
PAYMENT_CODE:微信支付付款码核销,点击券“立即使用”跳转至微信支付钱包付款码。 创建商家券类型为微信支付付款码核销,但是在支付的时候优惠金额不能自动扣出。
2020-06-23 - 小程序发商家券报签名错误
[图片] 签名校验是通过的但是到了小程序里就报签名错误 这是小程序的代码: <send-coupon bindcustomevent="getcoupon" send_coupon_params="{{send_coupon_params}}" sign="{{sign}}" send_coupon_merchant="{{send_coupon_merchant}}" > <!-- 内部为自定义代码,按钮点击部分的代码写在这里 --> <!-- [[以下为示例代码 --> <view class="text">领取</view> <!-- 以上为示例代码 ]] --> </send-coupon> data: { send_coupon_params:[ { "stock_id": "128xxxxxxxxxx000001", "out_request_no": "100002322xxxxxxxxxx34sfdf", } ], sign:"068056F1220DCF51CBxxxxxxxxxxxx09A34782D84DF701", send_coupon_merchant:"32xxxxxxx41" }, 值也能传过去,而且秘钥是我刚重置的还是不行
2020-06-20 - 商家券创建成功后如何领取呢
商家券创建成功后如何领取呢
2020-06-18 - HttpUrl httpurl运行时报错
String url1 = "https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/1212"; HttpUrl httpUrl = HttpUrl.parse(url1); System.out.println(httpUrl); WechatSign wechatSign=new WechatSign(); wechatSign.getToken("GET",httpUrl,""); [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics] with root cause java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_191] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_191] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_191] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191] at okhttp3.HttpUrl$Companion.parse(HttpUrl.kt) ~[okhttp-4.2.2.jar:na] at okhttp3.HttpUrl.parse(HttpUrl.kt) ~[okhttp-4.2.2.jar:na] at com.lin.missyou.api.v1.BannerController.test(BannerController.java:65) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.2.RELEASE.jar:5.2.2.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
2020-06-11 - 示例里HttpUrl httpurl = HttpUrl.parse(url);
url未定义?还是说url是由其他地方传过来的
2020-06-10 - 秘钥路径
* @param filename 私钥文件路径 (required) 私钥文件路径是绝对路径吗?比如:https://xxxxx.xxxxxx.xxxx.com/cert/apiclient_key.pem 我用上述的路径报错: java.nio.file.InvalidPathException: Illegal char <:> at index 5:https://xxxxx.xxxxxx.xxxx.com/cert/apiclient_key.pem at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) ~[na:1.8.0_191] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[na:1.8.0_191] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[na:1.8.0_191]
2020-06-10 - URL参与签名
[图片][图片] /v3/marketing/busifavor/stocks/?1212\n /v3/marketing/busifavor/stocks/?stock_id=1212\n 我试了这两种都不对,报Authorization:不合法
2020-06-10 - 调用查询微信商家券报错(PS这两个错误都是签名问题吗?)。第一个方法是能调通的,报错为了对比两个错误
[图片] { public static void getParams() { /** 获取连接客户端工具 **/ CloseableHttpClient httpClient = HttpClients.createDefault(); String entityStr = null; CloseableHttpResponse response = null; try { /** 由于GET请求的参数都是拼装在URL地址后方,所以我们要构建一个URL,带参数 **/ URIBuilder uriBuilder = new URIBuilder("https://api.mch.weixin.qq.com/v3/certificates"); /** 根据带参数的URI对象构建GET请求对象 **/ HttpGet httpGet = new HttpGet(uriBuilder.build()); /** 添加请求头信息 **/ httpGet.addHeader("Accept", "application/json"); httpGet.addHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36"); httpGet.addHeader("Authorization", "WECHATPAY2-SHA256-RSA2048 mchid=\"xxxxxx\",nonce_str=\"593BEC0C930BF1AFEB40B4A08C8FB242\",signature=\"cBXrETRvSxZe8K4NRZU4Cdf+qObGQbqk3X14GS1N9zLOkufohRAygWjdyBbHRXV4JFWpEcI58/77Kb38PP0bfem2EO7q4V4PsTz4AmTFLoFaIkYodmetBdTu179ELRya3uWY5XZ3n/w/+M1T4/H/XBl1zUQoAtPIfLQ==\",timestamp=\"1591701914\",serial_no=\"xxxxxxxxxx\""); /** 传输的类型 **/ httpGet.addHeader("Content-Type", "application/json"); /** 执行请求 **/ response = httpClient.execute(httpGet); /** 获得响应的实体对象 **/ HttpEntity entity = response.getEntity(); /** 打印响应内容 **/ System.out.println(entityStr); } public static void key(){ /** 获取连接客户端工具 **/ CloseableHttpClient httpClient = HttpClients.createDefault(); String entityStr = null; CloseableHttpResponse response = null; try { /** 由于GET请求的参数都是拼装在URL地址后方,所以我们要构建一个URL,带参数 **/ URIBuilder uriBuilder = new URIBuilder("https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/1212"); /** 根据带参数的URI对象构建GET请求对象 **/ HttpGet httpGet = new HttpGet(uriBuilder.build()); /** 添加请求头信息 **/ httpGet.addHeader("Accept", "application/json"); httpGet.addHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36"); httpGet.addHeader("Authorization", "WECHATPAY2-SHA256-RSA2048 mchid=\"xxxxxx\",nonce_str=\"MYAh4Z29RnYKLyS4peCd9TCGTTdtJ4N4IDMDvHaXg01gJqoAkbv0hUl6DkLhF6kS0FfKLnjrgULcpqIFgcQMQWxqukB8NmV7a+36KD0s0oY0iDHcn+vZcqqZ9uWe4lsJWxFGLxG8BEFNm9e23hTHmHKlncBtNqlChpncYJj6EAgZsSaoJFVF+Gnblw86KtEHPK3WBGtfGqYwzKRS7NmF/NUNmOCAi2X0FDUvneg==\",timestamp=\"1591701914\",serial_no=\"xxxxxxx\""); /** 传输的类型 **/ httpGet.addHeader("Content-Type", "application/json"); /** 执行请求 **/ response = httpClient.execute(httpGet); /** 获得响应的实体对象 **/ HttpEntity entity = response.getEntity(); /** 打印响应内容 **/ System.out.println(entityStr); } } echo -n -e \ "GET\n/v3/marketing/busifavor/stocks/?stock_id=1212\n1591701914\n593BEC030BF1AFEB40B4A08C8FB242\n\n" \ | openssl dgst -sha256 -sign apiclient_key.pem \ | openssl base64 -A echo -n -e \ "GET\n/v3/marketing/busifavor/stocks/?1212\n1591701914\n593BEC0C930BFFEB40B4A08C8FB242\n\n" \ | openssl dgst -sha256 -sign apiclient_key.pem \ | openssl base64 -A 用这两个签名均不可以
2020-06-09 - videoAd.onClose()调用问题?
videoAd.onClose(),假如在一个页面中有多个不同的按钮,每个按钮跳转不同的页面。点击按钮后需要观看完整的激励视频广告才允许进入。如果我在js页面调用多次onClose(),会产生用户观看完视频后会跳转多个页面的问题,没看完关闭的话会弹出多层弹框。请问下这种问题要如何解决,谢谢。
2020-04-26