ソースを参照

排序功能的bug

LessCodeToDoMore 7 年 前
コミット
d2c5dfbf0f
1 ファイル変更2 行追加2 行削除
  1. 2 2
      application/admin/controller/Ajax.php

+ 2 - 2
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';