diff --git a/api/controllers/plan/CallBack.php b/api/controllers/plan/CallBack.php index 5a8d2995..18180c95 100644 --- a/api/controllers/plan/CallBack.php +++ b/api/controllers/plan/CallBack.php @@ -149,7 +149,7 @@ class CallBack extends CI_Controller $addData['customer_id'] = $row['cfId']; $addData['cf_platform'] = Receiver_call_wechat_model::CF_PLATFORM_ADMIN; } - debug_log("addData: " . json_encode($addData, JSON_UNESCAPED_UNICODE), $logPath, $this->logDir); +// debug_log("addData: " . json_encode($addData, JSON_UNESCAPED_UNICODE), $logPath, $this->logDir); $this->mdOplogs->add($addData); } } catch (Exception $e) { diff --git a/common/libraries/receiver/Customers_entity.php b/common/libraries/receiver/Customers_entity.php index e050b5f2..50177761 100644 --- a/common/libraries/receiver/Customers_entity.php +++ b/common/libraries/receiver/Customers_entity.php @@ -135,7 +135,7 @@ class Customers_entity */ public function syn_clues($customer_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}"; + $sql = "insert into lc_receiver_customer_oplogs (customer_id,cf_platform,c_time,uid,uname,type,log,sub_type) select {$customer_id},'admin',c_time,uid,uname,type,log,sub_type 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();