diff --git a/home/controllers/h5/market/sylive/Biz.php b/home/controllers/h5/market/sylive/Biz.php index ae6164ff..7f1eed01 100644 --- a/home/controllers/h5/market/sylive/Biz.php +++ b/home/controllers/h5/market/sylive/Biz.php @@ -81,8 +81,8 @@ class Biz extends Admin { } $area_id = $this->input->get('area_id'); $user = $this->user_model->get(['userId'=>$this->uid]); - $org_row = $this->market_sylive_organization_model->get(['organizationId'=>$this->session['org_id']]); - $headimg = $org_row['logo'] ? build_qiniu_image_url($org_row['logo']):Sylive_entity::HD_IMG; + $org_arr = $this->sylive_entity->get_level_lists($this->session['org_id']); + $headimg = $org_arr[0]['logo'] ? build_qiniu_image_url($org_arr[0]['logo']):Sylive_entity::HD_IMG; $data = [ 'nickname' => $user['nickname'], 'headimg' => $headimg diff --git a/home/controllers/h5/market/sylive/User.php b/home/controllers/h5/market/sylive/User.php index 68991b74..fc085b25 100644 --- a/home/controllers/h5/market/sylive/User.php +++ b/home/controllers/h5/market/sylive/User.php @@ -28,8 +28,8 @@ class User extends Admin throw new Hd_exception('权限不足', 400); } $row = $this->market_sylive_organization_model->get(['organizationId' => $this->biz_id]); - $org_row = $this->market_sylive_organization_model->get(['organizationId' => $this->session['org_id']]); - $headimg = $org_row['logo'] ? build_qiniu_image_url($org_row['logo']) : Sylive_entity::HD_IMG; + $org_arr = $this->sylive_entity->get_level_lists($this->session['org_id']); + $headimg = $org_arr[0]['logo'] ? build_qiniu_image_url($org_arr[0]['logo']):Sylive_entity::HD_IMG; $this->data['headimg'] = $headimg; $this->data['biz_name'] = $row['organizationName']; $this->data['biz_id'] = $this->biz_id;