edit-sylive-headimg

This commit is contained in:
lccsw
2022-11-20 19:29:45 +08:00
parent 92945cb647
commit 054f604494
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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;