reflux.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. $type = array
  3. (
  4. 1 => '微信',
  5. 2 => '微博',
  6. );
  7. $project = function()
  8. {
  9. $array = array();
  10. $info = Dever::load('token/project-state');
  11. if($info)
  12. {
  13. $array += $info;
  14. }
  15. return $array;
  16. };
  17. return array
  18. (
  19. # 表名
  20. 'name' => 'reflux',
  21. # 显示给用户看的名称
  22. 'lang' => '回流列表',
  23. 'order' => 80,
  24. # 数据结构
  25. 'struct' => array
  26. (
  27. 'id' => array
  28. (
  29. 'type' => 'int-11',
  30. 'name' => 'ID',
  31. 'default' => '',
  32. 'desc' => '',
  33. 'match' => 'is_numeric',
  34. 'search' => 'order',
  35. 'list' => true,
  36. ),
  37. 'project_id' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => '项目',
  41. 'default' => '',
  42. 'desc' => '请输入项目',
  43. 'match' => 'is_numeric',
  44. 'option' => $project,
  45. 'list' => true,
  46. ),
  47. 'uid' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '用户ID',
  51. 'default' => '-1',
  52. 'desc' => '用户ID',
  53. 'match' => 'is_numeric',
  54. 'update' => 'text',
  55. //'list' => true,
  56. ),
  57. 'url' => array
  58. (
  59. 'type' => 'varchar-300',
  60. 'name' => '分享地址',
  61. 'default' => '',
  62. 'desc' => '分享地址',
  63. 'match' => 'is_string',
  64. 'update' => 'text',
  65. 'search' => 'fulltext',
  66. 'list' => true,
  67. ),
  68. 'ua' => array
  69. (
  70. 'type' => 'varchar-800',
  71. 'name' => '用户ua数据',
  72. 'default' => '',
  73. 'desc' => '用户ua数据',
  74. 'match' => 'option',
  75. 'update' => 'textarea',
  76. 'list' => true,
  77. 'modal' => '查看详情',
  78. ),
  79. 'param' => array
  80. (
  81. 'type' => 'varchar-800',
  82. 'name' => '回流参数',
  83. 'default' => '',
  84. 'desc' => '回流参数',
  85. 'match' => 'option',
  86. 'update' => 'textarea',
  87. 'list' => true,
  88. 'modal' => '查看详情',
  89. ),
  90. 'state' => array
  91. (
  92. 'type' => 'tinyint-1',
  93. 'name' => '状态',
  94. 'default' => '1',
  95. 'desc' => '请选择状态',
  96. 'match' => 'is_numeric',
  97. ),
  98. 'cdate' => array
  99. (
  100. 'type' => 'int-11',
  101. 'name' => '更新时间',
  102. 'match' => array('is_numeric', time()),
  103. 'desc' => '',
  104. 'default' => '',
  105. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  106. ),
  107. ),
  108. 'manage' => array
  109. (
  110. 'delete' => false,
  111. 'insert' => false,
  112. 'edit' => false,
  113. # 开启批量管理
  114. //'mul' => true,
  115. ),
  116. );