wesmiler 2 лет назад
Родитель
Сommit
9e26d25011
1 измененных файлов с 1 добавлено и 1 удалено
  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();