排序功能的bug

pull/84/head
LessCodeToDoMore 2018-11-07 19:51:32 +08:00
parent a7407ce069
commit d2c5dfbf0f
1 changed files with 2 additions and 2 deletions

View File

@ -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';