new function get_user_email_by_id
这个提交包含在:
父节点
a8247065f5
当前提交
e417c222dd
共有 1 个文件被更改,包括 11 次插入 和 0 次删除
|
|
@ -76,6 +76,17 @@ class User_Model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
function get_user_email_by_id($id) {
|
||||
|
||||
$clean_id = $this->security->xss_clean($id);
|
||||
|
||||
$this->db->where('user_id', $clean_id);
|
||||
$query = $this->db->get($this->config->item('auth_table'));
|
||||
|
||||
$r = $query->row();
|
||||
return $r->user_email;
|
||||
}
|
||||
|
||||
function get_email_address($station_id) {
|
||||
$this->db->where('station_id', $station_id);
|
||||
$this->db->join('station_profile', 'station_profile.user_id = '.$this->config->item('auth_table').'.user_id');
|
||||
|
|
|
|||
正在加载…
在新工单中引用