|
|
|
@ -531,6 +531,26 @@ class AlipayTradeService extends CI_Controller
|
|
|
|
|
return $response;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* 查询退款
|
|
|
|
|
* @date 2019-04-24
|
|
|
|
|
* @param [type] $dealId 必须, 退款交易号.out_biz_no
|
|
|
|
|
* @param [type] $trade_no 必须, 原收款交易号
|
|
|
|
|
*/
|
|
|
|
|
public function query_refund($dealId=NULL,$trade_no=NULL)
|
|
|
|
|
{
|
|
|
|
|
$this->AlipayTradeQueryContentBuilder->setTradeNo($trade_no);
|
|
|
|
|
$this->AlipayTradeQueryContentBuilder->setOutRequestNo($dealId);
|
|
|
|
|
|
|
|
|
|
$biz_content=$this->AlipayTradeQueryContentBuilder->getBizContent();
|
|
|
|
|
$request = new AlipayTradeFastpayRefundQueryRequest();
|
|
|
|
|
$request->setBizContent ( $biz_content );
|
|
|
|
|
|
|
|
|
|
$response = $this->aopclientRequestExecute ($request);
|
|
|
|
|
// $response = $response->alipay_trade_fastpay_refund_query_response;
|
|
|
|
|
return $this->output->set_content_type('application/json')->set_output(json_encode($response));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
* 对账单
|
|
|
|
|
* 流程:
|
|
|
|
@ -546,8 +566,8 @@ class AlipayTradeService extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
$request = new AlipayDataDataserviceBillDownloadurlQueryRequest();
|
|
|
|
|
$request->setBizContent("{" .
|
|
|
|
|
"\"bill_type\":\"trade\"," .
|
|
|
|
|
"\"bill_date\":\"2017-09\"" .
|
|
|
|
|
"\"bill_type\":\"signcustomer\"," .
|
|
|
|
|
"\"bill_date\":\"2019-04-03\"" .
|
|
|
|
|
"}");
|
|
|
|
|
$response = $this->aopclientRequestExecute ($request);
|
|
|
|
|
// var_dump($response);
|
|
|
|
|