private function replyMostPhoto($data,$arr)
{
$this->logger("已经到达回复多图文!".$arr[0]['Title']);
$itemModel="
<item>
<Title><![CDATA[%s]]></Title>
<Description><![CDATA[%s]]></Description>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>";
$Model_item="";//用来接收模板
foreach($arr as $item)
{
$Model_item.=sprintf($itemModel,$item['Title'],$item['Description'],$item['PicUrl'],$item['Url']);
}
$this->logger("here".$arr['Title']);
$xml=<<<php
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[news]]></MsgType>
<ArticleCount>%s</ArticleCount>
<Articles>
$Model_item
</Articles>
</xml>
php;
$this->logger($xml);
echo sprintf($xml,$data['FromUserName'],$data['ToUserName'],$data['time()'],count($arr));
}