Commit 5d5da7e9 authored by hujun's avatar hujun

拨打电话处理不是客户的记录

parent d2554e6e
......@@ -112,7 +112,7 @@ class CallPhoneService
$this->agent_name = $agent_name;
try {
$result['follow_id'] = 0;
if (!$landlord) {
if (!empty($user_id)) {
$this->recordCallRedis($agent_id, $user_id, $this->phone_a, $this->phone_b);
}
......@@ -447,7 +447,8 @@ class CallPhoneService
$follow_where['user_id'] = $array[1];
$num = $m_follow_up->getFollowTotal($follow_where);
if (empty($num)) {
if (empty($num) && !empty($array[1])) {
//$agent_id, $user_id, $content, $type
$m_follow_up->insertDefaultFollow($array[0], $array[1], $content, 0);
$this->redis->hDel($user_key, $v);
}
......
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