标签:数字 范围 data strong inpu err NPU laravel size
public function orderList()
{
$rules = [
‘order_status‘ => ‘required|integer|in:1,2,3,4,5‘,
‘page‘ => ‘required|integer|min:1‘,
‘per_page‘ => ‘required|integer|min:1|max:10‘
];
if ($error = $this->validateInput($rules)) {
return $error;
}
$data = WxApp::orderList($this->validated);
return $this->json($data);
}
标签:数字 范围 data strong inpu err NPU laravel size
原文地址:https://www.cnblogs.com/coder1013/p/13121322.html