From cdf64df07e9cd39d1e4cd287d6d0ce459a32ab07 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 5 Nov 2019 20:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=96=E7=95=A5BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/MarketingStrategyController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/controllers/MarketingStrategyController.php b/frontend/controllers/MarketingStrategyController.php index ce75744..f675186 100644 --- a/frontend/controllers/MarketingStrategyController.php +++ b/frontend/controllers/MarketingStrategyController.php @@ -492,7 +492,7 @@ class MarketingStrategyController extends UserBaseController $total1_clear = $request->post('total1_clear', 0); $car_no = $request->post('car_no'); $car_use_id = $request->post('car_use_id', 0); - $company2_id = $request->post('company2_id', 0); + $company_id = $request->post('company_id', 0); $car_info = CarT::findOne($car_id); if(!$car_info) { @@ -540,9 +540,7 @@ class MarketingStrategyController extends UserBaseController $flags[1] = 0; if($item->company_ids != '') { $company_ids = explode(',',$item->company_ids); - var_dump($company_ids); - echo $company2_id."||"; - if(in_array($company2_id, $company_ids)) { + if(in_array($company_id, $company_ids)) { $flags[1] = 1; } else { $flags[1] = -1; @@ -571,7 +569,7 @@ class MarketingStrategyController extends UserBaseController $flags[3] = -1; } } - var_dump($flags); + $flag = true; foreach($flags as $tmp_flag) { if($tmp_flag == 0) continue;