diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index 5d76b04e..3ddf7181 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -257,10 +257,12 @@ class IPayLinksService extends CI_Controller return; } - public function query_pay($orderid) + public function query_pay($orderid,$day_offset = 3) { $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"] = 2; $this->query_info_arr["signMsg"] = $this->generate_sign($this->query_info_arr);