修改策略BUG

dev
曾超新 5 years ago
parent 40ef88fa6e
commit cdf64df07e
  1. 8
      frontend/controllers/MarketingStrategyController.php

@ -492,7 +492,7 @@ class MarketingStrategyController extends UserBaseController
$total1_clear = $request->post('total1_clear', 0); $total1_clear = $request->post('total1_clear', 0);
$car_no = $request->post('car_no'); $car_no = $request->post('car_no');
$car_use_id = $request->post('car_use_id', 0); $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); $car_info = CarT::findOne($car_id);
if(!$car_info) { if(!$car_info) {
@ -540,9 +540,7 @@ class MarketingStrategyController extends UserBaseController
$flags[1] = 0; $flags[1] = 0;
if($item->company_ids != '') { if($item->company_ids != '') {
$company_ids = explode(',',$item->company_ids); $company_ids = explode(',',$item->company_ids);
var_dump($company_ids); if(in_array($company_id, $company_ids)) {
echo $company2_id."||";
if(in_array($company2_id, $company_ids)) {
$flags[1] = 1; $flags[1] = 1;
} else { } else {
$flags[1] = -1; $flags[1] = -1;
@ -571,7 +569,7 @@ class MarketingStrategyController extends UserBaseController
$flags[3] = -1; $flags[3] = -1;
} }
} }
var_dump($flags);
$flag = true; $flag = true;
foreach($flags as $tmp_flag) { foreach($flags as $tmp_flag) {
if($tmp_flag == 0) continue; if($tmp_flag == 0) continue;

Loading…
Cancel
Save