Commit 549f38b3 authored by zhuwei's avatar zhuwei

客户电话跟进优化

parent dbcbd575
...@@ -393,16 +393,14 @@ class Broker extends Basic ...@@ -393,16 +393,14 @@ class Broker extends Basic
return $this->response("300", $checkResult); return $this->response("300", $checkResult);
} }
$user_id = $params['user_id']; $m_user = new Users();
$user_status = $params['user_status']; $m_user_phone_follow_up = new UPhoneFollowPp($this->siteId);
$Users = new Users(); $result = $m_user_phone_follow_up->savePhoneFollow($params);
$UPhoneFollowPp = new UPhoneFollowPp($this->siteId);
$result = $UPhoneFollowPp->savePhoneFollow($params);
if ($result > 0) { if ($result > 0) {
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效 //跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
$Users->update_user_status([ 'id' => $user_id, 'user_status' => $user_status ]); $m_user->update_user_status([ 'id' => $params['user_id'], 'user_status' => $params['user_status'] ]);
$redis = RedisExt::getRedis(); $redis = RedisExt::getRedis();
$user_key = 'call_phone_user_' . date('Y-m-d'); $user_key = 'call_phone_user_' . date('Y-m-d');
......
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