$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
$RX_TYPE = trim($postObj->FromUserName);
$ToUserName = trim($postObj->ToUserName);
$MsgType = trim($postObj->MsgType);
$even= explode('_',$postObj->EventKey);
$event= trim($postObj->Event);
file_put_contents('./log.txt',$ToUserName ,FILE_APPEND);
该代码存在入口
网友评论