diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 1339cd14..1677ced4 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -962,7 +962,9 @@ class Index extends CI_Controller { //添加邮件发送记录 - if ($item->pn_send !== 'send') { + $webhook_memo = json_decode($item->pn_memo); + $is_webhook = substr($webhook_memo->id, 0, 2)==="WH" ? true : false; + if ($item->pn_send !== 'send' && false===$is_webhook) { //给外联发送通知邮件 $fromName = !empty($item->pn_payer) ? $item->pn_payer : ''; $fromEmail = !empty($item->pn_payer_email) ? $item->pn_payer_email : '';