diff --git a/application/admin/controller/Ajax.php b/application/admin/controller/Ajax.php index 0a7a3b46..6676e801 100644 --- a/application/admin/controller/Ajax.php +++ b/application/admin/controller/Ajax.php @@ -146,8 +146,8 @@ class Ajax extends Backend //操作的数据表 $table = $this->request->post("table"); //排序的方式 - $orderway = $this->request->post("orderway"); - $orderway = strtolower($orderway) == 'asc' ? 'ASC' : 'DESC'; + $orderway = $this->request->post("orderway", "", "strtolower"); + $orderway = $orderway == 'asc' ? 'ASC' : 'DESC'; $sour = $weighdata = []; $ids = explode(',', $ids); $prikey = 'id';