🐛 修复 BUG

This commit is contained in:
WispX
2020-03-17 14:27:36 +08:00
parent dd927972af
commit d90cacb33a
3 changed files with 5 additions and 33 deletions
+4 -4
View File
@@ -26,15 +26,15 @@ class Image extends Base
public function find()
{
$id = $this->param('id');
$id = $this->request->request('id');
$image = $this->model->where(['id' => $id])->find();
$this->response('success', $this->parseData($image));
}
public function items()
{
$page = $this->param('page', 1);
$rows = $this->param('rows', 20);
$page = $this->request->request('page', 1);
$rows = $this->request->request('rows', 20);
$images = $this->model->paginate(null, false, [
'page' => $page,
'list_rows' => $rows,
@@ -49,7 +49,7 @@ class Image extends Base
public function delete()
{
$user = new User();
$data = str_replace('', ',', $this->param('id'));
$data = str_replace('', ',', $this->request->request('id'));
if (strpos($data, ',') !== false) {
$data = explode(',', $data);
}