|
@@ -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,
|