微信调试模式,线上转为线下调试模式

微信消息调试:
include_once 'Base/jssdk.php';
$jssdk = new JSSDK(C('Wechat')['AppID'], C('Wechat')['AppSecret']);
$url = 'http://192.168.71.24/demo/wechat/listener'; //DM个人信息url
$header[] = "Content-type: text/xml";//定义content-type为xml
$header[] = "HTTP_USER_AGENT:mytest";
$rst = $jssdk->_curl($url, 'POST',$header,$GLOBALS['HTTP_RAW_POST_DATA']);
Log::write('-------##绑定%%%####8888 '.var_export($rst,true));
echo $rst;exit;

原文地址:https://www.cnblogs.com/andydao/p/7583189.html