<?php
$field = Dever::input('field');
if ($field == 'dever_video') {
    $check = true;
    $data_id = 'info_data_id';
    $source = 'source/info_data_value';
    $video = include('info_data_video.php');
    $update = $video['update'];
    $update['field']['vid'] = '';

} else {
    
    $update = array
    (
        'field'    => array
        (
            'info_data_id' => array
            (
                'type' => 'hidden',
            ),
            'value' => array
            (
                'name' => '文件',
                'type' => 'upload',
                'upload' => 8,
                'yun' => true,
                'limit' => 1,
                'multiple' => false,
                'tip' => '',
                'style' => 'input',
                'upload_name' => 'name',
            ),
            'name' => array
            (
                'name' => '名称',
            ),
            'content' => array
            (
                'name' => '内容',
                'type' => 'textarea',
            ),
            'video' => array
            (
                'type' => 'radio',
                'desc' => '保存后，将自动处理视频，如果对处理结果不满意，可以重新处理',
            ),
            'sort' => array
            (
                
            ),
        ),
        'start' => 'source/datavalue.updateStart',
        'end' => 'source/datavalue.updateEnd',
    );

    if ($field == 'dever_info') {
        unset($update['field']['video']);
    }
}
return array
(
    'source' => 'source/info_data_value',
    'update' => $update,
);