|
|
@ -176,6 +176,19 @@ class PaymentService extends CI_Controller {
|
|
|
|
$ssje = $old_ssje===NULL ? $ssje : $old_ssje;
|
|
|
|
$ssje = $old_ssje===NULL ? $ssje : $old_ssje;
|
|
|
|
$currencyCode = str_replace("CNY", "RMB", trim(mb_strtoupper($item->OPN_currency)));
|
|
|
|
$currencyCode = str_replace("CNY", "RMB", trim(mb_strtoupper($item->OPN_currency)));
|
|
|
|
$currencyCode = mb_strtoupper(trim($currencyCode));
|
|
|
|
$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)) {
|
|
|
|
if ( empty($advisor_info)) {
|
|
|
|
// record fail
|
|
|
|
// record fail
|
|
|
|
$this->note_model->update_send($item->OPN_SN, $item->OPN_transactionId, 'sendfail');
|
|
|
|
$this->note_model->update_send($item->OPN_SN, $item->OPN_transactionId, 'sendfail');
|
|
|
|