完善接口和后台页面
This commit is contained in:
@@ -17,8 +17,8 @@ class Notice extends MobileBase
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
$page = $this->intValue($request->get('page', 1), 1);
|
||||
$pageSize = $this->intValue($request->get('page_size', 20), 20);
|
||||
$page = $this->intValue($request->input('page', 1), 1);
|
||||
$pageSize = $this->intValue($request->input('page_size', 20), 20);
|
||||
|
||||
$paginate = OperationNotice::where('status', 1)->order('id', 'desc')->paginate([
|
||||
'page' => $page,
|
||||
@@ -55,7 +55,7 @@ class Notice extends MobileBase
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
$id = $this->intValue($request->get('id', 0), 0);
|
||||
$id = $this->intValue($request->input('notice_id', 0), 0);
|
||||
if ($id < 1) {
|
||||
return $this->mobileError(1001, 'Missing parameters');
|
||||
}
|
||||
@@ -79,7 +79,7 @@ class Notice extends MobileBase
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
$noticeId = $this->intValue($request->post('notice_id', 0), 0);
|
||||
$noticeId = $this->intValue($request->input('notice_id', 0), 0);
|
||||
if ($noticeId < 1) {
|
||||
return $this->mobileError(1001, 'Missing parameters');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user