total_base.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?php
  2. $source = array
  3. (
  4. 0 => '其他合计',
  5. 1 => '公众号搜索',
  6. 17 => '名片分享',
  7. 30 => '扫描二维码',
  8. 43 => '图文页右上角菜单',
  9. 51 => '支付后关注',
  10. 57 => '图文页内公众号名称',
  11. 75 => '公众号文章广告',
  12. 78 => '朋友圈广告',
  13. );
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'total_base',
  18. # 显示给用户看的名称
  19. 'lang' => '统计概览',
  20. 'order' => 20,
  21. 'desc' => '请将total.cron加入到cron中',
  22. # 数据结构
  23. 'struct' => array
  24. (
  25. 'id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => 'ID',
  29. 'default' => '',
  30. 'desc' => '',
  31. 'match' => 'is_numeric',
  32. //'search' => 'order',
  33. 'order' => 'desc',
  34. //'list' => true,
  35. ),
  36. 'project_id' => array
  37. (
  38. 'type' => 'int-11',
  39. 'name' => '项目',
  40. 'default' => '',
  41. 'desc' => '请输入项目',
  42. 'match' => 'is_numeric',
  43. 'list' => 'Dever::load("main/project-one#name", {project_id})',
  44. ),
  45. 'day' => array
  46. (
  47. 'type' => 'varchar-60',
  48. 'name' => '统计日期',
  49. 'default' => '',
  50. 'desc' => '统计日期',
  51. 'match' => 'is_string',
  52. 'update' => 'text',
  53. 'search' => 'fulltext',
  54. 'list' => true,
  55. ),
  56. 'daynum' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '统计日期',
  60. 'default' => '',
  61. 'desc' => '统计日期',
  62. 'match' => 'is_numeric',
  63. 'update' => 'text',
  64. //'search' => 'time',
  65. //'list' => true,
  66. ),
  67. /*
  68. 'user_source' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '用户的渠道',
  72. 'default' => '0',
  73. 'match' => '用户的渠道',
  74. 'match' => 'is_numeric',
  75. 'update' => 'select',
  76. 'option' => $source,
  77. 'list' => true,
  78. ),
  79. */
  80. 'new_user' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => '新增的用户数量',
  84. 'default' => '0',
  85. 'match' => '新增的用户数量',
  86. 'match' => 'is_numeric',
  87. 'update' => 'text',
  88. 'list' => true,
  89. ),
  90. 'cancel_user' => array
  91. (
  92. 'type' => 'int-11',
  93. 'name' => '取消关注的用户数量',
  94. 'default' => '0',
  95. 'match' => '取消关注的用户数量',
  96. 'match' => 'is_numeric',
  97. 'update' => 'text',
  98. 'list' => true,
  99. ),
  100. 'user' => array
  101. (
  102. 'type' => 'int-11',
  103. 'name' => '净增用户数量',
  104. 'default' => '0',
  105. 'match' => '净增用户数量',
  106. 'match' => 'is_numeric',
  107. 'update' => 'text',
  108. 'list' => true,
  109. ),
  110. 'cumulate_user' => array
  111. (
  112. 'type' => 'int-11',
  113. 'name' => '总用户量',
  114. 'default' => '0',
  115. 'match' => '总用户量',
  116. 'match' => 'is_numeric',
  117. 'update' => 'text',
  118. 'list' => true,
  119. ),
  120. 'int_page_read_user' => array
  121. (
  122. 'type' => 'int-11',
  123. 'name' => '图文页的阅读人数',
  124. 'default' => '0',
  125. 'match' => '图文页的阅读人数',
  126. 'match' => 'is_numeric',
  127. 'update' => 'text',
  128. 'list' => true,
  129. ),
  130. 'int_page_read_count' => array
  131. (
  132. 'type' => 'int-11',
  133. 'name' => '图文页的阅读次数',
  134. 'default' => '0',
  135. 'match' => '图文页的阅读次数',
  136. 'match' => 'is_numeric',
  137. 'update' => 'text',
  138. 'list' => true,
  139. ),
  140. 'ori_page_read_user' => array
  141. (
  142. 'type' => 'int-11',
  143. 'name' => '原文页的阅读人数',
  144. 'default' => '0',
  145. 'match' => '原文页的阅读人数',
  146. 'match' => 'is_numeric',
  147. 'update' => 'text',
  148. 'list' => true,
  149. ),
  150. 'ori_page_read_count' => array
  151. (
  152. 'type' => 'int-11',
  153. 'name' => '原文页的阅读次数',
  154. 'default' => '0',
  155. 'match' => '原文页的阅读次数',
  156. 'match' => 'is_numeric',
  157. 'update' => 'text',
  158. 'list' => true,
  159. ),
  160. 'share_user' => array
  161. (
  162. 'type' => 'int-11',
  163. 'name' => '分享的人数',
  164. 'default' => '0',
  165. 'match' => '分享的人数',
  166. 'match' => 'is_numeric',
  167. 'update' => 'text',
  168. 'list' => true,
  169. ),
  170. 'share_count' => array
  171. (
  172. 'type' => 'int-11',
  173. 'name' => '分享的次数',
  174. 'default' => '0',
  175. 'match' => '分享的次数',
  176. 'match' => 'is_numeric',
  177. 'update' => 'text',
  178. 'list' => true,
  179. ),
  180. 'add_to_fav_user' => array
  181. (
  182. 'type' => 'int-11',
  183. 'name' => '收藏的人数',
  184. 'default' => '0',
  185. 'match' => '收藏的人数',
  186. 'match' => 'is_numeric',
  187. 'update' => 'text',
  188. 'list' => true,
  189. ),
  190. 'add_to_fav_count' => array
  191. (
  192. 'type' => 'int-11',
  193. 'name' => '收藏的次数',
  194. 'default' => '0',
  195. 'match' => '收藏的次数',
  196. 'match' => 'is_numeric',
  197. 'update' => 'text',
  198. 'list' => true,
  199. ),
  200. 'state' => array
  201. (
  202. 'type' => 'tinyint-1',
  203. 'name' => '状态',
  204. 'default' => '1',
  205. 'desc' => '请选择状态',
  206. 'match' => 'is_numeric',
  207. ),
  208. 'cdate' => array
  209. (
  210. 'type' => 'int-11',
  211. 'name' => '录入时间',
  212. 'match' => array('is_numeric', time()),
  213. 'desc' => '',
  214. # 只有insert时才生效
  215. 'insert' => true,
  216. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  217. ),
  218. ),
  219. 'manage' => array
  220. (
  221. 'insert' => false,
  222. 'edit' => false,
  223. 'delete' => false,
  224. 'excel' => true,
  225. 'button' => array
  226. (
  227. '下载昨日统计报表' => array('location', 'service/total.out'),
  228. ),
  229. ),
  230. 'request' => array
  231. (
  232. 'getData' => array
  233. (
  234. # 匹配的正则或函数 选填项
  235. 'option' => array
  236. (
  237. 'day' => 'yes',
  238. 'project_id' => array('yes', 'in'),
  239. 'state' => 1,
  240. ),
  241. 'type' => 'all',
  242. 'col' => '*',
  243. ),
  244. ),
  245. );