msg_log.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. ),
  36. 'msg_id' => array
  37. (
  38. 'type' => 'int-11',
  39. 'name' => '消息id',
  40. 'default' => '',
  41. 'desc' => '消息id',
  42. 'match' => 'is_numeric',
  43. 'update' => 'text',
  44. 'list' => 'Dever::load("applet/msg-one#name", {msg_id})',
  45. ),
  46. 'touser' => array
  47. (
  48. 'type' => 'varchar-120',
  49. 'name' => '接收者',
  50. 'default' => '',
  51. 'desc' => '接收者',
  52. 'match' => 'is_string',
  53. 'update' => 'text',
  54. 'list' => true,
  55. ),
  56. 'page' => array
  57. (
  58. 'type' => 'varchar-200',
  59. 'name' => '跳转页面',
  60. 'default' => '',
  61. 'desc' => '跳转页面',
  62. 'match' => 'option',
  63. 'update' => 'textarea',
  64. //'list' => true,
  65. ),
  66. 'data' => array
  67. (
  68. 'type' => 'text-255',
  69. 'name' => '模板内容',
  70. 'default' => '',
  71. 'desc' => '模板内容',
  72. 'match' => 'option',
  73. 'update' => 'textarea',
  74. //'list' => true,
  75. ),
  76. 'form_id' => array
  77. (
  78. 'type' => 'varchar-30',
  79. 'name' => '表单或者支付id',
  80. 'default' => '',
  81. 'desc' => '表单或者支付id',
  82. 'match' => 'option',
  83. 'update' => 'textarea',
  84. //'list' => true,
  85. ),
  86. 'emphasis_keyword' => array
  87. (
  88. 'type' => 'varchar-200',
  89. 'name' => '模板需要放大的关键词',
  90. 'default' => '',
  91. 'desc' => '模板需要放大的关键词',
  92. 'match' => 'option',
  93. 'update' => 'textarea',
  94. //'list' => true,
  95. ),
  96. 'num' => array
  97. (
  98. 'type' => 'int-11',
  99. 'name' => '发送次数',
  100. 'default' => '0',
  101. 'desc' => '发送次数',
  102. 'match' => 'option',
  103. //'search' => 'order',
  104. 'list' => true,
  105. ),
  106. 'result' => array
  107. (
  108. 'type' => 'text-255',
  109. 'name' => '微信返回信息',
  110. 'default' => '',
  111. 'desc' => '微信返回信息',
  112. 'match' => 'option',
  113. 'update' => 'textarea',
  114. 'list' => true,
  115. 'modal' => '查看详情',
  116. ),
  117. 'status' => array
  118. (
  119. 'type' => 'tinyint-1',
  120. 'name' => '状态',
  121. 'default' => '1',
  122. 'desc' => '状态',
  123. 'match' => 'is_numeric',
  124. 'update' => 'select',
  125. 'option' => $status,
  126. 'list' => true,
  127. ),
  128. 'state' => array
  129. (
  130. 'type' => 'tinyint-1',
  131. 'name' => '状态',
  132. 'default' => '1',
  133. 'desc' => '请选择状态',
  134. 'match' => 'is_numeric',
  135. ),
  136. 'cdate' => array
  137. (
  138. 'type' => 'int-11',
  139. 'name' => '更新时间',
  140. 'match' => array('is_numeric', time()),
  141. 'desc' => '',
  142. 'default' => '',
  143. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  144. ),
  145. ),
  146. 'top' => Dever::config('base', 'applet')->top,
  147. 'manage' => array
  148. (
  149. 'delete' => false,
  150. 'insert' => false,
  151. 'edit' => false,
  152. ),
  153. );