wesmiler 2 lat temu
rodzic
commit
9e26d25011
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Services/Api/ArticleService.php

+ 1 - 1
app/Services/Api/ArticleService.php

@@ -173,7 +173,7 @@ class ArticleService extends BaseService
 
         $info = $this->model->where(['id'=> $id,'status'=>1,'mark'=>1])
             ->where(function($query) {
-                $query->where('publish_at','<=', date('Y-m-d H:i:s'))->orWhereNull('publish_at');
+                $query->where('publish_at','<=', date('Y-m-d H:i:s'));
             })
             ->select($field)
             ->first();