mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
修改账单下载
This commit is contained in:
parent
8630e29773
commit
ac63302119
@ -153,8 +153,8 @@ abstract class BasicWePay
|
|||||||
$token = sprintf('mchid="%s",nonce_str="%s",timestamp="%d",serial_no="%s",signature="%s"',
|
$token = sprintf('mchid="%s",nonce_str="%s",timestamp="%d",serial_no="%s",signature="%s"',
|
||||||
$this->config['mch_id'], $nonce, $time, $this->config['cert_serial'], $this->signBuild($signstr)
|
$this->config['mch_id'], $nonce, $time, $this->config['cert_serial'], $this->signBuild($signstr)
|
||||||
);
|
);
|
||||||
|
$location = preg_match('|^https?://|', $pathinfo) ? $pathinfo : ($this->base . $pathinfo);
|
||||||
list($header, $content) = $this->_doRequestCurl($method, $this->base . $pathinfo, [
|
list($header, $content) = $this->_doRequestCurl($method, $location, [
|
||||||
'data' => $jsondata, 'header' => [
|
'data' => $jsondata, 'header' => [
|
||||||
"Accept: application/json", "Content-Type: application/json",
|
"Accept: application/json", "Content-Type: application/json",
|
||||||
'User-Agent: https://thinkadmin.top', "Authorization: WECHATPAY2-SHA256-RSA2048 {$token}",
|
'User-Agent: https://thinkadmin.top', "Authorization: WECHATPAY2-SHA256-RSA2048 {$token}",
|
||||||
|
@ -184,7 +184,6 @@ class Order extends BasicWePay
|
|||||||
*/
|
*/
|
||||||
public function downloadBill($fileurl)
|
public function downloadBill($fileurl)
|
||||||
{
|
{
|
||||||
$path = strstr($fileurl, '/v3/');
|
return $this->doRequest('GET', $fileurl, '', false, false);
|
||||||
return $this->doRequest('GET', $path, '', false, false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user