msg_log.php 3.2 KB

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