Commit d7f22151 authored by hujun's avatar hujun

1

parent 1ba0db05
...@@ -269,6 +269,7 @@ class BrokerService ...@@ -269,6 +269,7 @@ class BrokerService
* @return bool * @return bool
*/ */
public function checkSite($agent_id) { public function checkSite($agent_id) {
$city = [];
$m_group_site = new AuthGroupSite(); $m_group_site = new AuthGroupSite();
$m_site = new ASite(); $m_site = new ASite();
if (empty($agent_id)) { if (empty($agent_id)) {
...@@ -279,7 +280,10 @@ class BrokerService ...@@ -279,7 +280,10 @@ class BrokerService
$where['group_id'] = $auth_group_id; $where['group_id'] = $auth_group_id;
$where['status'] = 0; $where['status'] = 0;
$site_id = $m_group_site->getGroupSite('site_id', $where); $site_id = $m_group_site->getGroupSite('site_id', $where);
$city = $m_site->getSiteByIdColumn($site_id['data']['site_id'], 'city');
if ($site_id['status'] != 'fail' && !empty($site_id['data']['site_id'])) {
$city = $m_site->getSiteByIdColumn($site_id['data']['site_id'], 'city');
}
if (empty($city)) { if (empty($city)) {
$result = false; $result = false;
......
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