message_log.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php
  2. /**
  3. * user
  4. */
  5. $type = array
  6. (
  7. 1 => '订阅消息',
  8. 2 => '客服消息',
  9. );
  10. return array
  11. (
  12. # 表名
  13. 'name' => 'message_log',
  14. # 显示给用户看的名称
  15. 'lang' => '群发消息日志',
  16. 'desc' => '订阅消息因为是直接发送给微信公众平台,所以请点击查看发送状态来查询具体结果,客服消息会每一条发送记录都展示出来。',
  17. 'menu' => false,
  18. # 数据结构
  19. 'struct' => array
  20. (
  21. 'id' => array
  22. (
  23. 'type' => 'int-11',
  24. 'name' => 'ID',
  25. 'default' => '',
  26. 'desc' => '',
  27. 'match' => 'is_numeric',
  28. 'search' => 'order',
  29. //'list' => true,
  30. ),
  31. 'site' => array
  32. (
  33. 'type' => 'int-11',
  34. 'name' => '站点',
  35. 'default' => '',
  36. 'desc' => '请输入站点',
  37. 'match' => 'is_numeric',
  38. ),
  39. 'name' => array
  40. (
  41. 'type' => 'varchar-32',
  42. 'name' => '任务描述',
  43. 'default' => '',
  44. 'desc' => '请输入任务描述',
  45. 'match' => 'is_string',
  46. 'search' => 'fulltext',
  47. //'update' => 'text',
  48. 'list' => true,
  49. ),
  50. 'openid' => array
  51. (
  52. 'type' => 'varchar-100',
  53. 'name' => '接收人',
  54. 'default' => '',
  55. 'desc' => '接收人',
  56. 'search' => 'fulltext',
  57. 'list' => 'Dever::load("weixin/user.name", "{openid}")',
  58. 'match' => 'option',
  59. ),
  60. 'type' => array
  61. (
  62. 'type' => 'tinyint-1',
  63. 'name' => '发送类型',
  64. 'default' => '1',
  65. 'desc' => '请选择发送类型',
  66. 'match' => 'is_numeric',
  67. 'option' => $type,
  68. //'update' => 'radio',
  69. 'list' => true,
  70. ),
  71. 'msg' => array
  72. (
  73. 'type' => 'varchar-24',
  74. 'name' => '发送状态',
  75. 'default' => '',
  76. 'desc' => '发送状态',
  77. 'match' => 'is_string',
  78. 'list' => true,
  79. ),
  80. 'weixin_log' => array
  81. (
  82. 'type' => 'varchar-255',
  83. 'name' => '微信日志',
  84. 'default' => '',
  85. 'desc' => '微信日志',
  86. 'match' => 'is_string',
  87. 'list' => 'table',
  88. 'decode' => true,
  89. 'modal' => '查看详情',
  90. ),
  91. 'config' => array
  92. (
  93. 'type' => 'varchar-255',
  94. 'name' => '任务信息',
  95. 'default' => '',
  96. 'desc' => '任务信息',
  97. 'decode' => true,
  98. 'match' => 'is_string',
  99. ),
  100. 'message_id' => array
  101. (
  102. 'type' => 'int-11',
  103. 'name' => '群发任务ID',
  104. 'default' => '',
  105. 'desc' => '群发任务',
  106. 'match' => 'is_numeric',
  107. //'update' => 'select',
  108. 'list' => true,
  109. //'option' => $message,
  110. ),
  111. 'content_id' => array
  112. (
  113. 'type' => 'int-11',
  114. 'name' => '消息id',
  115. 'default' => '',
  116. 'desc' => '消息id',
  117. 'match' => 'is_numeric',
  118. //'update' => 'select',
  119. //'list' => '{message} > 0 ? Dever::load("weixin/content-one#keywords", {message}) : "未选择消息"',
  120. //'option' => $message,
  121. ),
  122. 'cdate' => array
  123. (
  124. 'type' => 'int-11',
  125. 'name' => '录入时间',
  126. 'match' => array('is_numeric', time()),
  127. 'desc' => '',
  128. # 只有insert时才生效
  129. 'insert' => true,
  130. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  131. ),
  132. ),
  133. 'manage' => array
  134. (
  135. //'desc' => '订阅消息:服务号用户每月只能接收4条群发消息,多于4条的群发将对该用户发送失败。 <br />客服消息:每天发送一次,如果发送的用户超过50w,则只能最多发送50w个用户',
  136. ),
  137. 'auth' => 'site',
  138. # request 请求接口定义
  139. 'request' => array
  140. (
  141. 'info' => array
  142. (
  143. # 匹配的正则或函数 必填项
  144. 'where' => array
  145. (
  146. 'groupid' => 'yes',
  147. 'site' => 'yes',
  148. ),
  149. 'type' => 'one',
  150. ),
  151. ),
  152. );