wesmiler 2 年之前
父節點
當前提交
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();