|
|
@ -202,6 +202,15 @@ class Note_model extends CI_Model {
|
|
|
|
return $this->HT->query($sql, array($pn_send, $pn_txn_id));
|
|
|
|
return $this->HT->query($sql, array($pn_send, $pn_txn_id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function update_pending_send($pn_txn_id, $pn_send) {
|
|
|
|
|
|
|
|
$sql = "
|
|
|
|
|
|
|
|
UPDATE paypal_note
|
|
|
|
|
|
|
|
SET pn_send = ?
|
|
|
|
|
|
|
|
WHERE pn_txn_id = ? AND pn_payment_status='pending'
|
|
|
|
|
|
|
|
";
|
|
|
|
|
|
|
|
return $this->HT->query($sql, array($pn_send, $pn_txn_id));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//设置订单号
|
|
|
|
//设置订单号
|
|
|
|
public function set_invoice($pn_txn_id, $pn_invoice) {
|
|
|
|
public function set_invoice($pn_txn_id, $pn_invoice) {
|
|
|
|
$sql = "
|
|
|
|
$sql = "
|
|
|
|