|
@@ -146,7 +146,6 @@ class Common_util_pub
|
|
*/
|
|
*/
|
|
public function xmlToArray($xml)
|
|
public function xmlToArray($xml)
|
|
{
|
|
{
|
|
- var_dump($xml);exit;
|
|
|
|
//将XML转为array
|
|
//将XML转为array
|
|
$array_data = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
|
|
$array_data = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
|
|
return $array_data;
|
|
return $array_data;
|
|
@@ -288,6 +287,7 @@ class Wxpay_client_pub extends Common_util_pub
|
|
function postXml()
|
|
function postXml()
|
|
{
|
|
{
|
|
$xml = $this->createXml();
|
|
$xml = $this->createXml();
|
|
|
|
+ var_dump($xml);;exit;
|
|
$this->response = $this->postXmlCurl($xml,$this->url,$this->curl_timeout);
|
|
$this->response = $this->postXmlCurl($xml,$this->url,$this->curl_timeout);
|
|
return $this->response;
|
|
return $this->response;
|
|
}
|
|
}
|