Commit c81850a3 authored by hujun's avatar hujun

去除redis验证

parent 44a50ac8
......@@ -324,8 +324,6 @@ class Broker extends Basic
$data['msg'] = 'phone is null';
} else {
$m_agents = new AAgents();
$redis = new VerifyRepetitionService();
$agents_data = $m_agents->getAgentInfo('id,update_time,call_number', '', ['phone'=>$this->params['phone']]);
if (empty($agents_data['id'])) {
......@@ -336,12 +334,13 @@ class Broker extends Basic
$agent_id = $agents_data['id'];
}
$is = $redis->verifyStart(2, $agent_id, 0);
if ($is) {
if ($agent_id) {
$agents_data = $m_agents->getAgentInfo('id,update_time,call_number', $agent_id);
$insert_data['update_time'] = $agents_data['update_time'];
$insert_data['call_number'] = $agents_data['call_number'] + 1;
$data['data'] = $m_agents->editData($insert_data, $agent_id);
} else {
$data['msg'] = '没有该经纪人信息';
}
}
......
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