Commit 732b2725 authored by zhuwei's avatar zhuwei

批量修改是否参与活动

parent aeda6327
...@@ -248,7 +248,7 @@ class CostParameter extends Basic ...@@ -248,7 +248,7 @@ class CostParameter extends Basic
public function updateStoreData($id,$params){ public function updateStoreData($id,$params){
$data['id'] = $id; $data['id'] = $id;
if((isset($params['is_discounts'])) && ($params['is_discounts'] > 0)) if((isset($params['is_discounts'])) && (is_numeric($params['is_discounts'])))
$data['is_discounts'] = $params['is_discounts']; $data['is_discounts'] = $params['is_discounts'];
if((isset($params['transfer_charge'])) && ($params['transfer_charge'] > 0)) if((isset($params['transfer_charge'])) && ($params['transfer_charge'] > 0))
...@@ -425,4 +425,5 @@ class CostParameter extends Basic ...@@ -425,4 +425,5 @@ class CostParameter extends Basic
} }
return $this->response($code, $msg); return $this->response($code, $msg);
} }
} }
\ No newline at end of file
...@@ -556,6 +556,7 @@ Route::group('index', [ ...@@ -556,6 +556,7 @@ Route::group('index', [
'checkCostParameter' => [ 'index/CostParameter/checkCostParameter', [ 'method' => 'POST' ] ],//核对参数 'checkCostParameter' => [ 'index/CostParameter/checkCostParameter', [ 'method' => 'POST' ] ],//核对参数
'getCompanyCostParameterList' => [ 'index/CostParameter/getCompanyCostParameterList', [ 'method' => 'POST|GET' ] ], 'getCompanyCostParameterList' => [ 'index/CostParameter/getCompanyCostParameterList', [ 'method' => 'POST|GET' ] ],
'editCompanyData' => [ 'index/CostParameter/editCompanyData', [ 'method' => 'POST|GET' ] ], 'editCompanyData' => [ 'index/CostParameter/editCompanyData', [ 'method' => 'POST|GET' ] ],
'editDiscounts' => [ 'index/CostParameter/editDiscounts', [ 'method' => 'POST|GET' ] ],
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment