dever 4 years ago
parent
commit
8f022f585f
2 changed files with 5 additions and 2 deletions
  1. 2 2
      app/collection/database/times.php
  2. 3 0
      app/collection/src/Api.php

+ 2 - 2
app/collection/database/times.php

@@ -52,7 +52,7 @@ return array
 		'year'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '年份-影响当前时光下所有发布内容的时间',
+			'name' 		=> '开始年份-影响当前时光下所有发布内容的时间,如果用户未选择时间,则自动使用开始年份作为时间的年份',
 			'default' 	=> '',
 			'desc' 		=> '年份',
 			'match' 	=> 'is_numeric',
@@ -65,7 +65,7 @@ return array
 		'end_year'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '结束年份-如果年份是区间时,可以填写结束年份,上述年份就是开始年份,结束年份仅影响用户自行选择的年份',
+			'name' 		=> '结束年份-影响当前时光下所有发布内容的时间',
 			'default' 	=> '',
 			'desc' 		=> '年份',
 			'match' 	=> 'option',

+ 3 - 0
app/collection/src/Api.php

@@ -439,6 +439,9 @@ class Api extends Core
             foreach ($data['times'] as $k => $v) {
                 $where['times_id'] = $v['id'];
                 $data['times'][$k]['child'] = Dever::db('collection/times')->child($where);
+                foreach ($data['times'][$k]['child'] as $k1 => $v1) {
+                    $data['times'][$k]['child'][$k1]['visible'] = false;
+                }
             }
         }