|
|
@ -56,7 +56,7 @@ class Feedback extends Controller |
|
|
|
$data['answer'] = $this->postForm()['answer']; |
|
|
|
$data['answer'] = $this->postForm()['answer']; |
|
|
|
$data['feedback_id'] = $this->postForm()['feedback_id']; |
|
|
|
$data['feedback_id'] = $this->postForm()['feedback_id']; |
|
|
|
$data['deal_time'] = time(); |
|
|
|
$data['deal_time'] = time(); |
|
|
|
if (!$model->edit($this->postForm())) { |
|
|
|
if (!$model->edit($data)) { |
|
|
|
return $this->renderError($model->getError() ?: '更新失败'); |
|
|
|
return $this->renderError($model->getError() ?: '更新失败'); |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->renderSuccess('更新成功'); |
|
|
|
return $this->renderSuccess('更新成功'); |
|
|
|