Commit 5f4c687c authored by zhuwei's avatar zhuwei

1

parent d69d25a1
...@@ -380,6 +380,8 @@ class CostParameter extends Basic ...@@ -380,6 +380,8 @@ class CostParameter extends Basic
// "save_json" => '[{"type":1},{"id":1}]', // "save_json" => '[{"type":1},{"id":1}]',
// ); // );
big_log($params);
$checkResult = $this->validate($params, "CostParameterValidate.editCompanyData"); $checkResult = $this->validate($params, "CostParameterValidate.editCompanyData");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
...@@ -390,7 +392,7 @@ class CostParameter extends Basic ...@@ -390,7 +392,7 @@ class CostParameter extends Basic
$save_json = json_decode($params['save_json'],true); $save_json = json_decode($params['save_json'],true);
foreach ($save_json as $k => $v) { foreach ($save_json as $k => $v) {
if(!$v['type']){ if(!is_numeric($v['type'])){
return $this->response("101", 'type不能为空'); return $this->response("101", 'type不能为空');
} }
$f_params['type'] = $v['type']; $f_params['type'] = $v['type'];
......
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