subscribe_log.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. $status = array
  3. (
  4. 1 => '发送中',
  5. 2 => '发送成功',
  6. 3 => '发送失败',
  7. );
  8. $type = array
  9. (
  10. 'developer' => '开发版',
  11. 'trial' => '体验版',
  12. 'formal' => '正式版',
  13. );
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'subscribe_log',
  18. # 显示给用户看的名称
  19. 'lang' => '订阅消息日志',
  20. 'order' => 77,
  21. # 数据结构
  22. 'struct' => array
  23. (
  24. 'id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => 'ID',
  28. 'default' => '',
  29. 'desc' => '',
  30. 'match' => 'is_numeric',
  31. 'search' => 'order',
  32. 'list' => true,
  33. ),
  34. 'project_id' => array
  35. (
  36. 'type' => 'int-11',
  37. 'name' => '项目',
  38. 'default' => '',
  39. 'desc' => '请输入项目',
  40. 'match' => 'is_numeric',
  41. 'list' => 'Dever::load("token/project-one#name", {project_id})',
  42. ),
  43. 'subscribe_id' => array
  44. (
  45. 'type' => 'int-11',
  46. 'name' => '消息id',
  47. 'default' => '',
  48. 'desc' => '消息id',
  49. 'match' => 'is_numeric',
  50. 'update' => 'text',
  51. 'list' => 'Dever::load("wechat_applet/subscribe-one#name", {subscribe_id})',
  52. ),
  53. 'touser' => array
  54. (
  55. 'type' => 'varchar-120',
  56. 'name' => '接收者',
  57. 'default' => '',
  58. 'desc' => '接收者',
  59. 'match' => 'is_string',
  60. 'update' => 'text',
  61. 'list' => true,
  62. ),
  63. 'path' => array
  64. (
  65. 'type' => 'varchar-200',
  66. 'name' => '跳转页面',
  67. 'default' => '',
  68. 'desc' => '跳转页面',
  69. 'match' => 'option',
  70. 'update' => 'textarea',
  71. //'list' => true,
  72. ),
  73. 'data' => array
  74. (
  75. 'type' => 'text-255',
  76. 'name' => '模板内容',
  77. 'default' => '',
  78. 'desc' => '模板内容',
  79. 'match' => 'option',
  80. 'update' => 'textarea',
  81. //'list' => true,
  82. ),
  83. 'miniprogram_state' => array
  84. (
  85. 'type' => 'varchar-300',
  86. 'name' => '跳转小程序类型',
  87. 'default' => 'formal',
  88. 'desc' => '跳转小程序类型',
  89. 'match' => 'option',
  90. 'update' => 'select',
  91. 'search' => 'select',
  92. 'option' => $type,
  93. 'list' => true,
  94. ),
  95. 'num' => array
  96. (
  97. 'type' => 'int-11',
  98. 'name' => '发送次数',
  99. 'default' => '0',
  100. 'desc' => '发送次数',
  101. 'match' => 'option',
  102. //'search' => 'order',
  103. 'list' => true,
  104. ),
  105. 'result' => array
  106. (
  107. 'type' => 'text-255',
  108. 'name' => '微信返回信息',
  109. 'default' => '',
  110. 'desc' => '微信返回信息',
  111. 'match' => 'option',
  112. 'update' => 'textarea',
  113. 'list' => true,
  114. 'modal' => '查看详情',
  115. ),
  116. 'status' => array
  117. (
  118. 'type' => 'tinyint-1',
  119. 'name' => '状态',
  120. 'default' => '1',
  121. 'desc' => '状态',
  122. 'match' => 'is_numeric',
  123. 'update' => 'select',
  124. 'option' => $status,
  125. 'list' => true,
  126. ),
  127. 'state' => array
  128. (
  129. 'type' => 'tinyint-1',
  130. 'name' => '状态',
  131. 'default' => '1',
  132. 'desc' => '请选择状态',
  133. 'match' => 'is_numeric',
  134. ),
  135. 'cdate' => array
  136. (
  137. 'type' => 'int-11',
  138. 'name' => '更新时间',
  139. 'match' => array('is_numeric', time()),
  140. 'desc' => '',
  141. 'default' => '',
  142. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  143. ),
  144. ),
  145. //'top' => Dever::config('base', 'wechat_applet')->top,
  146. 'manage' => array
  147. (
  148. 'delete' => false,
  149. 'insert' => false,
  150. 'edit' => false,
  151. ),
  152. );