yspay_cash_log.php 5.5 KB

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