yspay_tixian_log.php 5.4 KB

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