收藏
回答

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

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

回答关注问题邀请回答
收藏

3 个回答

  • 微喵网络
    微喵网络
    2021-12-01

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

    2021-12-01
    有用 1
    回复 4
    • 居易
      居易
      2021-12-01
      有没有能够强制发送订阅消息的
      2021-12-01
      回复
    • 微喵网络
      微喵网络
      2021-12-01回复居易
      那还叫“订阅”吗?
      2021-12-01
      回复
    • 居易
      居易
      2021-12-01
      底下有个报错知道是什么原因吗
      2021-12-01
      回复
    • 微喵网络
      微喵网络
      2021-12-01回复居易
      似乎是json格式不对
      2021-12-01
      回复
  • 居易
    居易
    2021-12-01

    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)


    2021-12-01
    有用
    回复
  • 青寒
    青寒
    2021-12-01

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

    2021-12-01
    有用
    回复
登录 后发表内容