123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- <?php
- $ios_pay = array
- (
- 1 => '关闭小程序支付',
- 2 => '开启公众号支付',
- 3 => '开启小程序支付',
- );
- $video = array
- (
- 1 => '显示',
- 2 => '不显示',
- );
- return array
- (
- # 表名
- 'name' => 'config',
- # 显示给用户看的名称
- 'lang' => '基础设置',
- 'order' => 100,
- 'menu' => 'manage',
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => '系统ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- ),
-
- 'hr1' => array
- (
- 'name' => '通用设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
-
-
- 'name' => array
- (
- 'type' => 'varchar-32',
- 'name' => '系统名称',
- 'default' => '',
- 'desc' => '请输入系统名称',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
-
- 'info' => array
- (
- 'type' => 'text-255',
- 'name' => '系统介绍',
- 'default' => '',
- 'desc' => '请输入系统介绍',
- 'match' => 'option',
- 'update' => 'textarea',
- ),
- 'logo' => array
- (
- 'type' => 'varchar-150',
- 'name' => 'logo图片',
- 'default' => '',
- 'desc' => 'logo图片',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '1',
- 'place' => '150',
- ),
- 'hr3' => array
- (
- 'name' => '小程序支付设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'ios_pay' => array
- (
- 'type' => 'int-11',
- 'name' => 'ios支付设置',
- 'default' => '1',
- 'desc' => 'ios支付设置',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $ios_pay,
- ),
- 'ios_pay_pic' => array
- (
- 'type' => 'varchar-150',
- 'name' => 'ios支付引导图-ios支付引导图',
- 'default' => '',
- 'desc' => 'ios支付引导图',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '1',
- 'place' => '150',
- //直接上传到云端
- //'upload' => 'qiniu',
- //上传大数据
- //'large' => true,
- ),
- 'hr4' => array
- (
- 'name' => '公众号支付设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'service_name' => array
- (
- 'type' => 'varchar-100',
- 'name' => '公众号名称',
- 'default' => '',
- 'desc' => '公众号名称',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'service_text' => array
- (
- 'type' => 'varchar-100',
- 'name' => '公众号支付成功时的小程序名称',
- 'default' => 'Jstyle精美电子刊',
- 'desc' => '公众号支付成功时的小程序名称',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
- 'hr5' => array
- (
- 'name' => '视频设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'video' => array
- (
- 'type' => 'int-11',
- 'name' => '是否显示视频',
- 'default' => '1',
- 'desc' => '是否显示视频',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $video,
- ),
- 'version' => array
- (
- 'type' => 'varchar-100',
- 'name' => '版本号',
- 'default' => '',
- 'desc' => '版本号',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'hr6' => array
- (
- 'name' => '试用设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'try_desc' => array
- (
- 'type' => 'text-255',
- 'name' => '试用说明',
- 'default' => '',
- 'desc' => '试用说明',
- 'match' => 'option',
- 'update' => 'editor',
- 'key' => 1,
- ),
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '录入时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
- # 只有insert时才生效
- 'insert' => true,
- ),
- ),
- 'default' => array
- (
- 'col' => 'name,info,cdate',
- 'value' => array
- (
- '"火星电子刊内容平台","火星电子刊内容平台",' . time(),
- ),
- ),
- /*
- 'alter' => array
- (
- 2 => array
- (
- array('update', 'task_id', 'task_id', 'varchar-800 软装任务链接'),
- //array('add', 'config', 'config', 'int-11 1 配置'),
- ),
- 'version' => 2,
- ),
- */
- 'manage' => array
- (
- # 后台管理不要列表页
- 'list' => 'update',
- ),
- );
|