Commit a12d7107 by 冷斌

`试卷`

parent d17dac61
......@@ -308,9 +308,7 @@ class AdminPaperAction extends AdministratorAction
$data['assembly_type'] = isset($_POST['assembly_type']) ? intval($_POST['assembly_type']) : 0;
$data['best'] = isset($_POST['best']) ? intval($_POST['best']) : 0;
$data['price'] = t($_POST['price']);
var_dump($this->mod->save($data), $data['best']);
die;
if ($this->mod->save($data)) {
if ($this->mod->where(['exams_paper_id' => $paper_id])->save($data)) {
$this->success('编辑成功');
} else {
$this->error('编辑失败,请重新尝试');
......
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