account.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. $type = Dever::config('base', 'pay')->pay['type'];
  3. return array
  4. (
  5. # 表名
  6. 'name' => 'account',
  7. # 显示给用户看的名称
  8. 'lang' => '账户管理',
  9. 'order' => 10,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. 'search' => 'order',
  21. 'list' => true,
  22. ),
  23. 'name' => array
  24. (
  25. 'type' => 'varchar-60',
  26. 'name' => '账户名称',
  27. 'default' => '',
  28. 'desc' => '账户名称',
  29. 'match' => 'is_string',
  30. 'update' => 'text',
  31. 'search' => 'fulltext',
  32. 'list' => true,
  33. ),
  34. 'type' => array
  35. (
  36. 'type' => 'varchar-30',
  37. 'name' => '支付类型',
  38. 'default' => 'wechat',
  39. 'desc' => '支付类型',
  40. 'match' => 'is_string',
  41. 'update' => 'radio',
  42. 'option' => $type,
  43. 'search' => 'select',
  44. 'list' => true,
  45. 'control' => 'type',
  46. ),
  47. 'mchid' => array
  48. (
  49. 'type' => 'varchar-150',
  50. 'name' => '商户号',
  51. 'default' => '',
  52. 'desc' => '商户号',
  53. 'match' => 'is_string',
  54. 'update' => 'text',
  55. ),
  56. 'key' => array
  57. (
  58. 'type' => 'varchar-150',
  59. 'name' => '密匙key',
  60. 'default' => '',
  61. 'desc' => '密匙key',
  62. 'match' => 'is_string',
  63. 'update' => 'text',
  64. ),
  65. 'appid' => array
  66. (
  67. 'type' => 'varchar-150',
  68. 'name' => 'appid',
  69. 'default' => '',
  70. 'desc' => 'appid',
  71. 'match' => 'is_string',
  72. 'update' => 'text',
  73. 'show' => 'type=wechat,cmbc',
  74. ),
  75. 'appsecret' => array
  76. (
  77. 'type' => 'varchar-300',
  78. 'name' => 'appsecret',
  79. 'default' => '',
  80. 'desc' => 'appsecret',
  81. 'match' => 'is_string',
  82. 'update' => 'text',
  83. 'show' => 'type=wechat,cmbc',
  84. ),
  85. 'account' => array
  86. (
  87. 'type' => 'varchar-150',
  88. 'name' => '支付账号',
  89. 'default' => '',
  90. 'desc' => '支付账号',
  91. 'match' => 'is_string',
  92. 'update' => 'text',
  93. 'show' => 'type=alipay',
  94. ),
  95. 'file_cert' => array
  96. (
  97. 'type' => 'varchar-150',
  98. 'name' => '证书cert文件',
  99. 'default' => '',
  100. 'desc' => '证书cert文件',
  101. 'match' => 'option',
  102. 'update' => 'upload',
  103. 'key' => '4',
  104. ),
  105. 'file_key' => array
  106. (
  107. 'type' => 'varchar-150',
  108. 'name' => '证书key文件',
  109. 'default' => '',
  110. 'desc' => '证书key文件',
  111. 'match' => 'option',
  112. 'update' => 'upload',
  113. 'key' => '4',
  114. ),
  115. 'timeout' => array
  116. (
  117. 'type' => 'int-11',
  118. 'name' => '支付有效期-秒',
  119. 'default' => '600',
  120. 'desc' => '支付有效期',
  121. 'match' => 'is_numeric',
  122. 'update' => 'text',
  123. ),
  124. 'state' => array
  125. (
  126. 'type' => 'tinyint-1',
  127. 'name' => '状态',
  128. 'default' => '1',
  129. 'desc' => '请选择状态',
  130. 'match' => 'is_numeric',
  131. ),
  132. 'cdate' => array
  133. (
  134. 'type' => 'int-11',
  135. 'name' => '申请时间',
  136. 'match' => array('is_numeric', time()),
  137. 'desc' => '',
  138. # 只有insert时才生效
  139. 'insert' => true,
  140. 'search' => 'date',
  141. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  142. ),
  143. ),
  144. );