From 307ed3d7896b40e006b429bd0a5d505498f79d2a Mon Sep 17 00:00:00 2001 From: LessCodeToDoMore <2506505996@qq.com> Date: Wed, 7 Nov 2018 20:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';