21,892
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1351776360</CreateTime>
<MsgType><![CDATA[location]]></MsgType>
<Location_X>23.134521</Location_X>
<Location_Y>113.358803</Location_Y>
<Scale>20</Scale>
<Label><![CDATA[位置信息]]></Label>
</xml>
$resultStr ="<xml>
<ToUserName><![CDATA[$FromUserName]]></ToUserName>
<FromUserName><![CDATA[$ToUserName]]></FromUserName>
<CreateTime>$time</CreateTime>
<MsgType><![CDATA[text]]></MsgType>
<Content><![CDATA[$content]]></Content>
<FuncFlag>0</FuncFlag>
</xml> ";
private function dealLocation($postObj){
$wzx=$postObj->Latitude;
$wzy=$postObj->Longitude;
$contentStr ="你的经度是{$wzx},纬度是{$wzy},大浦洞已锁定";
$resultStr=$this->transform($postObj,$contentStr);
return $resultStr;
}
http://blog.csdn.net/longxuu/article/details/10063003