<?php
$channel_id = Dever::input('field')['param']['set']['channel_id'] ?? 0;
return array
(
    'update' => array
    (
        'field'    => array
        (
            'channel_id' => array
            (
                'type' => 'hidden',
            ),
            'seller_id' => array
            (
                'desc' => '请选择要分配卡密的商户，上传后将自动分配给这个商户，如未选择，则为通用卡密，任何商户都可以购买',
                'option'     => 'Dever::load("seller/manage")->getList('.$channel_id.')',
            ),
            'goods' => array
            (
                # 数据来源
                'name' => '商品',
                'type' => 'cascader',
                'option'    => 'Dever::load("goods/manage")->getGoods("km")',
                'rules' => true,
            ),
            'file' => array
            (
                'type' => 'upload',
                # 这里传入上传规则id
                'upload' => '4',
                # 如果上传规则是上传到云端，配置了这个将直接上传至云端，不做本地上传
                'yun' => false,
                # 是否支持多选
                'multiple' => false,
            ),
        ),
        'start' => 'channel/manage.uploadCard',
    ),
);