怎样获取openid
//接收用户端发送过来的XML数据 $postStr = $GLOBALS["HTTP_RAW_POST_DATA"]; //通过simplexml进行xml解析 $this->postObj = $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA); //手机端 发送方帐号(一个OpenID) $this->fromUsername = $postObj->FromUserName;