yspay.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?php
  2. $type = array
  3. (
  4. 1 => '无资金管理功能',
  5. 2 => '有资金管理功能',
  6. );
  7. $cash_type = array
  8. (
  9. 1 => '通过交易金额分账',
  10. 2 => '通过实际金额分账',
  11. );
  12. return array
  13. (
  14. # 表名
  15. 'name' => 'yspay',
  16. # 显示给用户看的名称
  17. 'lang' => '银商扩展配置',
  18. 'order' => 10,
  19. 'menu' => false,
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => 'ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. 'search' => 'order',
  31. 'list' => true,
  32. ),
  33. 'account_id' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => '所属账户',
  37. 'default' => '1',
  38. 'desc' => '所属账户',
  39. 'match' => 'is_numeric',
  40. 'update' => 'hidden',
  41. ),
  42. 'per' => array
  43. (
  44. 'type' => 'varchar-11',
  45. 'name' => '交易手续费百分比-如输入10,就是从总支付金额中收取10%手续费,这个会自动扣掉,输入0.1就是千分之1',
  46. 'default' => '10',
  47. 'desc' => '交易手续费百分比',
  48. 'match' => 'is_numeric',
  49. 'update' => 'text',
  50. ),
  51. 'sign_key' => array
  52. (
  53. 'type' => 'varchar-150',
  54. 'name' => '自助签约key',
  55. 'default' => '',
  56. 'desc' => '自助签约key',
  57. 'match' => 'is_string',
  58. 'update' => 'text',
  59. ),
  60. 'sign_accesser_id' => array
  61. (
  62. 'type' => 'varchar-150',
  63. 'name' => '自助签约accesser_id',
  64. 'default' => '',
  65. 'desc' => '自助签约accesser_id',
  66. 'match' => 'is_string',
  67. 'update' => 'text',
  68. ),
  69. 'tx_sys_id' => array
  70. (
  71. 'type' => 'varchar-150',
  72. 'name' => '提现系统编号',
  73. 'default' => '',
  74. 'desc' => '提现系统编号',
  75. 'match' => 'is_string',
  76. 'update' => 'text',
  77. ),
  78. 'tx_private_key' => array
  79. (
  80. 'type' => 'varchar-2000',
  81. 'name' => '提现私钥',
  82. 'default' => '',
  83. 'desc' => '提现私钥',
  84. 'match' => 'is_string',
  85. 'update' => 'textarea',
  86. ),
  87. 'tx_private_key_pkcs1' => array
  88. (
  89. 'type' => 'varchar-2000',
  90. 'name' => '提现PKCS1私钥',
  91. 'default' => '',
  92. 'desc' => '提现PKCS1私钥',
  93. 'match' => 'is_string',
  94. 'update' => 'textarea',
  95. ),
  96. 'tx_public_key' => array
  97. (
  98. 'type' => 'varchar-2000',
  99. 'name' => '提现公钥',
  100. 'default' => '',
  101. 'desc' => '提现公钥',
  102. 'match' => 'is_string',
  103. 'update' => 'textarea',
  104. ),
  105. 'type' => array
  106. (
  107. 'type' => 'tinyint-1',
  108. 'name' => '资金管理设置',
  109. 'default' => '1',
  110. 'desc' => '支付类型',
  111. 'match' => 'is_string',
  112. 'update' => 'radio',
  113. 'option' => $type,
  114. 'control' => 'type',
  115. ),
  116. 'cash_groupid' => array
  117. (
  118. 'type' => 'varchar-200',
  119. 'name' => '平台分账集团号',
  120. 'default' => '',
  121. 'desc' => '平台分账集团号',
  122. 'match' => 'is_string',
  123. 'update' => 'text',
  124. 'show' => 'type=2',
  125. ),
  126. 'cash_per' => array
  127. (
  128. 'type' => 'int-11',
  129. 'name' => '平台分账百分比-如输入10,就是从总支付金额中分账10%',
  130. 'default' => '10',
  131. 'desc' => '平台分账百分比',
  132. 'match' => 'is_numeric',
  133. 'update' => 'text',
  134. 'show' => 'type=2',
  135. ),
  136. 'cash_type' => array
  137. (
  138. 'type' => 'tinyint-1',
  139. 'name' => '平台分账类型',
  140. 'default' => '1',
  141. 'desc' => '平台分账类型',
  142. 'match' => 'is_string',
  143. 'update' => 'radio',
  144. 'option' => $cash_type,
  145. ),
  146. 'cash_mid' => array
  147. (
  148. 'type' => 'varchar-200',
  149. 'name' => '平台分账商户号',
  150. 'default' => '',
  151. 'desc' => '平台分账商户号',
  152. 'match' => 'is_string',
  153. 'update' => 'text',
  154. 'show' => 'type=2',
  155. ),
  156. 'cash_card' => array
  157. (
  158. 'type' => 'varchar-150',
  159. 'name' => '平台分账卡号',
  160. 'default' => '',
  161. 'desc' => '平台分账卡号',
  162. 'match' => 'is_string',
  163. 'update' => 'text',
  164. 'show' => 'type=2',
  165. ),
  166. 'cash_private_file' => array
  167. (
  168. 'type' => 'varchar-150',
  169. 'name' => '资金管理私钥文件',
  170. 'default' => '',
  171. 'desc' => '资金管理私钥文件',
  172. 'match' => 'is_string',
  173. 'update' => 'upload',
  174. 'key' => '4',
  175. 'show' => 'type=2',
  176. ),
  177. 'cash_private_file_password' => array
  178. (
  179. 'type' => 'varchar-150',
  180. 'name' => '资金管理私钥文件密码',
  181. 'default' => '',
  182. 'desc' => '资金管理私钥文件密码',
  183. 'match' => 'is_string',
  184. 'update' => 'text',
  185. 'show' => 'type=2',
  186. ),
  187. 'cash_public_file' => array
  188. (
  189. 'type' => 'varchar-150',
  190. 'name' => '资金管理公钥文件',
  191. 'default' => '',
  192. 'desc' => '资金管理公钥文件',
  193. 'match' => 'is_string',
  194. 'update' => 'upload',
  195. 'key' => '4',
  196. 'show' => 'type=2',
  197. ),
  198. 'state' => array
  199. (
  200. 'type' => 'tinyint-1',
  201. 'name' => '状态',
  202. 'default' => '1',
  203. 'desc' => '请选择状态',
  204. 'match' => 'is_numeric',
  205. ),
  206. 'cdate' => array
  207. (
  208. 'type' => 'int-11',
  209. 'name' => '申请时间',
  210. 'match' => array('is_numeric', time()),
  211. 'desc' => '',
  212. # 只有insert时才生效
  213. 'insert' => true,
  214. 'search' => 'date',
  215. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  216. ),
  217. ),
  218. 'manage' => array
  219. (
  220. ),
  221. );