Commit bbb07bb6 authored by hujun's avatar hujun

site_id

parent 6e3c1d7d
......@@ -116,7 +116,11 @@ class Broker extends Basic
$agent_model = new AAgents();
$auth_group_id = $agent_model->getAgentFieldById($this->userId, 'auth_group_id');
$site_id = $group_site->getAgentField('site_id', ['group_id'=>$auth_group_id]);
$where['site_id'] = ['in', $site_id];
if (empty($site_id)) {
$where['site_id'] = $this->siteId;
} else {
$where['site_id'] = ['in', $site_id];
}
}
if ($this->params['position'] == -1) {
......
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