perf: 操作人记录

webht/payment
Lei OT 6 months ago
parent 564325ab6d
commit b6a0658cf0

@ -10,7 +10,7 @@ class Online_payment_account_model extends CI_Model {
parent::__construct();
$this->HT = $this->load->database('HT', TRUE);
$this->userdata = $this->session->userdata('userdata');
$this->userID = $this->userdata['OPI_SN'];
$this->userID = isset($this->userdata['OPI_SN']) ? $this->userdata['OPI_SN'] : 'null';
}
/*!

@ -6,11 +6,15 @@ if (!defined('BASEPATH'))
class Paypal_model extends CI_Model {
private $HT;
private $userdata;
private $userID;
function __construct() {
parent::__construct();
$this->HT = $this->load->database('HT', TRUE);
//$this->DEST = $this->load->database('DEST', TRUE);
$this->userdata = $this->session->userdata('userdata');
$this->userID = isset($this->userdata['OPI_SN']) ? $this->userdata['OPI_SN'] : 'null';
}
//根据订单号获取外联邮箱
@ -218,8 +222,8 @@ class Paypal_model extends CI_Model {
,GAI_Memo
,GAI_API
,GAI_State
,DeleteFlag,LastEditTime
) VALUES (?,?,15010,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())";
,DeleteFlag,LastEditTime,LastEditUser
) VALUES (?,?,15010,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE(),{$this->userID})";
$query = $this->HT->query($sql, array($GAI_COLI_SN, $GAI_SQJE, $GAI_COLI_SN, $GAI_COLI_ID, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo,$GAI_API));
$insertid = ($query && $query->num_rows() > 0) ? $this->HT->last_id('BIZ_GroupAccountInfo') : false;
return $insertid;
@ -261,8 +265,8 @@ class Paypal_model extends CI_Model {
,GAI_Memo
,GAI_API
,GAI_State
,DeleteFlag,LastEditTime
) VALUES (?,?,15002,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())";
,DeleteFlag,LastEditTime,LastEditUser
) VALUES (?,?,15002,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE(),{$this->userID})";
$query = $this->HT->query($sql, array($GAI_AccreditNo, $GAI_COLI_SN, $GAI_COLI_ID, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_Money, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo,$GAI_API));
$insertid = ($query && $query->num_rows() > 0) ? $this->HT->last_id('BIZ_GroupAccountInfo') : false;
return $insertid;
@ -293,8 +297,8 @@ class Paypal_model extends CI_Model {
,GAI_AccreditNo
,GAI_Memo,GAI_API
,GAI_State
,DeleteFlag,LastEditTime
) VALUES (?,15002,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())";
,DeleteFlag,LastEditTime,LastEditUser
) VALUES (?,15002,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE(),{$this->userID})";
$query = $this->HT->query($sql, array($GAI_AccreditNo, $GAI_COLI_SN, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo,$GAI_API));
$insertid = ($query && $query->num_rows() > 0) ? $this->HT->last_id('GroupAccountInfo') : false;

Loading…
Cancel
Save