3)); if($info) { $array += $info; } return $array; }; $type = array ( 'developer' => '开发版', 'trial' => '体验版', 'formal' => '正式版', ); return array ( # 表名 'name' => 'subscribe_send', # 显示给用户看的名称 'lang' => '发送订阅消息', 'order' => 79, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', //'list' => true, ), 'project_id' => array ( 'type' => 'varchar-300', 'name' => '选择项目', 'default' => '', 'desc' => '选择项目', 'match' => 'is_numeric', 'list' => true, 'update' => 'checkbox', 'option' => $project, ), 'key' => array ( 'type' => 'varchar-20', 'name' => '消息key', 'default' => '', 'desc' => '消息key', 'match' => 'is_string', 'update' => 'text', 'list' => true, 'edit' => true, ), 'page' => array ( 'type' => 'varchar-200', 'name' => '页面路径', 'default' => 'pages/index/index', 'desc' => '页面路径', 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'miniprogram_state' => array ( 'type' => 'varchar-300', 'name' => '跳转小程序类型', 'default' => 'formal', 'desc' => '跳转小程序类型', 'match' => 'option', 'update' => 'radio', 'search' => 'select', 'option' => $type, 'list' => true, ), 'content' => array ( 'type' => 'text-255', 'name' => '消息内容', 'default' => '', 'desc' => '请输入内容', 'match' => 'is_string', 'update' => array ( array ( 'col' => 'key', 'name' => '标识', 'default' => '', 'desc' => '请输入标识', 'match' => 'is_string', 'update' => 'text', ), array ( 'col' => 'value', 'name' => '内容值', 'default' => '', 'desc' => '内容值', 'match' => 'is_string', 'update' => 'textarea', ), ), ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '更新时间', 'match' => array('is_numeric', time()), 'desc' => '', 'default' => '', 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), //'top' => Dever::config('base', 'wechat_applet')->top, 'manage' => array ( //'delete' => false, //'insert' => false, //'edit' => false, 'list_button' => array ( 'oper' => array('立刻发送', '"wechat_applet/subscribe.submit?id={id}"'), ), ), );