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