|
|
@ -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');
|
|
|
|