edit-sylive-logo

This commit is contained in:
lccsw
2022-11-18 17:03:15 +08:00
parent 62920f9f14
commit 3d98a62723
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ class Sylive_entity{
const DEFAULT_HEAD = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/default-head.png'; //默认头像
const DF_IMG = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/goodslogo.jpg'; //东风图标
const HD_IMG = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/default-avatar.jpg'; //好店云默认头像
private $ci;
private $map_kpi_biz = [
'browse' => 'browse', 'subscribe' => 'subscribe', 'order' => 'orderTotal','watch' => 'watch'
@@ -125,7 +126,7 @@ class Sylive_entity{
* @return int
*/
public function get_level_lists($organizationId,$data=[]){
$row = $this->ci->market_sylive_organization_model->get(['organizationId'=>$organizationId],'organizationId,parentId,organizationName');
$row = $this->ci->market_sylive_organization_model->get(['organizationId'=>$organizationId],'organizationId,parentId,organizationName,logo');
if(!$row){
return $data;
}else{
+5 -2
View File
@@ -33,7 +33,8 @@ class Biz extends Admin {
$this->data['biz_id'] = $biz_id;
$this->data['group_id'] = $this->group_id;
$row = $this->market_sylive_organization_model->get(['organizationId'=>$biz_id]);
$this->data['headimg'] = Sylive_entity::DF_IMG;
$org_row = $this->market_sylive_organization_model->get(['organizationId'=>$this->session['org_id']]);
$this->data['headimg'] = $org_row['logo'] ? build_qiniu_image_url($org_row['logo']):Sylive_entity::HD_IMG;
$this->data['biz_name'] = $row['organizationName'];
//微信分享
$wx_info = $this->share_info();
@@ -80,9 +81,11 @@ 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;
$data = [
'nickname' => $user['nickname'],
'headimg' => Sylive_entity::DF_IMG
'headimg' => $headimg
];
if($this->group_id==1 || $area_id){ //所有店铺
!$area_id && $area_id = $this->session['org_id'];