card_log.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. $status = array
  3. (
  4. 1 => '发送中',
  5. 2 => '发送成功',
  6. 3 => '发送失败',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'card_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. 'card_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("youzan/card-one#name", {card_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. 'num' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '发送次数',
  60. 'default' => '0',
  61. 'desc' => '发送次数',
  62. 'match' => 'option',
  63. //'search' => 'order',
  64. 'list' => true,
  65. ),
  66. 'result' => array
  67. (
  68. 'type' => 'text-255',
  69. 'name' => '微信返回信息',
  70. 'default' => '',
  71. 'desc' => '微信返回信息',
  72. 'match' => 'option',
  73. 'update' => 'textarea',
  74. 'list' => true,
  75. 'modal' => '查看详情',
  76. ),
  77. 'status' => array
  78. (
  79. 'type' => 'tinyint-1',
  80. 'name' => '状态',
  81. 'default' => '1',
  82. 'desc' => '状态',
  83. 'match' => 'is_numeric',
  84. 'update' => 'select',
  85. 'option' => $status,
  86. 'list' => true,
  87. ),
  88. 'state' => array
  89. (
  90. 'type' => 'tinyint-1',
  91. 'name' => '状态',
  92. 'default' => '1',
  93. 'desc' => '请选择状态',
  94. 'match' => 'is_numeric',
  95. ),
  96. 'cdate' => array
  97. (
  98. 'type' => 'int-11',
  99. 'name' => '更新时间',
  100. 'match' => array('is_numeric', time()),
  101. 'desc' => '',
  102. 'default' => '',
  103. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  104. ),
  105. ),
  106. 'top' => Dever::config('base', 'youzan')->top,
  107. 'manage' => array
  108. (
  109. 'delete' => false,
  110. 'insert' => false,
  111. 'edit' => false,
  112. ),
  113. );