Commit dfc186c5 authored by zhuwei's avatar zhuwei

跟进人判断

parent 9ff95082
...@@ -376,6 +376,9 @@ class Broker extends Basic ...@@ -376,6 +376,9 @@ class Broker extends Basic
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("300", $checkResult); return $this->response("300", $checkResult);
} }
if ($params['agent_id'] !== $this->agentId) {
return $this->response("101", "失败!");
}
$user_id = $params['user_id']; $user_id = $params['user_id'];
...@@ -421,6 +424,9 @@ class Broker extends Basic ...@@ -421,6 +424,9 @@ class Broker extends Basic
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("300", $checkResult); return $this->response("300", $checkResult);
} }
if ($params['agent_id'] !== $this->agentId) {
return $this->response("101", "失败!");
}
$user_id = $params['user_id']; $user_id = $params['user_id'];
......
...@@ -442,6 +442,9 @@ class Member extends Basic{ ...@@ -442,6 +442,9 @@ class Member extends Basic{
if(empty($params['content']) || empty($params['user_id'])) { if(empty($params['content']) || empty($params['user_id'])) {
return $this->response(101, $msg = '缺少参数', $params); return $this->response(101, $msg = '缺少参数', $params);
} }
if ($params['agent_id'] !== $this->userId) {
return $this->response("101", "失败!");
}
//$params['id'] = ''; //$params['id'] = '';
$params['labels_id'] = 0; $params['labels_id'] = 0;
......
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