修正一个交易通知有误的订单

feature/trippest
lyt 7 years ago
parent f1667a48c3
commit c8c4e0ffa3

@ -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;
}

@ -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

Loading…
Cancel
Save