user_report.php 4.7 KB

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