edit-sylive-biz_pay

This commit is contained in:
lccsw
2022-10-20 20:08:44 +08:00
parent 14e8aa54c6
commit 2ea0c4cf71
10 changed files with 41 additions and 24 deletions
+20 -1
View File
@@ -17,6 +17,7 @@ class Sylive_entity{
$this->ci->load->model('market/market_sylive_activity_biz_model','mdSytActivityBiz');
$this->ci->load->model('market/market_sylive_activity_kpidata_model','mdSytActivityKpiData');
$this->ci->load->model('market/market_sylive_organization_model');
$this->ci->load->model('market/market_sylive_activity_orders_model','mdSytActivityOrders');
$this->ci->load->model('live/Live_polyv_viewlog_model', 'mdPolyvViewlog');
}
@@ -58,7 +59,25 @@ class Sylive_entity{
}else{
$where["areaId in (select organizationId from lc_market_sylive_organization where parentId={$organizationId} and status=0)"] = null;
}
return $this->ci->mdSytActivityBiz->count($where) ? true : false;
$res = false;
$act = $this->ci->mdSytActivityBiz->count($where);
if($act){
$res = true;
if(in_array($group_id,[2,3])){ //判断是否支付
$where = [
'activityId'=>$a_id,
'status'=>1,
];
if($group_id==3){
$where["bizId in (select parentId from lc_market_sylive_organization where organizationId={$organizationId} and status=0)"] = null;
}else{
$where['bizId'] = $organizationId;
}
$is_pay = $this->ci->mdSytActivityOrders->get($where);
!$is_pay && $res = false;
}
}
return $res;
}
/**
* 获取等级数据