|
|
|
@ -257,15 +257,28 @@ class IPayLinksService extends CI_Controller
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function query_pay($day_offset = 1, $orderid=NULL)
|
|
|
|
|
public function query_pay($orderid=NULL)
|
|
|
|
|
{
|
|
|
|
|
$this->query_info_arr["queryOrderId"] = $this->create_guid();
|
|
|
|
|
$this->query_info_arr["orderId"] = $orderid;
|
|
|
|
|
// $this->query_info_arr["beginTime"] = date('YmdHis',strtotime("-$day_offset days"));
|
|
|
|
|
// $this->query_info_arr["endTime"] = date('YmdHis',strtotime("+$day_offset days"));
|
|
|
|
|
$this->query_info_arr["mode"] = 1;
|
|
|
|
|
// $this->query_info_arr["type"] = $day_offset; // 1-支付;2-退款
|
|
|
|
|
|
|
|
|
|
$this->query_info_arr["signMsg"] = $this->generate_sign($this->query_info_arr);
|
|
|
|
|
$resp = $this->curl($this->queryUrl,$this->query_info_arr);
|
|
|
|
|
$resp_obj = simplexml_load_string($resp);
|
|
|
|
|
$this->output->set_content_type('application/json')->set_output(json_encode(simplexml_load_string($resp)));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function query_pay_list($day_offset = 3)
|
|
|
|
|
{
|
|
|
|
|
$this->query_info_arr["queryOrderId"] = $this->create_guid();
|
|
|
|
|
$this->query_info_arr["beginTime"] = date('YmdHis',strtotime("-$day_offset days"));
|
|
|
|
|
$this->query_info_arr["endTime"] = date('YmdHis235959');
|
|
|
|
|
$this->query_info_arr["mode"] = 2;
|
|
|
|
|
$this->query_info_arr["type"] = 1; // 1-支付;2-退款
|
|
|
|
|
|
|
|
|
|
$this->query_info_arr["signMsg"] = $this->generate_sign($this->query_info_arr);
|
|
|
|
|
$resp = $this->curl($this->queryUrl,$this->query_info_arr);
|
|
|
|
|
$resp_obj = simplexml_load_string($resp);
|
|
|
|
|