dever 4 years ago
parent
commit
2e414ec709
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/content/database/news.php

+ 4 - 0
app/content/database/news.php

@@ -1,5 +1,6 @@
 <?php
 
+$time = time();
 $status = array
 (
     1 => '已发布',
@@ -337,6 +338,7 @@ return array
             (
                 'ids' => array('yes-id', 'in'),
                 'name' => array('yes', 'like'),
+                'pdate' => array($time, '<='),
                 'id' => 'yes',
                 'type' => 'yes',
                 'status' => 1,
@@ -355,6 +357,7 @@ return array
             (
                 'ids' => array('yes-id', 'in'),
                 'name' => array('yes', 'like'),
+                'pdate' => array($time, '<='),
                 'id' => 'yes',
                 'type' => 'yes',
                 'status' => 1,
@@ -372,6 +375,7 @@ return array
                 'type' => 'yes',
                 'name' => array('yes', 'like', 'and('),
                 'tag' => array('yes', 'like', 'or)'),
+                'pdate' => array($time, '<='),
                 'status' => 1,
                 'state' => 1,
             ),