diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index d734f1c6e..8b78724a3 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -767,14 +767,14 @@ class CompanyStatementController extends ThinkController $stime = strtotime($date); $w = (int)date("w",strtotime($date)); $d = (int)date("d",strtotime($date)); - // if($w == 1){ - // if(!empty($up_company_id)){ - // $CompanyStatementSet->cpStatement(0,$stime,$up_company_id,false); - // } - // if(!empty($dowm_company_id)){ - // $CompanyStatementSet->promoteCompanyStatement(0,$stime,$dowm_company_id,false); - // } - // } + if($w == 1){ + if(!empty($up_company_id)){ + $CompanyStatementSet->cpStatement(0,$stime,$up_company_id,false); + } + if(!empty($dowm_company_id)){ + $CompanyStatementSet->promoteCompanyStatement(0,$stime,$dowm_company_id,false); + } + } if($d == 1){ if(!empty($up_company_id)){ $CompanyStatementSet->cpStatement(1,$stime,$up_company_id,false); @@ -782,7 +782,7 @@ class CompanyStatementController extends ThinkController } if(!empty($dowm_company_id)){ $CompanyStatementSet->promoteCompanyStatement(1,$stime,$dowm_company_id,false); - // $CompanyStatementSet->promoteCompanyStatement(2,$stime,$dowm_company_id,false); + $CompanyStatementSet->promoteCompanyStatement(2,$stime,$dowm_company_id,false); } }