From 99953e54775e14e0a62fcb68c41e782c7c6710ec Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 15 Sep 2017 15:47:52 +0800 Subject: [PATCH] =?UTF-8?q?ipaylinks=20=E5=A2=9E=E5=8A=A0=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=89=8B=E5=8A=A8=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/pay/controllers/iPayLinksService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);