Skip to content

对接微信小程序的多媒体内容安全识别接口时,回调消息偶尔会找不到指定handler #165

Description

@jiangjf0407

最近微信小程序要求发布图片要走微信的多媒体内容安全识别接口( https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/sec-check/mediaCheckAsync.html ),这个接口通过消息推送的方式来推送识别结果,如果一个一个图片串行调用接口,能正常处理。如果出现批量图片,总会有几个图片的识别结果,能收到推送的消息,但是无法通过router找到对应处理handler。这是为什么?
会堵塞在以下代码,但无法进入实现了WxMpMessageHandler的自定义handler
WxMpXmlOutMessage outMessage = wxMpMessageRouter.route(inMessage);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions