收藏
回答

企业微信开启消息,签名验证错误

在启用消息接受服务后,微信端在推送消息到企业后台后,报签名验证错误。
检查了配置的token, aeskey, corpid都是正确的,但是依然有此类错误。
奇怪的是,验证URL有效性,save多次失败后,才会验证通过一次。
被动回复消息,也是报签名验证错误
使用的是http://open.work.weixin.qq.com/wwopen/downloadfile/java.zip
最后一次编辑于  2020-05-07
回答关注问题邀请回答
收藏

3 个回答

  • 企业微信运营专员-千夜
    企业微信运营专员-千夜
    2020-05-07

    您好,可以参考下文档demo加解密https://work.weixin.qq.com/api/doc/90000/90139/90968,或者可以提供下corpid 和应用id看下

    2020-05-07
    有用
    回复 12
    查看更多(7)
  • ShSf~wbf
    ShSf~wbf
    2020-05-07

    - [2020-05-07T07:38:56.874340640Z] "POST /api/wechat/v1/isConnected?msg_signature=322e776311fe7407984b2bed32107e2e1332bc6f&timestamp=1588837136&nonce=1589558058 HTTP/1.1" 200 691 0 "-" "Mozilla/4.0" "-" "*.*.*.*:*****" x_forwarded_for:"-" x_forwarded_proto:"https" vcap_request_id:"93883e52-d4f4-468f-58eb-e549fea34081" response_time:0.008659 gorouter_time:0.000105 app_id:"60800aaf-b612-497b-b642-f4b15545e6c0" app_index:"0" x_correlationid:"-" tenantid:"-" x_scp_request_id:"f47bb985-f06b-465d-804a-56ec5a616c52-5EB3BB0B-1C3BDC" x_cf_app_instance:"-" x_b3_traceid:"7bdd8a440bd3a1dd" x_b3_spanid:"7bdd8a440bd3a1dd" x_b3_parentspanid:"-" b3:"7bdd8a440bd3a1dd-7bdd8a440bd3a1dd"


    2020-05-07T07:38:56.883+0000 [APP/PROC/WEB/0] OUT 2020-05-07 07:38:56.883 DEBUG 12 --- [o-8080-exec-114] o.s.web.servlet.DispatcherServlet        : Completed 200 OK

    2020-05-07T07:39:02.058+0000 [APP/PROC/WEB/0] OUT 2020-05-07 07:39:02.057 DEBUG 12 --- [io-8080-exec-96] o.s.web.servlet.DispatcherServlet        : POST "/api/wechat/v1/isConnected?msg_signature=50842d7d570834d8cae899575f80295f42e7c007&timestamp=1588837142&nonce=1588839384", parameters={masked}

    2020-05-07T07:39:02.058+0000 [APP/PROC/WEB/0] OUT 2020-05-07 07:39:02.058 DEBUG 12 --- [io-8080-exec-96] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.sap.smis.flexmessage.controller.ReceiveWechatWorkMsgController#reply(String, String, String, String)

    2020-05-07T07:39:02.059+0000 [APP/PROC/WEB/0] OUT 2020-05-07 07:39:02.058 DEBUG 12 --- [io-8080-exec-96] m.m.a.RequestResponseBodyMethodProcessor : Read "text/xml;charset=UTF-8" to ["<xml><ToUserName><![CDATA[wwa464962364db3b6c]]></ToUserName><Encrypt><![CDATA[/bcAidPwVBJ4rlf4T2jc9 (truncated)...]

    2020-05-07T07:39:02.060+0000 [APP/PROC/WEB/0] ERR com.qq.weixin.mp.aes.AesException: ??????

    2020-05-07T07:39:02.060+0000 [APP/PROC/WEB/0] ERR at com.qq.weixin.mp.aes.WXBizMsgCrypt.DecryptMsg(WXBizMsgCrypt.java:259)

    2020-05-07
    有用 1
    回复
  • 钱庆照-巨公摇号
    钱庆照-巨公摇号
    2021-02-05

    springMvc 环境也遇到这个问题 有时校验通过 有时校验失败

    2021-02-05
    有用
    回复
登录 后发表内容
问题标签