???? ????? ???? ? ?? ??? ???? ?? ???? ?? "? ?? ???? ???? ???? ???????. ??? ?? ??? ???"?? ???? ???.
?? ?? ??? ?? ? ?? ??? ??? ??? ??? ?????
http://119.45.5.37/wechat/wechat.php
?? ??:
200 OK
??: Keep-Alive
??: ?, 2020? 6? 1? 12:51:08 GMT
X- Powered-By: PHP/5.6.40
Server: Apache/2.4.37 (Win64) PHP/5.6.40
Content-Type: text/html; =UTF-8
??? ??: 353
<xml> <ToUserName> <![CDATA[bbbbbbbb]]> </??? ??> <??? ????> <![CDATA[aaaaaaa]]> </FromUserName> <CreateTime>1591015869</CreateTime> <MsgType> <![CDATA[???]]> </MsgType> <???> <![CDATA[?? ? ?]]> </???> <FuncFlag>0</FuncFlag> </xml> $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);$fromUsername = $postObj->FromUserName;$toUsername = $postObj->ToUserName;$keyword = Trim($postObj-> Content);$msgType = $postObj -> MsgType;$time = time();$textTpl = "<xml> <ToUserName><![CDATA[%s]]></ToUserName> [CDATA[%s]]></FromUserName> <CreateTime>%s</CreateTime> <![CDATA[%s]]></Content> <FuncFlag>0</FuncFlag> ";$msgType = "text";$contentStr = "Hello";$resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);echo $resultStr;