|
|
|
@ -1080,19 +1080,16 @@ class Index extends CI_Controller {
|
|
|
|
|
* @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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// return false;
|
|
|
|
|
} else if (empty($advisor_info)) {
|
|
|
|
|
//查不到订单信息
|
|
|
|
|
if (empty($advisor_info)) {
|
|
|
|
|
$this->Note_model->update_send($item->pn_txn_id, 'sendfail');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
//更新正确的订单信息到记录中,以这个为主
|
|
|
|
|
$this->Note_model->set_invoice($item->pn_txn_id, $orderid_info->orderid . '_' . $orderid_info->ordertype);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//添加支付信息入库
|
|
|
|
|
//没有分配订单之前先添加付款记录,这个过程可能会执行多次,必须在添加记录前查找是否有数据
|
|
|
|
|