From dfcf3545b4e65091a19bbafb976e745ae3b7801d Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Mon, 4 Nov 2019 17:25:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=96=E7=95=A5=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/MarketingStrategyController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/controllers/MarketingStrategyController.php b/frontend/controllers/MarketingStrategyController.php index 878b92a..ce49943 100644 --- a/frontend/controllers/MarketingStrategyController.php +++ b/frontend/controllers/MarketingStrategyController.php @@ -531,6 +531,8 @@ class MarketingStrategyController extends UserBaseController $tmp_type_id = 2; if(in_array($tmp_type_id, $car_type_ids)) { $flag = true; + } else { + $flag = false; } } //保险公司 @@ -538,6 +540,8 @@ class MarketingStrategyController extends UserBaseController $company_ids = explode(',',$item->company_ids); if(in_array($company2_id, $company_ids)) { $flag = true; + } else { + $flag = false; } } //车辆使用类型 @@ -545,6 +549,8 @@ class MarketingStrategyController extends UserBaseController $car_use_ids = explode(',',$item->car_use_id); if(in_array($car_use_id, $car_use_ids)) { $flag = true; + } else { + $flag = false; } } //新保、续保 @@ -555,6 +561,8 @@ class MarketingStrategyController extends UserBaseController $tmp_type_id = 2; if(in_array($tmp_type_id, $type_ids)) { $flag = true; + } else { + $flag = false; } } if($flag) {