yspay_merchant_log.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. $type = array
  3. (
  4. 1 => '划付',
  5. 2 => '分账',
  6. 3 => '提现',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'yspay_merchant_log',
  12. # 显示给用户看的名称
  13. 'lang' => '银联资金日志列表',
  14. 'order' => -200,
  15. 'menu' => false,
  16. # 数据结构
  17. 'struct' => array
  18. (
  19. 'id' => array
  20. (
  21. 'type' => 'int-11',
  22. 'name' => 'ID',
  23. 'default' => '',
  24. 'desc' => '',
  25. 'match' => 'is_numeric',
  26. 'search' => 'order',
  27. 'update' => 'hidden',
  28. //'list' => true,
  29. ),
  30. 'account_id' => array
  31. (
  32. 'type' => 'int-11',
  33. 'name' => '账户id',
  34. 'default' => '',
  35. 'desc' => '账户id',
  36. 'match' => 'option',
  37. 'search' => 'hidden',
  38. 'update' => 'hidden',
  39. 'value' => Dever::input('search_option_account_id'),
  40. ),
  41. 'merchant_id' => array
  42. (
  43. 'type' => 'int-11',
  44. 'name' => '商户id',
  45. 'default' => '',
  46. 'desc' => '商户id',
  47. 'match' => 'option',
  48. 'update' => 'hidden',
  49. 'value' => Dever::input('search_option_merchant_id'),
  50. 'list_name' => '商户名称',
  51. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  52. ),
  53. 'type' => array
  54. (
  55. 'type' => 'int-11',
  56. 'name' => '类型',
  57. 'default' => '',
  58. 'desc' => '类型',
  59. 'match' => 'is_numeric',
  60. 'update' => 'text',
  61. 'option' => $type,
  62. ),
  63. 'cash' => array
  64. (
  65. 'type' => 'int-11',
  66. 'name' => '交易金额',
  67. 'default' => '0',
  68. 'desc' => '交易金额',
  69. 'match' => 'option',
  70. 'update' => 'text',
  71. 'list' => 'round({cash}/1000, 3)',
  72. ),
  73. 'yue' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => '交易后余额',
  77. 'default' => '0',
  78. 'desc' => '交易后余额',
  79. 'match' => 'option',
  80. 'update' => 'text',
  81. 'list' => 'round({yue}/1000, 3)',
  82. ),
  83. 'state' => array
  84. (
  85. 'type' => 'tinyint-1',
  86. 'name' => '状态',
  87. 'default' => '1',
  88. 'desc' => '请选择状态',
  89. 'match' => 'is_numeric',
  90. ),
  91. 'cdate' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '交易时间',
  95. 'match' => array('is_numeric', time()),
  96. 'desc' => '',
  97. # 只有insert时才生效
  98. //'insert' => true,
  99. 'search' => 'date',
  100. 'list' => 'date("Y-m-d H:i", {cdate})',
  101. ),
  102. ),
  103. 'manage' => array
  104. (
  105. 'edit' => false,
  106. 'insert' => false,
  107. 'delete' => false,
  108. ),
  109. 'request' => array
  110. (
  111. ),
  112. );