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) {