Commit 152cc9e2 authored by clone's avatar clone

1

parent 4d9ba117
......@@ -474,10 +474,8 @@ class Broker extends Basic
/* $params = array(
'content' => '跟进内容',
'labels_id' => 1,//g_labels表主键
'user_id' => 1,
'agent_id' => 1,
'type' => 1,//0电话跟进 1普通跟进
'user_status' => 1,//客户状态
'entrust_type' => 1,//委托类型 0找铺 1找办公楼
);*/
......@@ -490,12 +488,7 @@ class Broker extends Basic
return $this->response("101", "身份验证失败!");
}
$user_id = $params['user_id'];
$user_status = $params['user_status'];
$entrust_type = $params["entrust_type"];
$Users = new Users();
$result = [];
if($entrust_type == 0){
$s_phone_follow_up = new UPhoneFollowUpTemporary($this->siteId);
......@@ -507,8 +500,6 @@ class Broker extends Basic
}
if ($result > 0) {
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
$Users->update_user_status([ 'id' => $user_id, 'user_status' => $user_status ]);
$redis_service = new RedisCacheService();
$redis_service->delRecordCallRedis($this->agentId, $params['user_id'], $this->siteId);
return $this->response("200", "success!", $result);
......
......@@ -40,6 +40,6 @@ class BrokerValidate extends Validate
protected $scene = [
// 'add_phone_follow_up_verify' => [ 'labels_id', 'user_id', 'agent_id', 'user_status', 'type' ],
'add_phone_follow_up_verify' => ['labels_id', 'user_id', 'agent_id', 'type', 'entrust_type'],
'add_phone_follow_up_verify' => ['labels_id', 'agent_id', 'type', 'entrust_type'],
];
}
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