Commit bd24475b authored by zhuwei's avatar zhuwei

客户电话跟进

parent 796dcbf8
...@@ -392,19 +392,22 @@ class Broker extends Basic ...@@ -392,19 +392,22 @@ class Broker extends Basic
$params['user_status']='1';//0电话跟进 1普通跟进*/ $params['user_status']='1';//0电话跟进 1普通跟进*/
$checkResult = $this->validate($params, "BrokerValidate.verifyStatus"); $checkResult = $this->validate($params, "BrokerValidate.add_phone_follow_up_verify");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("300", $checkResult); return $this->response("300", $checkResult);
} }
$m_user = new Users();
$m_user_phone_follow_up = new UPhoneFollowPp($this->siteId);
$result = $m_user_phone_follow_up->savePhoneFollow($params); $user_id = $params['user_id'];
$user_status = $params['user_status'];
$Users = new Users();
$s_phone_follow_up = new UPhoneFollowUpTemporary($this->siteId);
$result = $s_phone_follow_up->savePhoneFollow($params);
if ($result > 0) { if ($result > 0) {
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效 //跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
$m_user->update_user_status([ 'id' => $params['user_id'], 'user_status' => $params['user_status'] ]); $Users->update_user_status([ 'id' => $user_id, 'user_status' => $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');
......
...@@ -381,7 +381,6 @@ class UserLogService ...@@ -381,7 +381,6 @@ class UserLogService
*/ */
public function userDetailFull($user_id) public function userDetailFull($user_id)
{ {
//查询客户详情 //查询客户详情
$field = 'id as user_id,agent_id,vip,create_time,first_login_time,referrer_source,referrer_id,registration_time,source_intro,referrer_source,source'; $field = 'id as user_id,agent_id,vip,create_time,first_login_time,referrer_source,referrer_id,registration_time,source_intro,referrer_source,source';
$user_result = $this->userModel->getUserDetailStreamline($user_id,$field); $user_result = $this->userModel->getUserDetailStreamline($user_id,$field);
......
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