order_cash.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. $type = array
  3. (
  4. 1 => '直推佣金',
  5. 2 => '团队分润',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'order_cash',
  11. # 显示给用户看的名称
  12. 'lang' => '分润信息',
  13. 'menu' => false,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => 'ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. 'search' => 'order',
  25. 'update' => 'hidden',
  26. //'list' => true,
  27. ),
  28. 'order_id' => array
  29. (
  30. 'type' => 'int-11',
  31. 'name' => '订单表id',
  32. 'default' => '',
  33. 'desc' => '订单表id',
  34. 'match' => 'is_numeric',
  35. ),
  36. 'type' => array
  37. (
  38. 'type' => 'tinyint-1',
  39. 'name' => '类型',
  40. 'default' => '1',
  41. 'desc' => '类型',
  42. 'match' => 'is_numeric',
  43. 'update' => 'radio',
  44. 'option' => $type,
  45. ),
  46. 'mid' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '代理商',
  50. 'default' => '-1',
  51. 'desc' => '代理商',
  52. 'match' => 'is_string',
  53. 'update' => 'text',
  54. ),
  55. 'parent_mid' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '上级代理商',
  59. 'default' => '-1',
  60. 'desc' => '代理商',
  61. 'match' => 'is_string',
  62. 'update' => 'text',
  63. ),
  64. 'per' => array
  65. (
  66. 'type' => 'int-11',
  67. 'name' => '佣金比例-仅做展示用',
  68. 'default' => '0',
  69. 'desc' => '佣金比例',
  70. 'match' => 'option',
  71. 'update' => 'text',
  72. 'list' => true,
  73. ),
  74. 'cash' => array
  75. (
  76. 'type' => 'float-11,2',
  77. 'name' => '金额',
  78. 'default' => '0',
  79. 'desc' => '金额',
  80. 'match' => 'option',
  81. 'update' => 'text',
  82. 'list' => true,
  83. ),
  84. 'prize_id' => array
  85. (
  86. 'type' => 'int-11',
  87. 'name' => '奖励的名额',
  88. 'default' => '-1',
  89. 'desc' => '奖励的名额',
  90. 'match' => 'is_numeric',
  91. ),
  92. 'state' => array
  93. (
  94. 'type' => 'tinyint-1',
  95. 'name' => '状态',
  96. 'default' => '1',
  97. 'desc' => '请选择状态',
  98. 'match' => 'is_numeric',
  99. ),
  100. 'cdate' => array
  101. (
  102. 'type' => 'int-11',
  103. 'name' => '创建时间',
  104. 'match' => array('is_numeric', time()),
  105. 'desc' => '',
  106. # 只有insert时才生效
  107. //'insert' => true,
  108. 'search' => 'date',
  109. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  110. ),
  111. ),
  112. 'manage' => array
  113. (
  114. ),
  115. 'request' => array
  116. (
  117. 'getData' => array
  118. (
  119. # 匹配的正则或函数 选填项
  120. 'option' => array
  121. (
  122. 'order_id' => 'yes',
  123. 'mid' => 'yes',
  124. 'type' => 'yes',
  125. 'state' => 1,
  126. ),
  127. 'type' => 'one',
  128. 'col' => '*',
  129. ),
  130. ),
  131. );