| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 | 
							- <?php
 
- return array
 
- (
 
- 	# 表名
 
- 	'name' => 'total_base',
 
- 	# 显示给用户看的名称
 
- 	'lang' => '统计概览',
 
- 	'order' => 20,
 
- 	'desc' => '请将total.cron加入到cron中',
 
- 	# 数据结构
 
- 	'struct' => array
 
- 	(
 
- 		'id' 		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> 'ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '',
 
- 			'match' 	=> 'is_numeric',
 
- 			//'search'	=> 'order',
 
- 			'order'		=> 'desc',
 
- 			//'list'		=> true,
 
- 		),
 
- 		'project_id'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '项目',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '请输入项目',
 
- 			'match' 	=> 'is_numeric',
 
- 			'list'		=> 'Dever::load("token/project-one#name", {project_id})',
 
- 		),
 
- 		
 
- 		'day'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-60',
 
- 			'name' 		=> '统计日期',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '统计日期',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'search'	=> 'fulltext',
 
- 			'list'		=> true,
 
- 		),
 
- 		'daynum'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '统计日期',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '统计日期',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			//'search'	=> 'time',
 
- 			//'list'		=> true,
 
- 		),
 
- 		'session_cnt'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '打开次数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '打开次数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'visit_pv'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '访问次数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '访问次数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'visit_uv'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '访问人数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '访问人数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'visit_uv_new'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '新用户数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '新用户数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'stay_time_uv'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-30',
 
- 			'name' 		=> '人均停留时长',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '人均停留时长',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'stay_time_session'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-30',
 
- 			'name' 		=> '次均停留时长',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '次均停留时长',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'visit_depth'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-30',
 
- 			'name' 		=> '平均访问深度',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '平均访问深度',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'visit_total'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '累计用户数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '累计用户数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'share_pv'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '转发次数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '转发次数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'share_uv'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '转发人数',
 
- 			'default' 	=> '0',
 
- 			'match' 	=> '转发人数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'state'		=> array
 
- 		(
 
- 			'type' 		=> 'tinyint-1',
 
- 			'name' 		=> '状态',
 
- 			'default' 	=> '1',
 
- 			'desc' 		=> '请选择状态',
 
- 			'match' 	=> 'is_numeric',
 
- 		),
 
- 		
 
- 		'cdate'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '录入时间',
 
- 			'match' 	=> array('is_numeric', time()),
 
- 			'desc' 		=> '',
 
- 			# 只有insert时才生效
 
- 			'insert'	=> true,
 
- 			//'list'		=> 'date("Y-m-d H:i:s", {cdate})',
 
- 		),
 
- 	),
 
- 	
 
- 	'manage' => array
 
- 	(
 
- 		'insert' => false,
 
- 		'edit' => false,
 
- 		'delete' => false,
 
- 		'excel' => true,
 
- 		'button' => array
 
- 		(
 
- 			'下载昨日统计报表' => array('location', 'wechat_applet/total.out'),
 
- 		),
 
- 	),
 
- 	'request' => array
 
- 	(
 
- 		'getData' => array
 
- 		(
 
- 			# 匹配的正则或函数 选填项
 
- 			'option' => array
 
- 			(
 
- 				'day' => 'yes',
 
- 				'project_id' => array('yes', 'in'),
 
- 				'state' => 1,
 
- 			),
 
- 			'type' => 'all',
 
- 			'col' => '*',
 
- 		),
 
- 	),
 
- );
 
 
  |