From feee5b0855c5fd270b777e14d36934ee42ad735b Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 15 Sep 2017 15:26:00 +0800 Subject: [PATCH] =?UTF-8?q?ipaylinks=20=E8=AE=A2=E5=8D=95=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E6=94=AF=E4=BB=98=E6=97=B6=E6=9F=A5=E8=AF=A2bug,?= =?UTF-8?q?=E6=94=B9=E4=BD=BF=E7=94=A8resultCode=E4=BD=9C=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pay/controllers/iPayLinksService.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index bf8eb5ec..5d76b04e 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -257,6 +257,18 @@ class IPayLinksService extends CI_Controller return; } + public function query_pay($orderid) + { + $this->query_info_arr["queryOrderId"] = $this->create_guid(); + $this->query_info_arr["orderId"] = $orderid; + $this->query_info_arr["mode"] = 2; + + $this->query_info_arr["signMsg"] = $this->generate_sign($this->query_info_arr); + $resp = $this->curl($this->queryUrl,$this->query_info_arr); + echo $resp; + return; + } + /*! * 订单业务处理 * * 查询写入交易记录 iPayLinks_log @@ -332,7 +344,7 @@ class IPayLinksService extends CI_Controller } //只处理完成状态,其他状态由陆燕处理 - if (strcmp(trim($item->IPL_stateCode), "2")) { + if (strcmp(trim($item->IPL_resultCode), "0000")) { $this->Note_model->update_send($item->IPL_dealId, 'sendfail'); continue; }