收藏
回答

component_verify_ticket为什么没有收到推送?

授权事件接收URL:https://tuangou.px20.cn/wx_post_ticket.php

appid:wx06f4a4e6d89eea33

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

1 个回答

  • 多端应用小助手
    多端应用小助手
    2020-10-17

    你好,经查询,post请求授权事件接收URL返回的不是success字符串,请调整后重试,如有问题再反馈哈。详情可查看https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/component_verify_ticket.html

    2020-10-17
    有用
    回复 5
    • 杨
      2020-10-19
      所以我应该调整哪块呀
      2020-10-19
      回复
    • 杨
      2020-10-19
      没看出来问题出在哪块
      2020-10-19
      回复
    • 多端应用小助手
      多端应用小助手
      2020-10-20回复
      请确保post请求你的授权事件接收URL返回的是success字符串哈
      2020-10-20
      回复
    • 杨
      2020-10-20回复多端应用小助手
      返回success还是拿不到component_verify_ticket
      2020-10-20
      回复
    • 多端应用小助手
      多端应用小助手
      2020-10-20回复
      当前返回的内容如下,不是success字符串哦。
      resp_data: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>System Error</title> <meta name="robots" content="noindex,nofollow" /> <e.prettyprint .clo { color #660 } pre.prettyprint .tag { color #008 } /* a markup tag name */ pre.prettyprint .atn { color #606 } /* a markup attribute name */ pre.prettyprint .atv { color #080 } /* a markup attribute value */ pre.prettyprint .dec, pre.prettyprint .var { color #606 } /* a declaration; a variable name */ pre.prettyprint .fun { color: red } /* a function name */ </style> </head> <body> <div class="echo"> 加密后: <xml> <Encrypt><![CDATA[]]></Encrypt> <MsgSignature><![CDATA[5f62b7739455068ca21bca8d0f8b28172f6867a8]]></MsgSignature> <TimeStamp>1603190847</TimeStamp> <Nonce><![CDATA[154844525]]></Nonce> </xml> </div> <div class="exception"> <div class="message"> <div class="info"> <div> <h2>[0]&nbsp;<abbr title="think\exception\ThrowableError">ThrowableError</abbr> in <a class="toggle" title="/www/wwwroot/tuangou.px20.cn/source/apmp;gt;&lt;/Video&gt;&lt;/xml&gt;&quot;; </code></li><li class="line-25"><code> $pc = new wxBizMsgCrypt($token, $encodingAesKey, $appId); </code><uot;><code> $format = &quot;&lt;xml&gt;&lt;ToUserName&gt;&lt;![CDATA[toUser]]&gt;&lt;/ToUserName&gt;&lt;Encrypt&gt;&lt;![CDATA[%s]]&gt;&lt;/Encrypt&gt;&lt;/xml&gt;&quot;; </code></li><li class="line-40"><code> $from_xml = sprintf($format, $encrypt); </code></li><li class="line-41"><code> // 第三方收到公众号平台发送的消息 </code></li><li class="line-42"><code> $msg = ''; </code></li></ol></pre> </div> <div class="trace"> <h2>Call Stack</h2> <ol> <li>in <a class="toggle" title="/www/wwwroot/tuangou.px20.cn/source/application/store/controller/Ticket.php line 33">Ticket.php line 33</a></li> <li> at <abbr title="app\store\controller\ticket">ticket</abbr>->tiype' => 'module', 'module' => ['store', 'ticket', 'ticket']], ['app_host' => 'amp</strong></div> <div class="col-md-9"><small> 1603190847 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>nonce</strong></div> <div class="col-md-9"><small> 154844525iv> <div class="col-md-9"><small> [] </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>yoshop_js_tree</strong></div> <div class="col-md-9"><small> [] </small></div> </div> </div> </div> <div> <h3 class="subheading">Server/Request Data</h3> <div> <div class="clearfix"> <div class="col-md-3"><strong>USER</strong></div> <div class="col-md-9"><small> www </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HOME</strong></div> <div class="col-md-9"><small> /home/www </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_CONTENT_TYPE</strong></div> <div class="co</strong></div> <div class="col-md-9"><small> /store/ticket/ticket </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REDIRECT_STATUS</strong></div> <div class="col-md-9"><small> 200 </small></lt;div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/web </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>DOCUMENT_URI</strong></div> <div class="col-md-9"><small> /wx_post_ticket.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_URI</strong></div> <div class="col-md-9"><small> /wx_post_ticket.php?signature=d3b3fdf04bb1770406719ab511d737639400b4a3&amp;timestamp=1603190847&amp;nonce=154844525&amp;encrypt_type=aes&amp;msg_signature=2e4c7a6b2476e64788d56a6f22b52033f0ed0ecd </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SCRIPT_NAME</strong></div> <div class="col-md-9"><small> /wx_post_ticket.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CONTENT_LENGTH</strong></div> <div class="col-md-9"><small> 571 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CONTEN> <div class="col-md-9"><small> /wx_post_ticket.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_TIME_FLOAT</strong></div> <div class="col-md-9"><small> 1603190847.7085 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_TIME</strong></div> <div class="col-md-9"><small> 1603190847 </small></div> </div> </div> </div> <div> <div class="clearfix"> <div class="col-md-3"><strong>Environment Variables</strong></div> <div class="col-md-9"><small>empty</small></div> </div> </div> <div> <h3 class="subheading">ThinkPHP Constants</h3> <div> <div class="clearfix"> <div class="col-md-3"><strong>WEB_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/web/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>APP_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/web/../source/application/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_VERSION</strong></div> <div class="col-md-9"><small> 5.0.24 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_START_TIME</strong></div> <div class="col-md-9"><small> 1603190847.7089 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_START_MEM</strong></div> <div class="col-md-9"><small> 381376 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>EXT</strong></div> <div class="col-md-9"><small> .php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>DS</strong></div> <div class="col-md-9"><small> / </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/thinkphp/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>LIB_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/thinkphp/library/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CORE_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/thinkphp/library/think/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>TRAIT_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/thinkphp/library/traits/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>ROOT_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>EXTEND_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/extend/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>VENDOR_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/vendor/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>RUNTIME_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/runtime/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>LOG_PATH</strong></div> <div class="col-md-9"><small> /www/wwwroot/tuangou.px20.cn/source/runtime/log/ </small></div> </div> <div-9"><small> 7.2.7 </small></div> </div> </div> </div> </div> <div class="copyright"> <a title="官方网站" href="http://www.thinkphp.cn">ThinkPHP</a> <span>V5.0.24</span> <span>{ 十年磨一剑-为API开发设计的高性能框架 }</span> </div> <script> var LINE = 33; function $(selector, node){ var elements; node = node || document; if(document.querySelectorAll){ elements = node.querySelectorAll(selector); } else { switch(selector.substr(0, 1)){ case '#': elements = [node.getElementById(selector.substr(1))]; break; case '.': if(document.getElementsByClassName){ elements = node.getElementsByClassName(selector.substr(1)); } else {'script'); script.async = 'async'; script.src = src; script.onload = func || function(){}; $('head')[0].appendChild(script); } ;(function(){ var files = $('.toggle'); var ol = $('ol', $('.prettyprint')[0]); var li = $('li', ol[0]); // 短路径和长路径变换 for(var i = 0; i < files.length; i++){ files[i].ondblclick = function(){ var title = this.title; this.title = this.innerHTML; this.innerHTML = title; } } // 设置出错行 var err_line = $('.line-' + LINE, ol[0])[0]; err_line.className = err_line.className + ' line-error'; $.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js', function(){ prettyPrint(); // 解决Firefox浏览器一个很诡异的问题 // 当代码高亮后,ol的行号莫名其妙的错位 // 但是只要刷新li里面的html重新渲染就没有问题了 if(window.navigator.userAgent.indexOf('Firefox') >= 0){ ol[0].innerHTML = ol[0].innerHTML; } }); })(); </script> </body> </html>
      2020-10-20
      回复
登录 后发表内容
问题标签