yspay_tixian_log.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?php
  2. $status = array
  3. (
  4. 1 => array('name' => '提现申请中', 'style' => 'font-weight:bold;color:blue'),
  5. 2 => array('name' => '受理成功', 'style' => 'font-weight:bold;color:green'),
  6. //3 => array('name' => '受理失败', 'style' => 'font-weight:bold;color:#CD3700'),
  7. );
  8. $mtype = array
  9. (
  10. 1 => '自动提现',
  11. 2 => '手动提现',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'yspay_tixian_log',
  17. # 显示给用户看的名称
  18. 'lang' => '银联提现日志列表',
  19. 'order' => -200,
  20. 'menu' => false,
  21. # 数据结构
  22. 'struct' => array
  23. (
  24. 'id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => 'ID',
  28. 'default' => '',
  29. 'desc' => '',
  30. 'match' => 'is_numeric',
  31. 'search' => 'order',
  32. 'update' => 'hidden',
  33. //'list' => true,
  34. ),
  35. 'merchant_id' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => '商户id',
  39. 'default' => '',
  40. 'desc' => '商户id',
  41. 'match' => 'option',
  42. 'update' => 'hidden',
  43. 'value' => Dever::input('search_option_merchant_id'),
  44. 'list_name' => '商户名称',
  45. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  46. ),
  47. 'mid' => array
  48. (
  49. 'type' => 'varchar-50',
  50. 'name' => '分账商户号',
  51. 'default' => '',
  52. 'desc' => '分账商户号',
  53. 'match' => 'option',
  54. 'update' => 'text',
  55. 'searchs' => 'fulltext',
  56. 'list' => true,
  57. ),
  58. 'order_num' => array
  59. (
  60. 'type' => 'varchar-100',
  61. 'name' => '订单号',
  62. 'default' => '',
  63. 'desc' => '订单号',
  64. 'match' => 'is_string',
  65. 'update' => 'text',
  66. 'list' => true,
  67. ),
  68. 'type' => array
  69. (
  70. 'type' => 'varchar-10',
  71. 'name' => '类型',
  72. 'default' => '',
  73. 'desc' => '类型',
  74. 'match' => 'is_numeric',
  75. 'update' => 'text',
  76. ),
  77. 'cash' => array
  78. (
  79. 'type' => 'int-11',
  80. 'name' => '提现金额',
  81. 'default' => '0',
  82. 'desc' => '提现金额',
  83. 'match' => 'option',
  84. 'update' => 'text',
  85. 'list' => 'round({cash}/100, 2)',
  86. ),
  87. 'tdate' => array
  88. (
  89. 'type' => 'int-11',
  90. 'name' => '提现时间',
  91. 'default' => '',
  92. 'match' => 'is_numeric',
  93. 'desc' => '',
  94. 'search' => 'date',
  95. 'list' => '"{tdate}" ? date("Y-m-d H:i", \'{tdate}\') : "-"',
  96. 'order' => 'desc',
  97. ),
  98. 'mtype' => array
  99. (
  100. 'type' => 'int-11',
  101. 'name' => '提现类型',
  102. 'default' => '1',
  103. 'desc' => '提现类型',
  104. 'match' => 'is_numeric',
  105. 'update' => 'text',
  106. ),
  107. 'status' => array
  108. (
  109. 'type' => 'tinyint-1',
  110. 'name' => '提现状态',
  111. 'default' => '1',
  112. 'desc' => '提现状态',
  113. 'match' => 'is_numeric',
  114. 'option' => $status,
  115. 'search' => 'select',
  116. 'list' => true,
  117. ),
  118. 'desc' => array
  119. (
  120. 'type' => 'varchar-800',
  121. 'name' => '备注',
  122. 'default' => '-',
  123. 'desc' => '备注',
  124. 'match' => 'is_numeric',
  125. 'update' => 'text',
  126. 'list' => true,
  127. ),
  128. 'response' => array
  129. (
  130. 'type' => 'text-255',
  131. 'name' => '回调响应数据',
  132. 'default' => '',
  133. 'desc' => '回调响应数据',
  134. 'match' => 'is_string',
  135. ),
  136. 'state' => array
  137. (
  138. 'type' => 'tinyint-1',
  139. 'name' => '状态',
  140. 'default' => '1',
  141. 'desc' => '请选择状态',
  142. 'match' => 'is_numeric',
  143. ),
  144. 'cdate' => array
  145. (
  146. 'type' => 'int-11',
  147. 'name' => '创建时间',
  148. 'match' => array('is_numeric', time()),
  149. 'desc' => '',
  150. # 只有insert时才生效
  151. //'insert' => true,
  152. //'search' => 'date',
  153. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  154. ),
  155. ),
  156. 'manage' => array
  157. (
  158. 'edit' => false,
  159. 'insert' => false,
  160. 'delete' => false,
  161. ),
  162. 'request' => array
  163. (
  164. 'getAll' => array
  165. (
  166. 'option' => array
  167. (
  168. 'merchant_id' => 'yes',
  169. 'state' => 1,
  170. ),
  171. 'type' => 'all',
  172. 'col' => '*|merchant_id',
  173. ),
  174. ),
  175. );