21,893
社区成员
发帖
与我相关
我的任务
分享
<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