diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index ab3cb2b2..abcc994c 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1256,9 +1256,11 @@ class Index extends CI_Controller { if ( ! empty($notes) ) { // && strpos($notes[0]->pn_custom, 'GPA_') === false $memo0 = json_decode($notes[0]->pn_memo); if ( ! (isset($memo0->id) && substr($memo0->id, 0, 2)==="WH")) { - $IPN_note = $notes[0]; // 存在IPN, 本条忽略 - $this->Note_model->update_send($item->pn_txn_id, 'send-', $item->pn_sn); - return false; + $IPN_note = $notes[0]; // 存在IPN, 本条WH忽略 + if ((isset($payment_memo->id) && substr($payment_memo->id, 0, 2)==="WH")) { + $this->Note_model->update_send($item->pn_txn_id, 'send-', $item->pn_sn); + return false; + } } } // 找到原始收款交易的订单