dever 4 năm trước cách đây
mục cha
commit
2e414ec709
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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,
             ),