perf: 网站支付额退款

master
Lei OT 2 years ago
parent 9ed733241e
commit 13983fbc67

@ -916,11 +916,10 @@ class Index extends CI_Controller {
$advisor_info_from_tmp = $this->Paypal_model->get_order($orderid_info->orderid, false, 'M', $handpick); $advisor_info_from_tmp = $this->Paypal_model->get_order($orderid_info->orderid, false, 'M', $handpick);
/** /**
* 传统订单, 网站支付 * 传统订单, 网站支付
* 已经录入, 后来重新生成订单号, 不再邮件通知了
* @author LYT * @author LYT
*/ */
if (empty($advisor_info) && ! empty($advisor_info_from_tmp) && $orderid_info->ordertype == 'T') { if (empty($advisor_info) && ! empty($advisor_info_from_tmp) && $orderid_info->ordertype == 'T') {
$this->Note_model->update_send($item->pn_txn_id, 'closeRecord', $item->pn_sn); // $this->Note_model->update_send($item->pn_txn_id, 'closeRecord', $item->pn_sn);
$this->Note_model->set_invoice($item->pn_txn_id, $advisor_info_from_tmp->COLI_ID . '_' . $orderid_info->ordertype); $this->Note_model->set_invoice($item->pn_txn_id, $advisor_info_from_tmp->COLI_ID . '_' . $orderid_info->ordertype);
continue; continue;
} }
@ -1068,6 +1067,19 @@ class Index extends CI_Controller {
//根据订单号查找外联信息 //根据订单号查找外联信息
$advisor_info = $this->Paypal_model->get_order($orderid_info->orderid, false, $orderid_info->ordertype, $handpick); $advisor_info = $this->Paypal_model->get_order($orderid_info->orderid, false, $orderid_info->ordertype, $handpick);
//根据订单号查找外联信息, 从临时表
$advisor_info_from_tmp = $this->Paypal_model->get_order($orderid_info->orderid, false, 'M', $handpick);
/**
* 传统订单, 网站支付
* @author LYT
*/
if (empty($advisor_info) && ! empty($advisor_info_from_tmp) && $orderid_info->ordertype == 'T') {
// $this->Note_model->update_send($item->pn_txn_id, 'closeRecord', $item->pn_sn);
$this->Note_model->set_invoice($item->pn_txn_id, $advisor_info_from_tmp->COLI_ID . '_' . $orderid_info->ordertype);
continue;
}
//查不到订单信息 //查不到订单信息
if (empty($advisor_info)) { if (empty($advisor_info)) {
$this->Note_model->update_send($item->pn_txn_id, 'sendfail'); $this->Note_model->update_send($item->pn_txn_id, 'sendfail');

@ -182,7 +182,7 @@ class Note_model extends CI_Model {
{ {
$ele->fundsource = ""; $ele->fundsource = "";
$raw = json_decode($ele->pn_memo); $raw = json_decode($ele->pn_memo);
$business = isset($raw->business) ? $raw->business : '0'; $business = isset($raw->business) ? $raw->business : (isset($raw->receiver_email) ? $raw->receiver_email : '0');
if ($this->code_fundsource[$business]) { if ($this->code_fundsource[$business]) {
$ele->fundsource = $this->code_fundsource[$business]; $ele->fundsource = $this->code_fundsource[$business];
} }

@ -236,7 +236,7 @@ echo "<option value=\"$vf->TEL_SN@" . strstr($vf->TEL_transactionDate, " ", true
$raw_content = json_decode($item->pn_memo); $raw_content = json_decode($item->pn_memo);
$show_record = '查看录入状态'; $show_record = '查看录入状态';
if ($item->pn_send == 'send' || substr($item->pn_send, 0, 5) == "send-") { if ($item->pn_send == 'send' || substr($item->pn_send, 0, 5) == "send-") {
$show_send = $item->pn_send; $show_send = $item->pn_send . " / " . str_ireplace('completed', '', $item->pn_payment_status);
} elseif ($item->pn_send == 'closeRecord') { } elseif ($item->pn_send == 'closeRecord') {
$show_send = $show_record = '已忽略'; $show_send = $show_record = '已忽略';
} else if (strtolower($item->pn_payment_status) == 'completed') { } else if (strtolower($item->pn_payment_status) == 'completed') {

Loading…
Cancel
Save