|
@@ -168,7 +168,7 @@ class User extends Frontend{
|
|
|
*/
|
|
*/
|
|
|
function material(){
|
|
function material(){
|
|
|
$lists=db('material')->where(['status'=>1])
|
|
$lists=db('material')->where(['status'=>1])
|
|
|
- ->order('create_time desc')
|
|
|
|
|
|
|
+ ->order('create_time desc,id desc')
|
|
|
->limit(100)
|
|
->limit(100)
|
|
|
->select();
|
|
->select();
|
|
|
if($lists){
|
|
if($lists){
|