diff --git a/webht/third_party/pay/controllers/PaymentService.php b/webht/third_party/pay/controllers/PaymentService.php index 3b18ce76..d6f50147 100644 --- a/webht/third_party/pay/controllers/PaymentService.php +++ b/webht/third_party/pay/controllers/PaymentService.php @@ -176,6 +176,19 @@ class PaymentService extends CI_Controller { $ssje = $old_ssje===NULL ? $ssje : $old_ssje; $currencyCode = str_replace("CNY", "RMB", trim(mb_strtoupper($item->OPN_currency))); $currencyCode = mb_strtoupper(trim($currencyCode)); + + //根据订单号查找外联信息, 从临时表 + $advisor_info_from_tmp = $this->account_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->OPN_SN, $item->OPN_transactionId, 'closed'); + $this->note_model->set_invoice($item->OPN_SN, $advisor_info_from_tmp->COLI_ID . '_' . $orderid_info->ordertype); + continue; + } + if ( empty($advisor_info)) { // record fail $this->note_model->update_send($item->OPN_SN, $item->OPN_transactionId, 'sendfail'); diff --git a/webht/third_party/pay/views/payment_list.php b/webht/third_party/pay/views/payment_list.php index 38e325f0..76e6f9b9 100644 --- a/webht/third_party/pay/views/payment_list.php +++ b/webht/third_party/pay/views/payment_list.php @@ -219,9 +219,12 @@