chuweiqiang 1 year ago
parent
commit
ab55c6fe3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Certificate.php

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

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