🐛 修复 BUG

This commit is contained in:
WispX
2020-03-17 14:36:38 +08:00
parent 767f6a49df
commit 8a27933d44
+4 -2
View File
@@ -26,8 +26,10 @@ class Image extends Base
public function find()
{
$id = $this->request->request('id');
$image = $this->model->where(['id' => $id])->find();
$id = $this->request->post('id');
if (!$image = $this->model->where('id', $id)->find()) {
$this->response('未找到该图片数据', [], 500);
}
$this->response('success', $this->parseData($image));
}