修改策略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);
$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;

Loading…
Cancel
Save