diff --git a/common/libraries/market/Sylive_entity.php b/common/libraries/market/Sylive_entity.php index 9444a62d..52613b82 100644 --- a/common/libraries/market/Sylive_entity.php +++ b/common/libraries/market/Sylive_entity.php @@ -68,6 +68,12 @@ class Sylive_entity{ */ public function kpi_log($params) { + if(!$params['cf_uid']){ + $group_id = $this->get_level($params['uid']); + if($group_id<4){ + $params['cf_uid'] = $params['uid']; + } + } if ($params['a_id'] && $params['uid'] && $params['cf_uid']) { $user = $this->user_model->get(['userId'=>$params['cf_uid']]); if(!$user){ diff --git a/home/controllers/h5/market/sylive/Act.php b/home/controllers/h5/market/sylive/Act.php index d7690b7e..ebe808d1 100644 --- a/home/controllers/h5/market/sylive/Act.php +++ b/home/controllers/h5/market/sylive/Act.php @@ -224,9 +224,15 @@ class Act extends Wx { } } $user = $this->user_model->get(['userId'=>$this->uid],'uname'); - $where = [ - "organizationId = (select parentId from lc_market_sylive_organization where organizationId={$this->session['org_id']})" => null - ]; + if($this->group_id==3){ + $where = [ + "organizationId = (select parentId from lc_market_sylive_organization where organizationId={$this->session['org_id']})" => null + ]; + }else{ + $where = [ + "organizationId" => $this->session['org_id'] + ]; + } $biz = $this->market_sylive_organization_model->get($where,'organizationName'); $this->data['posterTip'] = "{$biz['organizationName']}{$user['uname']}诚挚邀请您参与"; $this->data['lists'] = $lists; @@ -354,8 +360,8 @@ class Act extends Wx { ]; $if_pid = 0; $ac_user = $this->act_user_model->get(['userId'=>$this->uid,'activityId'=>$a_id],'channelId'); - $ac_user['channelId'] && $pid_user = $this->user_model->get(['userId'=>$ac_user['channelId']],'uname,organizationId,mobile'); - $gw_tel = $gw_slogan = $gw_title = ''; + $ac_user['channelId'] && $pid_user = $this->user_model->get(['userId'=>$ac_user['channelId']],'uname,organizationId,mobile,headimg'); + $logo = $gw_tel = $gw_slogan = $gw_title = ''; if($ac_user['channelId'] && $pid_user['organizationId']>0){ $group_id = $this->sylive_entity->get_level($pid_user['organizationId']); if($group_id==3){ //顾问 @@ -371,13 +377,14 @@ class Act extends Wx { ]; $org = $this->market_sylive_organization_model->get($where); } - $gw_title = $org['organizationName']; - $gw_slogan = $pid_user['uname'].'·您的专属的福利官'; + $gw_title = $pid_user['uname']; + $gw_slogan = $org['organizationName']; $gw_tel = $pid_user['mobile']; + $logo = $pid_user['headimg']; } $info = [ 'bg' => "https://qs.haodian.cn/web/images/project/H5-ShiYu/mine-bg.jpg", - 'logo' => "https://qs.haodian.cn/web/images/project/H5-ShiYu/goodslogo.jpg", + 'logo' => $logo, 'if_pid' => $if_pid, 'title' => $gw_title, 'slogan' => $gw_slogan, diff --git a/home/views/h5/market/sylive/stic/area.php b/home/views/h5/market/sylive/stic/area.php index f27d56ca..e0267eec 100644 --- a/home/views/h5/market/sylive/stic/area.php +++ b/home/views/h5/market/sylive/stic/area.php @@ -92,7 +92,7 @@