user_report.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php
  2. $status = array
  3. (
  4. 1 => '待审核',
  5. 2 => '审核通过',
  6. 3 => '审核未通过',
  7. );
  8. $score_status = array
  9. (
  10. 1 => '未入账',
  11. 2 => '已入账',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'user_report',
  17. # 显示给用户看的名称
  18. 'lang' => '用户报告',
  19. 'menu' => 'passport',
  20. 'order' => 99,
  21. 'status' => $status,
  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. 'uid' => array
  37. (
  38. 'type' => 'int-11',
  39. 'name' => '用户名',
  40. 'default' => '',
  41. 'desc' => '用户名',
  42. 'match' => 'is_numeric',
  43. //'update' => 'text',
  44. 'search' => array
  45. (
  46. 'api' => 'passport/user-all',
  47. 'col' => 'username',
  48. 'result' => 'id',
  49. ),
  50. 'list' => 'Dever::load("passport/user-one#username", {uid})',
  51. ),
  52. 'task_id' => array
  53. (
  54. 'type' => 'int-11',
  55. 'name' => '任务名',
  56. 'default' => '-1',
  57. 'desc' => '任务名',
  58. 'match' => 'is_numeric',
  59. //'update' => 'select',
  60. 'search' => array
  61. (
  62. 'api' => 'task/info-all',
  63. 'col' => 'name',
  64. 'result' => 'id',
  65. ),
  66. 'list' => '{task_id} > 0 ? Dever::load("task/info-one#name", {task_id}) : "系统"',
  67. ),
  68. 'username' => array
  69. (
  70. 'type' => 'varchar-100',
  71. 'name' => '账号名',
  72. 'default' => '',
  73. 'desc' => '账号名',
  74. 'match' => 'is_string',
  75. 'update' => 'text',
  76. 'list_name' => '报告信息',
  77. 'list' => 'Dever::load("task/lib/manage.report", {id})',
  78. ),
  79. 'pic' => array
  80. (
  81. 'type' => 'text-255',
  82. 'name' => '任务截屏',
  83. 'default' => '',
  84. 'desc' => '任务截屏',
  85. 'match' => 'is_string',
  86. 'update' => 'images',
  87. 'key' => '1',
  88. 'place' => '150',
  89. ),
  90. 'link' => array
  91. (
  92. 'type' => 'varchar-100',
  93. 'name' => '链接',
  94. 'default' => '',
  95. 'desc' => '请输入链接',
  96. 'match' => 'is_string',
  97. 'update' => 'text',
  98. 'list' => true,
  99. ),
  100. 'desc' => array
  101. (
  102. 'type' => 'varchar-800',
  103. 'name' => '文字说明',
  104. 'default' => '',
  105. 'desc' => '文字说明',
  106. 'match' => 'option',
  107. 'update' => 'textarea',
  108. ),
  109. 'status' => array
  110. (
  111. 'type' => 'tinyint-1',
  112. 'name' => '审核状态',
  113. 'default' => '1',
  114. 'desc' => '审核状态',
  115. 'match' => 'is_numeric',
  116. 'update' => 'select',
  117. 'option' => $status,
  118. 'search' => 'select',
  119. 'list' => true,
  120. //'edit' => true,
  121. ),
  122. 'status_desc' => array
  123. (
  124. 'type' => 'varchar-300',
  125. 'name' => '审核说明',
  126. 'default' => '',
  127. 'desc' => '请输入审核说明',
  128. 'match' => 'option',
  129. 'update' => 'textarea',
  130. ),
  131. 'score' => array
  132. (
  133. 'type' => 'int-11',
  134. 'name' => '积分',
  135. 'default' => '',
  136. 'desc' => '积分',
  137. 'match' => 'is_numeric',
  138. 'update' => 'text',
  139. ),
  140. 'group_score' => 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. 'score_status' => array
  151. (
  152. 'type' => 'tinyint-1',
  153. 'name' => '是否入账',
  154. 'default' => '1',
  155. 'desc' => '是否入账',
  156. 'match' => 'is_numeric',
  157. 'update' => 'select',
  158. 'option' => $score_status,
  159. 'search' => 'select',
  160. 'list' => true,
  161. ),
  162. 'state' => array
  163. (
  164. 'type' => 'tinyint-1',
  165. 'name' => '状态',
  166. 'default' => '1',
  167. 'desc' => '请选择状态',
  168. 'match' => 'is_numeric',
  169. ),
  170. 'cdate' => array
  171. (
  172. 'type' => 'int-11',
  173. 'name' => '领取时间',
  174. 'match' => array('is_numeric', time()),
  175. 'desc' => '',
  176. # 只有insert时才生效
  177. 'insert' => true,
  178. 'search' => 'date',
  179. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  180. ),
  181. ),
  182. 'manage' => array
  183. (
  184. 'insert' => false,
  185. 'edit' => false,
  186. 'delete' => false,
  187. # page_type = 1
  188. 'page_list_table' => 'photo',
  189. 'photo' => 'task/lib/manage.report_photo',
  190. # 快捷更新
  191. 'list_button' => array
  192. (
  193. 'edit' => array('审核', 'status,status_desc'),
  194. ),
  195. ),
  196. 'request' => array
  197. (
  198. 'getAll' => array
  199. (
  200. # 匹配的正则或函数 选填项
  201. 'option' => array
  202. (
  203. 'uid' => 'yes',
  204. 'status' => 'yes',
  205. 'state' => 1,
  206. ),
  207. 'type' => 'all',
  208. 'order' => array('cdate' => 'desc'),
  209. 'page' => array(15, 'list'),
  210. 'col' => '*',
  211. ),
  212. )
  213. );