|
|
@@ -62,11 +62,12 @@ class FeedBack extends BaseController
|
|
62
|
62
|
*/
|
|
63
|
63
|
public function reply($id)
|
|
64
|
64
|
{
|
|
65
|
|
- if (!$this->repository->fieldExists('feedback_id',$id))
|
|
|
65
|
+ if (!$this->repository->fieldExists('feedback_id', $id))
|
|
66
|
66
|
return app('json')->fail('数据不存在');
|
|
67
|
67
|
$data = $this->request->params(['reply', 'remake', 'status']);
|
|
68
|
68
|
$data['reply_time'] = date("Y-m-d H:i:s");
|
|
69
|
|
- $this->repository->update($id,$data);
|
|
|
69
|
+ $this->repository->update($id, $data);
|
|
|
70
|
+ $this->repository->reply($id, 0,$data['reply']);
|
|
70
|
71
|
return app('json')->success('回复成功');
|
|
71
|
72
|
}
|
|
72
|
73
|
|