1、获取数组形式参数的方法
2、更新内核路由类
This commit is contained in:
@@ -103,7 +103,7 @@ class Action extends Admin {
|
||||
* @author colin <colin@tensent.cn>
|
||||
*/
|
||||
public function del(){
|
||||
$id = array_unique((array)$this->param['id']);
|
||||
$id = $this->getArrayParam('id');
|
||||
if(empty($id)){
|
||||
return $this->error("非法操作!",'');
|
||||
}
|
||||
@@ -122,7 +122,7 @@ class Action extends Admin {
|
||||
* @author colin <colin@tensent.cn>
|
||||
*/
|
||||
public function setstatus(){
|
||||
$id = array_unique((array)$this->param['id']);
|
||||
$id = $this->getArrayParam('id');
|
||||
if(empty($id)){
|
||||
return $this->error("非法操作!",'');
|
||||
}
|
||||
@@ -189,7 +189,7 @@ class Action extends Admin {
|
||||
* @author huajie <banhuajie@163.com>
|
||||
*/
|
||||
public function dellog() {
|
||||
$id = array_unique((array)$this->param['id']);
|
||||
$id = $this->getArrayParam('id');
|
||||
if(empty($id)){
|
||||
return $this->error("非法操作!",'');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user