dever 2 years ago
parent
commit
772a6306d2
3 changed files with 9 additions and 4 deletions
  1. 3 1
      app/course/database/info.php
  2. 3 2
      app/course/database/teacher.php
  3. 3 1
      app/news/database/info.php

+ 3 - 1
app/course/database/info.php

@@ -180,9 +180,11 @@ return array
 		'cdate'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '录入时间',
+			'name' 		=> '发布时间',
 			'match' 	=> array('is_numeric', time()),
 			'desc' 		=> '',
+			'update'    => 'date',
+            'callback'  => 'maketime',
 			# 只有insert时才生效
 			'insert'	=> true,
 		),

+ 3 - 2
app/course/database/teacher.php

@@ -114,12 +114,13 @@ return array
 		'cdate'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '录入时间',
+			'name' 		=> '发布时间',
 			'match' 	=> array('is_numeric', time()),
 			'desc' 		=> '',
+			'update'    => 'date',
+            'callback'  => 'maketime',
 			# 只有insert时才生效
 			'insert'	=> true,
-			'list'		=> 'date("Y-m-d H:i:s", {cdate})',
 		),
 	),
 

+ 3 - 1
app/news/database/info.php

@@ -182,9 +182,11 @@ return array
 		'cdate'		=> array
 		(
 			'type' 		=> 'int-11',
-			'name' 		=> '录入时间',
+			'name' 		=> '发布时间',
 			'match' 	=> array('is_numeric', time()),
 			'desc' 		=> '',
+			'update'    => 'date',
+            'callback'  => 'maketime',
 			# 只有insert时才生效
 			'insert'	=> true,
 		),