diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index 29505740..11737233 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -263,18 +263,18 @@ class IPayLinksService extends CI_Controller $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["mode"] = 1; $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); - foreach ($resp_obj->details->detail as $key => $query_order) { - $order = new stdClass(); - $order->check = true; - $order->data = $query_order; - $this->ipaylinks_notice($order); - } - // $this->output->set_content_type('application/json')->set_output(json_encode(simplexml_load_string($resp))); + // foreach ($resp_obj->details->detail as $key => $query_order) { + // $order = new stdClass(); + // $order->check = true; + // $order->data = $query_order; + // $this->ipaylinks_notice($order); + // } + $this->output->set_content_type('application/json')->set_output(json_encode(simplexml_load_string($resp))); return; } @@ -341,7 +341,7 @@ class IPayLinksService extends CI_Controller foreach ($data['unsend_list'] as $item) { //已经发送的不处理,防止重复发送 - if ($item->IPL_sent == 'send') { + if ($item->IPL_sent == 'send' && empty($pn_txn_id)) { continue; } diff --git a/webht/third_party/pay/models/IPayLinks_model.php b/webht/third_party/pay/models/IPayLinks_model.php index 49c3be6d..56096204 100644 --- a/webht/third_party/pay/models/IPayLinks_model.php +++ b/webht/third_party/pay/models/IPayLinks_model.php @@ -164,7 +164,7 @@ class IPayLinks_model extends CI_Model { IF NOT EXISTS( SELECT TOP 1 1 FROM BIZ_GroupAccountInfo - WHERE GAI_AccreditNo = ? OR GAI_Memo LIKE '%$GAI_AccreditNo%' + WHERE (GAI_AccreditNo = ? OR GAI_Memo LIKE '%$GAI_AccreditNo%') and DeleteFlag=0 ) INSERT INTO BIZ_GroupAccountInfo ( GAI_COLI_SN