From d2c5dfbf0f12813b2c282a4006bf00a738351706 Mon Sep 17 00:00:00 2001 From: LessCodeToDoMore <2506505996@qq.com> Date: Wed, 7 Nov 2018 19:51:32 +0800 Subject: [PATCH] 排序功能的bug --- 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 1bf0fe8..0a7a3b4 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", 'strtolower'); - $orderway = $orderway == 'asc' ? 'ASC' : 'DESC'; + $orderway = $this->request->post("orderway"); + $orderway = strtolower($orderway) == 'asc' ? 'ASC' : 'DESC'; $sour = $weighdata = []; $ids = explode(',', $ids); $prikey = 'id'; -- libgit2 0.24.0