yspay_cash_log.php 5.9 KB

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