|
|
@ -629,6 +629,7 @@ class Index extends CI_Controller {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$raw_post = file_get_contents('php://input');
|
|
|
|
$raw_post = file_get_contents('php://input');
|
|
|
|
if (empty($raw_post)) {
|
|
|
|
if (empty($raw_post)) {
|
|
|
|
|
|
|
|
echo 'no';
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$post_data = json_decode($raw_post);
|
|
|
|
$post_data = json_decode($raw_post);
|
|
|
@ -793,7 +794,17 @@ class Index extends CI_Controller {
|
|
|
|
$API_str = json_encode($API, JSON_UNESCAPED_SLASHES);
|
|
|
|
$API_str = json_encode($API, JSON_UNESCAPED_SLASHES);
|
|
|
|
|
|
|
|
|
|
|
|
$pn_txn_id = $item->pn_txn_id;
|
|
|
|
$pn_txn_id = $item->pn_txn_id;
|
|
|
|
$orderid_info = $this->analysis_orderid($item->pn_invoice);
|
|
|
|
$pn_invoice = $item->pn_invoice;
|
|
|
|
|
|
|
|
$orderid_info = $this->analysis_orderid($pn_invoice);
|
|
|
|
|
|
|
|
if (empty($orderid_info)) {
|
|
|
|
|
|
|
|
$notes = $this->Note_model->search_note($pn_txn_id);
|
|
|
|
|
|
|
|
if (empty($notes)) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$IPN_note = $notes[0];
|
|
|
|
|
|
|
|
$pn_invoice = $IPN_note->pn_invoice;
|
|
|
|
|
|
|
|
$orderid_info = $this->analysis_orderid($pn_invoice);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->Note_model->update_send($item->pn_txn_id, 'sendfail', $item->pn_sn);
|
|
|
|
$this->Note_model->update_send($item->pn_txn_id, 'sendfail', $item->pn_sn);
|
|
|
|
|
|
|
|
|
|
|
|