Commit 968b1ed0 authored by hujun's avatar hujun

电话记录

parent 1e811106
......@@ -1043,10 +1043,13 @@ class Broker extends Basic
return $this->response($code, $msg);
}
/**
* 电话记录
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getCallLog()
{
......@@ -1078,11 +1081,11 @@ class Broker extends Basic
}
if (is_numeric($params['users_type']) && !empty($this->params['users_id'])) {
$where['a.user_type'] = $params['users_type'];
$where['a.users_id'] = $params['users_id'];
$where['a.user_type'] = (int)$params['users_type'];
$where['a.users_id'] = (int)$params['users_id'];
}
$res = $m_secret_report->getCallList($pageNo, $pageSize, 'id desc', $field, $where);
$res = $m_secret_report->getCallList($pageNo, $pageSize, '', $field, $where);
$res_total = $m_secret_report->getCallListTotal($where);
$data['list'] = $res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment