yspay.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?php
  2. $type = array
  3. (
  4. 1 => '无资金管理功能',
  5. 2 => '有资金管理功能',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'yspay',
  11. # 显示给用户看的名称
  12. 'lang' => '银商扩展配置',
  13. 'order' => 10,
  14. 'menu' => false,
  15. # 数据结构
  16. 'struct' => array
  17. (
  18. 'id' => array
  19. (
  20. 'type' => 'int-11',
  21. 'name' => 'ID',
  22. 'default' => '',
  23. 'desc' => '',
  24. 'match' => 'is_numeric',
  25. 'search' => 'order',
  26. 'list' => true,
  27. ),
  28. 'account_id' => array
  29. (
  30. 'type' => 'int-11',
  31. 'name' => '所属账户',
  32. 'default' => '1',
  33. 'desc' => '所属账户',
  34. 'match' => 'is_numeric',
  35. 'update' => 'hidden',
  36. ),
  37. 'type' => array
  38. (
  39. 'type' => 'tinyint-1',
  40. 'name' => '资金管理类型',
  41. 'default' => '1',
  42. 'desc' => '支付类型',
  43. 'match' => 'is_string',
  44. 'update' => 'radio',
  45. 'option' => $type,
  46. 'control' => 'type',
  47. ),
  48. 'per' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '平台分账百分比-如输入10,就是从总支付金额中分账10%',
  52. 'default' => '10',
  53. 'desc' => '平台分账百分比',
  54. 'match' => 'is_numeric',
  55. 'update' => 'text',
  56. 'show' => 'type=2',
  57. ),
  58. 'mid' => array
  59. (
  60. 'type' => 'varchar-200',
  61. 'name' => '平台分账商户号',
  62. 'default' => '',
  63. 'desc' => '平台分账商户号',
  64. 'match' => 'is_string',
  65. 'update' => 'text',
  66. 'show' => 'type=2',
  67. ),
  68. 'card' => array
  69. (
  70. 'type' => 'varchar-150',
  71. 'name' => '平台分账卡号',
  72. 'default' => '',
  73. 'desc' => '平台分账卡号',
  74. 'match' => 'is_string',
  75. 'update' => 'text',
  76. 'show' => 'type=2',
  77. ),
  78. 'private_file' => array
  79. (
  80. 'type' => 'varchar-150',
  81. 'name' => '资金管理私钥文件',
  82. 'default' => '',
  83. 'desc' => '资金管理私钥文件',
  84. 'match' => 'is_string',
  85. 'update' => 'upload',
  86. 'key' => '4',
  87. 'show' => 'type=2',
  88. ),
  89. 'private_file_password' => array
  90. (
  91. 'type' => 'varchar-150',
  92. 'name' => '资金管理私钥文件密码',
  93. 'default' => '',
  94. 'desc' => '资金管理私钥文件密码',
  95. 'match' => 'is_string',
  96. 'update' => 'text',
  97. 'show' => 'type=2',
  98. ),
  99. 'public_file' => array
  100. (
  101. 'type' => 'varchar-150',
  102. 'name' => '资金管理公钥文件',
  103. 'default' => '',
  104. 'desc' => '资金管理公钥文件',
  105. 'match' => 'is_string',
  106. 'update' => 'upload',
  107. 'key' => '4',
  108. 'show' => 'type=2',
  109. ),
  110. 'sys_id' => array
  111. (
  112. 'type' => 'varchar-150',
  113. 'name' => '提现系统编号',
  114. 'default' => '',
  115. 'desc' => '提现系统编号',
  116. 'match' => 'is_string',
  117. 'update' => 'text',
  118. ),
  119. 'private_key' => array
  120. (
  121. 'type' => 'varchar-2000',
  122. 'name' => '提现私钥',
  123. 'default' => '',
  124. 'desc' => '提现私钥',
  125. 'match' => 'is_string',
  126. 'update' => 'textarea',
  127. ),
  128. 'private_key_pkcs1' => array
  129. (
  130. 'type' => 'varchar-2000',
  131. 'name' => '提现PKCS1私钥',
  132. 'default' => '',
  133. 'desc' => '提现PKCS1私钥',
  134. 'match' => 'is_string',
  135. 'update' => 'textarea',
  136. ),
  137. 'public_key' => array
  138. (
  139. 'type' => 'varchar-2000',
  140. 'name' => '提现公钥',
  141. 'default' => '',
  142. 'desc' => '提现公钥',
  143. 'match' => 'is_string',
  144. 'update' => 'textarea',
  145. ),
  146. 'state' => array
  147. (
  148. 'type' => 'tinyint-1',
  149. 'name' => '状态',
  150. 'default' => '1',
  151. 'desc' => '请选择状态',
  152. 'match' => 'is_numeric',
  153. ),
  154. 'cdate' => array
  155. (
  156. 'type' => 'int-11',
  157. 'name' => '申请时间',
  158. 'match' => array('is_numeric', time()),
  159. 'desc' => '',
  160. # 只有insert时才生效
  161. 'insert' => true,
  162. 'search' => 'date',
  163. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  164. ),
  165. ),
  166. 'manage' => array
  167. (
  168. ),
  169. );