Commit 6a4fdee6 authored by hujun's avatar hujun

site_id

parent d940f0a0
......@@ -138,7 +138,6 @@ class Broker extends Basic
if (!empty($this->userId) && ($this->params['source'] != 'B-APP') && $this->params['site_id']) {
$client_where['c.id'] = $this->userId;
$client_where['c.id'] = 1;
$client_where['a.status'] = 0;
$client_where['d.site_id'] = $this->params['site_id'];
$agent_client = $agents->getAgentClientCity($fields, $client_where);
......@@ -245,6 +244,23 @@ class Broker extends Basic
$client_where['b.agent_id'] = ['neq', $list[0]['id']];
}
$client_where['b.id'] = $this->userId;
switch ($this->user_city) {
case '上海市' :
$site_id = 10001;break;
case '杭州市' :
$site_id = 10002;break;
case '深圳市' :
$site_id = 10003;break;
case '广州市' :
$site_id = 10004;break;
case '北京市' :
$site_id = 10005;break;
default :
return $this->response(101, '参数错误');
}
$client_where['d.site_id'] = $site_id;
$client = $agents->getAgentUser($fields, $client_where); //客方
if (!empty($client)){
$client['show_content'] = '帮助客户找更多,善于了解客户需求';
......
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