fix: 修复HTTP一处获取参数bug

This commit is contained in:
Ying
2023-07-11 10:50:22 +08:00
parent 550403b9ab
commit c0bc6c25e7
2 changed files with 10 additions and 4 deletions

View File

@@ -314,7 +314,7 @@ class BaseController
*/
public function export(): Response
{
// if (\request()->isAjax()) {
if (\request()->isAjax()) {
// 获取分页
$page = input('page', 1);
@@ -338,9 +338,9 @@ class BaseController
$downUrl = str_replace(public_path(), '', $filePath);
return $this->success('导出成功!', $downUrl);
// }
}
// return $this->error('非法请求!');
return $this->error('非法请求!');
}
/**