作者 王智

11

... ... @@ -66,13 +66,12 @@ class QuestionBoy extends Backend
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
$row->validateFailException(true)->validate($validate);
}
$inputs = $this->request->param();
unset($inputs['dialog']);
unset($inputs['row']);
unset($inputs['ids']);
dump($inputs);
$list= array_unique($inputs);
dump($list);
$INPUT = $this->request->param();
unset($INPUT['dialog']);
unset($INPUT['row']);
unset($INPUT['ids']);
$input= array_unique($INPUT);
dump(json_encode($input));
die;
$result = $row->allowField(true)->save($params);
Db::commit();
... ...