Commit 15710f58 authored by hujun's avatar hujun

记录拨打数

parent b3cc96e0
......@@ -318,16 +318,13 @@ class Broker extends Basic
$data['data'] = [];
$data['msg'] = '';
if ($this->params['agent_id'] > 0) {
if (isset($this->params['phone'])) {
$redis = new VerifyRepetitionService();
$is = $redis->verifyStart(2, $this->params['phone'], 0);
if ($is) {
$m_agents = new AAgents();
$agents_data = $m_agents->getAgentInfo('id,update_time,call_number', '', ['agent_id'=> $this->params['agent_id']]);
if (empty($this->params['phone'])) {
$agents_data = $m_agents->getAgentInfo('id,update_time,call_number', $this->params['agent_id']);
} else {
......@@ -341,7 +338,7 @@ class Broker extends Basic
} else {
$data['status'] = 101;
$data['msg'] = 'agent_id is null';
$data['msg'] = 'phone is null';
}
return $this->response($data['status'], $data['msg'], $data['data']);
......
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