|  | @@ -115,15 +115,16 @@ return array
 | 
											
												
													
														|  |              'list'      => true,
 |  |              'list'      => true,
 | 
											
												
													
														|  |          ),
 |  |          ),
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        'birth'      => array
 |  | 
 | 
											
												
													
														|  | 
 |  | +        'bdate'      => array
 | 
											
												
													
														|  |          (
 |  |          (
 | 
											
												
													
														|  |              'type'      => 'int-11',
 |  |              'type'      => 'int-11',
 | 
											
												
													
														|  |              'name'      => '出生日期-将根据出生日期计算年龄,为空则展示不详',
 |  |              'name'      => '出生日期-将根据出生日期计算年龄,为空则展示不详',
 | 
											
												
													
														|  |              'default'   => '',
 |  |              'default'   => '',
 | 
											
												
													
														|  |              'desc'      => '出生日期',
 |  |              'desc'      => '出生日期',
 | 
											
												
													
														|  |              'match'     => 'is_numeric',
 |  |              'match'     => 'is_numeric',
 | 
											
												
													
														|  | -            'update'    => 'date',
 |  | 
 | 
											
												
													
														|  | -            'list'      => 'date("Y-m-d H:i:s", {birth})',
 |  | 
 | 
											
												
													
														|  | 
 |  | +            'callback'  => 'maketime',
 | 
											
												
													
														|  | 
 |  | +            'update'    => 'time',
 | 
											
												
													
														|  | 
 |  | +            'list'      => 'date("Y-m-d", {bdate})',
 | 
											
												
													
														|  |          ),
 |  |          ),
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          'city'      => array
 |  |          'city'      => array
 | 
											
										
											
												
													
														|  | @@ -213,10 +214,10 @@ return array
 | 
											
												
													
														|  |          (
 |  |          (
 | 
											
												
													
														|  |              'type'      => 'int-11',
 |  |              'type'      => 'int-11',
 | 
											
												
													
														|  |              'name'      => '初登场时间',
 |  |              'name'      => '初登场时间',
 | 
											
												
													
														|  | -            'match'     => array('is_numeric', time()),
 |  | 
 | 
											
												
													
														|  | 
 |  | +            'match'     => 'is_numeric',
 | 
											
												
													
														|  |              'default'   => '',
 |  |              'default'   => '',
 | 
											
												
													
														|  |              'desc'      => '',
 |  |              'desc'      => '',
 | 
											
												
													
														|  | -            'update'    => 'date',
 |  | 
 | 
											
												
													
														|  | 
 |  | +            'update'    => 'time',
 | 
											
												
													
														|  |              'callback'  => 'maketime',
 |  |              'callback'  => 'maketime',
 | 
											
												
													
														|  |              //'list'        => 'date("Y-m-d H:i:s", {pdate})',
 |  |              //'list'        => 'date("Y-m-d H:i:s", {pdate})',
 | 
											
												
													
														|  |          ),
 |  |          ),
 | 
											
										
											
												
													
														|  | @@ -335,6 +336,17 @@ return array
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      ),
 |  |      ),
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    # 更新表结构
 | 
											
												
													
														|  | 
 |  | +    'alter' => array
 | 
											
												
													
														|  | 
 |  | +    (
 | 
											
												
													
														|  | 
 |  | +        2 => array
 | 
											
												
													
														|  | 
 |  | +        (
 | 
											
												
													
														|  | 
 |  | +            array('update', 'birth', 'bdate', 'int-11  出生日期'),
 | 
											
												
													
														|  | 
 |  | +            //array('add', 'config', 'config', 'int-11 1 配置'),
 | 
											
												
													
														|  | 
 |  | +        ),
 | 
											
												
													
														|  | 
 |  | +        'version' => 2,
 | 
											
												
													
														|  | 
 |  | +    ),
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      # request 请求接口定义
 |  |      # request 请求接口定义
 | 
											
												
													
														|  |      'request' => array
 |  |      'request' => array
 | 
											
												
													
														|  |      (
 |  |      (
 | 
											
										
											
												
													
														|  | @@ -382,7 +394,22 @@ return array
 | 
											
												
													
														|  |              ),
 |  |              ),
 | 
											
												
													
														|  |              'type' => 'all',
 |  |              'type' => 'all',
 | 
											
												
													
														|  |              'order' => array('shou' => 'asc', 'reorder' => 'desc', 'id' => 'desc'),
 |  |              'order' => array('shou' => 'asc', 'reorder' => 'desc', 'id' => 'desc'),
 | 
											
												
													
														|  | -            'col' => '*|shou',
 |  | 
 | 
											
												
													
														|  | 
 |  | +            'col' => '*|shou|',
 | 
											
												
													
														|  | 
 |  | +        ),
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        'getDataByCreater' => array
 | 
											
												
													
														|  | 
 |  | +        (
 | 
											
												
													
														|  | 
 |  | +            # 匹配的正则或函数 选填项
 | 
											
												
													
														|  | 
 |  | +            'option' => array
 | 
											
												
													
														|  | 
 |  | +            (
 | 
											
												
													
														|  | 
 |  | +                'creater_id' => 'yes',
 | 
											
												
													
														|  | 
 |  | +                'status' => 1,
 | 
											
												
													
														|  | 
 |  | +                'state' => 1,
 | 
											
												
													
														|  | 
 |  | +            ),
 | 
											
												
													
														|  | 
 |  | +            'type' => 'all',
 | 
											
												
													
														|  | 
 |  | +            'order' => array('reorder' => 'desc', 'id' => 'desc'),
 | 
											
												
													
														|  | 
 |  | +            'page' => array(100, 'list'),
 | 
											
												
													
														|  | 
 |  | +            'col' => '*',
 | 
											
												
													
														|  |          ),
 |  |          ),
 | 
											
												
													
														|  |      ),
 |  |      ),
 | 
											
												
													
														|  |  );
 |  |  );
 |