chuweiqiang 1 年之前
父節點
當前提交
d33b916f4b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,
         ]);