From b3813dad4aae2b5176d152e2254c0f8e5589b52f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 12 Aug 2020 16:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=AC=E5=8F=B8=E5=8D=95?= =?UTF-8?q?=E5=AD=90=E4=B8=BA=E4=B8=80=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementController.class.php | 31 +++++-------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 991faac34..0239a76e0 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -488,25 +488,16 @@ class CompanyStatementController extends ThinkController "op_time"=>time(), "company_list"=>[] ]; - $datas = ["ups","up","downs","down"]; + $datas = ["up","down"]; //初始化数据 foreach($datas as $k=>$v){ - if($v =="ups"){ - $basedata['company_type']=3; - $basedata['is_payment']=1; - } if($v =="up"){ $basedata['company_type']=3; - $basedata['is_payment']=2; - } - - if($v =="downs"){ - $basedata['company_type']=1; $basedata['is_payment']=1; } if($v =="down"){ $basedata['company_type']=1; - $basedata['is_payment']=2; + $basedata['is_payment']=1; } $datas[$v]=$basedata; unset($datas[$k]); @@ -516,18 +507,9 @@ class CompanyStatementController extends ThinkController if($v['verify_status'] != 2) continue; if($v['company_belong'] == 9){ //上游 - if($v['is_payment'] == 1){ - $this->setDf($datas['ups'],$v); - }else{ - $this->setDf($datas['up'],$v); - } + $this->setDf($datas['up'],$v); }else{ - - if($v['is_payment'] == 1){ - $this->setDf($datas['downs'],$v); - }else{ - $this->setDf($datas['down'],$v); - } + $this->setDf($datas['down'],$v); } } $Pool = M("company_statement_pool","tab_"); @@ -613,7 +595,7 @@ class CompanyStatementController extends ThinkController unset($value["second_ratio"]); } } - if($k=="ups" || $k=='downs'){ + if($va['is_payment'] == 1){ $is_payment = 1; $verify_status = 0; }else{ @@ -747,7 +729,8 @@ class CompanyStatementController extends ThinkController "fine"=>$fine, "reward"=>$reward, "statement_info"=>$v['statement_info'], - "statement_num"=>"JS_".date('Ymd').date('His').$v['company_id'].sp_random_string(5) + "statement_num"=>"JS_".date('Ymd').date('His').$v['company_id'].sp_random_string(5), + "is_payment"=>$v['is_payment'] ]; $savedata['company_list'][$v['company_id']] = $tdata; }