Browse Source

change api/ls request method to post

master
filesite 2 years ago
parent
commit
3323ba81d5
  1. 2
      controller/ApiController.php

2
controller/ApiController.php

@ -98,7 +98,7 @@ Class ApiController extends Controller {
} }
$cateId = $this->get('id', $menus[0]['id']); $cateId = $this->post('id', $menus[0]['id']);
if (empty($scanResults[$cateId])) { if (empty($scanResults[$cateId])) {
$err = "目录ID {$cateId} 不存在!"; $err = "目录ID {$cateId} 不存在!";
return $this->renderJson(compact('code', 'msg', 'err', 'data'), $this->httpStatus['notFound']); return $this->renderJson(compact('code', 'msg', 'err', 'data'), $this->httpStatus['notFound']);

Loading…
Cancel
Save