member_prize.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. $prize = function()
  3. {
  4. $array = array();
  5. $data = Dever::load('setting/prize-state');
  6. if($data)
  7. {
  8. $array += $data;
  9. }
  10. return $array;
  11. };
  12. return array
  13. (
  14. # 表名
  15. 'name' => 'member_prize',
  16. # 显示给用户看的名称
  17. 'lang' => '代理直推额外奖励赠送记录',
  18. 'menu' => false,
  19. # 数据结构
  20. 'struct' => array
  21. (
  22. 'id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => 'ID',
  26. 'default' => '',
  27. 'desc' => '',
  28. 'match' => 'is_numeric',
  29. 'search' => 'order',
  30. //'list' => true,
  31. ),
  32. 'mid' => array
  33. (
  34. 'type' => 'int-11',
  35. 'name' => '代理商',
  36. 'default' => '-1',
  37. 'desc' => '代理商',
  38. 'match' => 'is_string',
  39. 'update' => 'text',
  40. 'searchs' => array
  41. (
  42. 'api' => 'agent/member-find',
  43. 'col' => 'mobile',
  44. 'result' => 'id',
  45. ),
  46. //'list' => 'Dever::load("agent/lib/member.getOne", {mid})',
  47. ),
  48. 'order_id' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '订单表id',
  52. 'default' => '',
  53. 'desc' => '订单表id',
  54. 'match' => 'is_numeric',
  55. ),
  56. 'prize_id' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '奖励的名额',
  60. 'default' => '',
  61. 'desc' => '奖励的名额',
  62. 'match' => 'is_numeric',
  63. ),
  64. 'child_num' => array
  65. (
  66. 'type' => 'int-11',
  67. 'name' => '直推数量',
  68. 'default' => '',
  69. 'desc' => '订单表id',
  70. 'match' => 'is_numeric',
  71. ),
  72. 'state' => array
  73. (
  74. 'type' => 'tinyint-1',
  75. 'name' => '状态',
  76. 'default' => '1',
  77. 'desc' => '请选择状态',
  78. 'match' => 'is_numeric',
  79. ),
  80. 'cdate' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => '申请时间',
  84. 'match' => array('is_numeric', time()),
  85. 'desc' => '',
  86. # 只有insert时才生效
  87. //'insert' => true,
  88. 'search' => 'date',
  89. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  90. ),
  91. ),
  92. 'manage' => array
  93. (
  94. 'page_list' => 'member_prize',
  95. ),
  96. 'request' => array
  97. (
  98. ),
  99. );