mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update ShopOrder.php
This commit is contained in:
parent
e8ec5a846d
commit
22a4d0c8a5
@ -73,12 +73,7 @@ class ShopOrder extends Controller
|
||||
$query->where(['status' => $this->type]);
|
||||
}
|
||||
// 分页排序处理
|
||||
$query->where(['deleted' => 0])->order('id desc');
|
||||
if (input('output') === 'json') {
|
||||
$this->success('获取数据成功', $query->page(true, false));
|
||||
} else {
|
||||
$query->page();
|
||||
}
|
||||
$query->where(['deleted' => 0])->order('id desc')->page();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user