From c9e9caab772ec307db893f302bdd41adfe32e1c4 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Fri, 27 Aug 2021 20:22:13 +0800 Subject: [PATCH] log --- common/libraries/receiver/Customers_entity.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/libraries/receiver/Customers_entity.php b/common/libraries/receiver/Customers_entity.php index 65117879..4100f1f7 100644 --- a/common/libraries/receiver/Customers_entity.php +++ b/common/libraries/receiver/Customers_entity.php @@ -58,8 +58,7 @@ class Customers_entity{ * @param $clue_id int 线索id */ public function syn_clues($customer_id,$clue_id){ - $n_time = time(); - $sql = "insert into lc_receiver_customer_oplogs (customer_id,cf_platform,c_time,uid,uname,type,log,c_time) select {$customer_id},'admin',{$n_time},uid,uname,type,log,c_time from lc_receiver_clue_oplogs where clue_id={$clue_id}"; + $sql = "insert into lc_receiver_customer_oplogs (customer_id,cf_platform,c_time,uid,uname,type,log) select {$customer_id},'admin',c_time,uid,uname,type,log from lc_receiver_clue_oplogs where clue_id={$clue_id}"; $this->ci->load->model('receiver/receiver_customer_oplogs_model','customer_oplogs_model'); $this->ci->customer_oplogs_model->db->query($sql); return $this->ci->customer_oplogs_model->db->affected_rows();