yspay_tixian_log.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. 'search' => 'hidden',
  44. 'value' => Dever::input('search_option_merchant_id'),
  45. 'list_name' => '商户名称',
  46. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  47. ),
  48. 'mid' => array
  49. (
  50. 'type' => 'varchar-50',
  51. 'name' => '分账商户号',
  52. 'default' => '',
  53. 'desc' => '分账商户号',
  54. 'match' => 'option',
  55. 'update' => 'text',
  56. 'searchs' => 'fulltext',
  57. 'list' => true,
  58. ),
  59. 'order_num' => array
  60. (
  61. 'type' => 'varchar-100',
  62. 'name' => '订单号',
  63. 'default' => '',
  64. 'desc' => '订单号',
  65. 'match' => 'is_string',
  66. 'update' => 'text',
  67. 'list' => true,
  68. ),
  69. 'type' => array
  70. (
  71. 'type' => 'varchar-10',
  72. 'name' => '类型',
  73. 'default' => '',
  74. 'desc' => '类型',
  75. 'match' => 'is_numeric',
  76. 'update' => 'text',
  77. ),
  78. 'cash' => array
  79. (
  80. 'type' => 'int-11',
  81. 'name' => '提现金额',
  82. 'default' => '0',
  83. 'desc' => '提现金额',
  84. 'match' => 'option',
  85. 'update' => 'text',
  86. 'list' => 'round({cash}/100, 2)',
  87. ),
  88. 'tdate' => array
  89. (
  90. 'type' => 'int-11',
  91. 'name' => '提现时间',
  92. 'default' => '',
  93. 'match' => 'is_numeric',
  94. 'desc' => '',
  95. 'search' => 'date',
  96. 'list' => '"{tdate}" ? date("Y-m-d H:i", \'{tdate}\') : "-"',
  97. 'order' => 'desc',
  98. ),
  99. 'mtype' => array
  100. (
  101. 'type' => 'int-11',
  102. 'name' => '提现类型',
  103. 'default' => '1',
  104. 'desc' => '提现类型',
  105. 'match' => 'is_numeric',
  106. 'update' => 'text',
  107. ),
  108. 'status' => array
  109. (
  110. 'type' => 'tinyint-1',
  111. 'name' => '提现状态',
  112. 'default' => '1',
  113. 'desc' => '提现状态',
  114. 'match' => 'is_numeric',
  115. 'option' => $status,
  116. 'search' => 'select',
  117. 'list' => true,
  118. ),
  119. 'desc' => array
  120. (
  121. 'type' => 'varchar-800',
  122. 'name' => '备注',
  123. 'default' => '-',
  124. 'desc' => '备注',
  125. 'match' => 'is_numeric',
  126. 'update' => 'text',
  127. 'list' => true,
  128. ),
  129. 'response' => array
  130. (
  131. 'type' => 'text-255',
  132. 'name' => '回调响应数据',
  133. 'default' => '',
  134. 'desc' => '回调响应数据',
  135. 'match' => 'is_string',
  136. ),
  137. 'state' => array
  138. (
  139. 'type' => 'tinyint-1',
  140. 'name' => '状态',
  141. 'default' => '1',
  142. 'desc' => '请选择状态',
  143. 'match' => 'is_numeric',
  144. ),
  145. 'cdate' => array
  146. (
  147. 'type' => 'int-11',
  148. 'name' => '创建时间',
  149. 'match' => array('is_numeric', time()),
  150. 'desc' => '',
  151. # 只有insert时才生效
  152. //'insert' => true,
  153. //'search' => 'date',
  154. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  155. ),
  156. ),
  157. 'manage' => array
  158. (
  159. 'edit' => false,
  160. 'insert' => false,
  161. 'delete' => false,
  162. ),
  163. 'request' => array
  164. (
  165. 'getAll' => array
  166. (
  167. 'option' => array
  168. (
  169. 'merchant_id' => 'yes',
  170. 'state' => 1,
  171. ),
  172. 'type' => 'all',
  173. 'col' => '*|merchant_id',
  174. ),
  175. ),
  176. );