Files
liche/common/libraries/receiver/Clues_entity.php
T
2021-07-05 09:56:27 +08:00

31 lines
626 B
PHP

<?php
/**
* 线索池
*/
class Clues_entity{
private $ci;
public function __construct(){
$this->ci = & get_instance();
}
//添加日志
public function add_log($clue_id,$uid,$uname,$log,$type=''){
$this->ci->load->model('receiver/receiver_clue_oplogs_model','oplogs_model');
$data = [
'clue_id' => $clue_id,
'uid' => $uid,
'uname' => $uname,
'log' => $log,
'c_time' => time()
];
$type && $data['type'] = $type;
$r_id = $this->ci->oplogs_model->add($data);
return $r_id;
}
}
?>