微信消息调试:
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;
时间: 2024-10-04 09:02:33