chuweiqiang hace 1 año
padre
commit
d33b916f4b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/api/controller/Certificate.php

+ 1 - 1
application/api/controller/Certificate.php

@@ -42,7 +42,7 @@ class Certificate extends Api
         $CertificateModel = new CertificateModel();
         $list = $CertificateModel->where($where)->where('is_deleted',1)->with(['goods'=>function($query){
             $query->field('id,title,image');
-        }])->where('user_id',$uid)->paginate([
+        }])->where('user_id',$uid)->order('id','desc')->paginate([
             'list_rows'=> $limit,
             'page' => $page,
         ]);