sign_log.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. $acct_type = array
  3. (
  4. -1 => '个人账户',
  5. 1 => '公司账户',
  6. );
  7. $mer_type = array
  8. (
  9. 2 => '个人工商户',
  10. 1 => '企业商户',
  11. //3 => '小微商户',
  12. );
  13. $id = Dever::input('search_option_shop_id');
  14. $shop = array();
  15. if ($id) {
  16. $shop = Dever::db('shop/info')->one($id);
  17. }
  18. $step = Dever::db('shop/sign')->config['step'];
  19. $step[100] = '绑定门店';
  20. return array
  21. (
  22. # 表名
  23. 'name' => 'sign_log',
  24. # 显示给用户看的名称
  25. 'lang' => '自主签约日志',
  26. # 后台菜单排序
  27. 'order' => 99,
  28. 'step' => $step,
  29. 'menu' => false,
  30. # 数据结构
  31. 'struct' => array
  32. (
  33. 'id' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => 'ID',
  37. 'default' => '',
  38. 'desc' => '',
  39. 'match' => 'is_numeric',
  40. 'search' => 'order',
  41. //'list' => true,
  42. 'order' => 'desc',
  43. ),
  44. 'sign_id' => array
  45. (
  46. 'type' => 'int-11',
  47. 'name' => '签约id',
  48. 'default' => '0',
  49. 'desc' => '签约id',
  50. 'match' => 'is_numeric',
  51. 'update' => 'hidden',
  52. ),
  53. 'step' => array
  54. (
  55. 'type' => 'int-11',
  56. 'name' => '当前进度',
  57. 'default' => '',
  58. 'desc' => '当前进度',
  59. 'match' => 'option',
  60. 'update' => 'text',
  61. 'option' => $step,
  62. 'list' => true,
  63. ),
  64. 'desc' => array
  65. (
  66. 'type' => 'varchar-800',
  67. 'name' => '日志描述',
  68. 'default' => '',
  69. 'desc' => '日志描述',
  70. 'match' => 'option',
  71. 'update' => 'text',
  72. 'search' => 'fulltext',
  73. 'list' => true,
  74. ),
  75. 'request_seq' => array
  76. (
  77. 'type' => 'varchar-800',
  78. 'name' => '请求流水号',
  79. 'default' => '',
  80. 'desc' => '请求流水号',
  81. 'match' => 'option',
  82. 'update' => 'text',
  83. 'search' => 'fulltext',
  84. 'list' => true,
  85. ),
  86. 'request' => array
  87. (
  88. 'type' => 'text-255',
  89. 'name' => '请求数据',
  90. 'default' => '',
  91. 'desc' => '请求数据',
  92. 'match' => 'option',
  93. 'update' => 'text',
  94. ),
  95. 'response' => array
  96. (
  97. 'type' => 'text-255',
  98. 'name' => '响应数据',
  99. 'default' => '',
  100. 'desc' => '响应数据',
  101. 'match' => 'option',
  102. 'update' => 'text',
  103. ),
  104. 'admin_id' => array
  105. (
  106. 'type' => 'int-11',
  107. 'name' => '管理员id',
  108. 'default' => '0',
  109. 'desc' => '管理员id',
  110. 'match' => 'is_numeric',
  111. 'update' => 'hidden',
  112. ),
  113. 'state' => array
  114. (
  115. 'type' => 'tinyint-1',
  116. 'name' => '状态',
  117. 'default' => '1',
  118. 'desc' => '请选择状态',
  119. 'match' => 'is_numeric',
  120. ),
  121. 'cdate' => array
  122. (
  123. 'type' => 'int-11',
  124. 'name' => '请求时间',
  125. 'match' => array('is_numeric', time()),
  126. 'desc' => '',
  127. # 只有insert时才生效
  128. //'insert' => true,
  129. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  130. ),
  131. ),
  132. 'manage' => array
  133. (
  134. 'insert' => false,
  135. 'edit' => false,
  136. 'delete' => false,
  137. ),
  138. );