小程序订阅消息是不是没同意订阅发不了消息?

灏忕▼搴� 文章 2021-12-01 11:40 25 0 全屏看文

小程序订阅消息是不是没同意订阅发不了消息?Does the applet subscribe to the message without agreeing to subscribe and cannot send the message?

小程序订阅消息是不是没同意订阅发不了消息?

小程序订阅消息是不是没同意订阅发不了消息,那我要给有已知的wxopenid用户发送消息怎么发?发审核消息?

Is the applet unable to send messages without agreeing to subscribe? How can I send messages to known wxopenid users? Send audit message?

鍥炵瓟锛�

微喵网络:

订阅的意思就是接收者主动订阅才能收到消息

DB:有没有能够强制发送订阅消息的
微喵网络:那还叫“订阅”吗?
DB:底下有个报错知道是什么原因吗
DB:

com.alibaba.fastjson.JSONException: unclosed jsonArray

at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1249)

at com.alibaba.fastjson.parser.DefaultJSONParser.parseArray(DefaultJSONParser.java:1152)

at com.alibaba.fastjson.JSON.parseArray(JSON.java:596)

at com.alibaba.fastjson.JSON.parseArray(JSON.java:576)

at com.laoyao.service.client.MsgService.sendCollectorAuditMsg(MsgService.java:147)

at com.laoyao.controller.pl.PlCollectorController.lambda$0(PlCollectorController.java:89)

at com.jfinal.plugin.activerecord.DbPro.tx(DbPro.java:796)

at com.jfinal.plugin.activerecord.DbPro.tx(DbPro.java:829)

at com.jfinal.plugin.activerecord.Db.tx(Db.java:542)

at com.laoyao.controller.pl.PlCollectorController.setState(PlCollectorController.java:74)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at com.jfinal.aop.Invocation.invoke(Invocation.java:97)

at com.laoyao.interceptor.PlInterceptor.intercept(PlInterceptor.java:50)

at com.jfinal.aop.Invocation.invoke(Invocation.java:91)

at com.laoyao.interceptor.FileInt.intercept(FileInt.java:62)

at com.jfinal.aop.Invocation.invoke(Invocation.java:91)

at com.jfinal.ext.interceptor.SessionInViewInterceptor.intercept(SessionInViewInterceptor.java:44)

at com.jfinal.aop.Invocation.invoke(Invocation.java:91)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:88)

at com.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:48)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:90)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.base/java.lang.Thread.run(Thread.java:834)


青寒:

目前只有公众号那边可以主动给用户发模板消息(模板消息官方已经打算废弃,但目前仍是延期使用中)。

-EOF-