rabin hace 5 años
padre
commit
419deb90af
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  1. 9 0
      database/attr.php
  2. 1 1
      src/Api.php

+ 9 - 0
database/attr.php

@@ -73,6 +73,15 @@ return array
 			'desc' 		=> '属性值设置',
 			'match' 	=> 'option',
 		),
+
+		'state'		=> array
+		(
+			'type' 		=> 'tinyint-1',
+			'name' 		=> '状态',
+			'default' 	=> '1',
+			'desc' 		=> '请选择状态',
+			'match' 	=> 'is_numeric',
+		),
 		
 		'cdate'		=> array
 		(

+ 1 - 1
src/Api.php

@@ -25,7 +25,7 @@ class Api
      */
     public function get()
     {
-        $column = Dever::input('column', 1);
+        $column = Dever::input('column');
         if ($column > 0) {
             $where['column_id'] = $column;
         }