xielin 5 anni fa
parent
commit
833243185c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Repositories/MetaRepository.php

+ 1 - 1
app/Repositories/MetaRepository.php

@@ -31,7 +31,7 @@ class MetaRepository {
     }
     //详情
     public function view($request){
-        return $this->meta->where(['id'=>$request['patch_num']])->first();
+        return $this->meta->where([['id','=',$request['patch_num']],['status','=',1]])->first();
     }
     //创建
     public function create($request){