|
@@ -278,6 +278,7 @@ class Wxpay_client_pub extends Common_util_pub
|
|
$this->parameters["mch_id"] = Config::get('WECHAT_MCHID');//商户号
|
|
$this->parameters["mch_id"] = Config::get('WECHAT_MCHID');//商户号
|
|
$this->parameters["nonce_str"] = $this->createNoncestr();//随机字符串
|
|
$this->parameters["nonce_str"] = $this->createNoncestr();//随机字符串
|
|
$this->parameters["sign"] = $this->getSign($this->parameters);//签名
|
|
$this->parameters["sign"] = $this->getSign($this->parameters);//签名
|
|
|
|
+ print_r($this->parameters);exit;
|
|
return $this->arrayToXml($this->parameters);
|
|
return $this->arrayToXml($this->parameters);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -287,7 +288,6 @@ 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;
|
|
}
|
|
}
|