dever 5 years ago
parent
commit
bfd220183f
2 changed files with 4 additions and 1 deletions
  1. 2 1
      database/info.php
  2. 2 0
      lib/Info.php

+ 2 - 1
database/info.php

@@ -50,6 +50,7 @@ $config = array
 	'lang' => '商品列表',
 	'order' => 200,
 	'auto' => 10000000,
+	'config_type' => $type,
 
 	'end' => array
 	(
@@ -285,7 +286,7 @@ $config = array
 		(
 			'type' 		=> 'tinyint-1',
 			'name' 		=> '审核',
-			'default' 	=> '2',
+			'default' 	=> '1',
 			'desc' 		=> '审核',
 			'match' 	=> 'is_numeric',
 			//'update'	=> 'select',

+ 2 - 0
lib/Info.php

@@ -310,6 +310,8 @@ class Info
             );
             $info['price']['max'] = array();
         }
+
+        $info['type_name'] = Dever::db('goods/info')->config['config_type'][$info['type']];
        
         if (isset($info['cdate']) && $info['cdate']) {
             $info['cdate_string'] = Dever::mdate($info['cdate'], 2);