auth.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?php
  2. $type = array
  3. (
  4. 1 => '个人',
  5. 2 => '个体户',
  6. 3 => '企业',
  7. );
  8. $status = array
  9. (
  10. 1 => '已认证',
  11. 2 => '未认证',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'auth',
  17. # 显示给用户看的名称
  18. 'lang' => '认证管理',
  19. # 是否显示在后台菜单
  20. 'order' => 9,
  21. 'menu' => false,
  22. # 数据结构
  23. 'struct' => array
  24. (
  25. 'id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => 'ID',
  29. 'default' => '',
  30. 'desc' => '',
  31. 'match' => 'is_numeric',
  32. ),
  33. 'uid' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => '用户名',
  37. 'default' => '0',
  38. 'desc' => '请选择用户',
  39. 'match' => 'is_numeric',
  40. 'update' => 'hidden',
  41. 'search' => array
  42. (
  43. 'api' => 'user/info-like',
  44. 'col' => 'search',
  45. 'result' => 'id',
  46. ),
  47. 'value' => Dever::input('search_option_uid'),
  48. 'list' => 'Dever::load("user/lib/info.get#name", {uid})',
  49. ),
  50. 'name' => array
  51. (
  52. 'type' => 'varchar-100',
  53. 'name' => '真实姓名',
  54. 'default' => '',
  55. 'desc' => '真实姓名',
  56. 'match' => 'is_string',
  57. 'update' => 'text',
  58. 'search' => 'fulltext',
  59. 'list' => true,
  60. ),
  61. 'tel' => array
  62. (
  63. 'type' => 'varchar-50',
  64. 'name' => '联系电话',
  65. 'default' => '',
  66. 'desc' => '联系电话',
  67. 'match' => 'is_string',
  68. 'update' => 'text',
  69. 'search' => 'fulltext',
  70. 'list' => true,
  71. ),
  72. 'email' => array
  73. (
  74. 'type' => 'varchar-50',
  75. 'name' => '联系邮箱',
  76. 'default' => '',
  77. 'desc' => '联系邮箱',
  78. 'match' => 'option',
  79. 'update' => 'text',
  80. 'search' => 'fulltext',
  81. 'list' => true,
  82. ),
  83. 'area' => array
  84. (
  85. 'type' => 'varchar-500',
  86. 'name' => '城市地区',
  87. 'default' => '',
  88. 'desc' => '城市地区',
  89. 'match' => 'option',
  90. 'search' => 'linkage',
  91. 'update' => 'linkage',
  92. 'option' => Dever::url('api.get?level_total=3', 'area'),
  93. 'list' => 'Dever::load("area/api.string", "{area}")',
  94. ),
  95. 'address' => array
  96. (
  97. 'type' => 'varchar-1000',
  98. 'name' => '联系地址',
  99. 'default' => '',
  100. 'desc' => '联系地址',
  101. 'match' => 'option',
  102. 'update' => 'text',
  103. 'list' => true,
  104. ),
  105. 'idcard' => array
  106. (
  107. 'type' => 'varchar-150',
  108. 'name' => '身份证号',
  109. 'default' => '',
  110. 'desc' => '身份证号',
  111. 'match' => 'option',
  112. 'update' => 'text',
  113. 'list' => true,
  114. ),
  115. 'type' => array
  116. (
  117. 'type' => 'tinyint-1',
  118. 'name' => '认证身份',
  119. 'default' => '1',
  120. 'desc' => '认证身份',
  121. 'match' => 'is_numeric',
  122. 'update' => 'radio',
  123. 'search' => 'select',
  124. 'option' => $type,
  125. 'control' => 'type',
  126. 'list' => true,
  127. ),
  128. 'idcard_front' => array
  129. (
  130. 'type' => 'varchar-150',
  131. 'name' => '身份证正面-如果是个人,这里上传联系人身份证,如果是个体户或者企业,这里上传法人身份证',
  132. 'default' => '',
  133. 'desc' => '身份证正面',
  134. 'match' => 'option',
  135. 'update' => 'image',
  136. 'key' => '8',
  137. ),
  138. 'idcard_back' => array
  139. (
  140. 'type' => 'varchar-150',
  141. 'name' => '身份证背面-如果是个人,这里上传联系人身份证,如果是个体户或者企业,这里上传法人身份证',
  142. 'default' => '',
  143. 'desc' => '身份证背面',
  144. 'match' => 'option',
  145. 'update' => 'image',
  146. 'key' => '8',
  147. ),
  148. 'company_license' => array
  149. (
  150. 'type' => 'varchar-150',
  151. 'name' => '营业执照',
  152. 'default' => '',
  153. 'desc' => '企业营业执照',
  154. 'match' => 'option',
  155. 'update' => 'image',
  156. 'key' => '8',
  157. 'show' => 'identity=2,3',
  158. ),
  159. 'company_name' => array
  160. (
  161. 'type' => 'varchar-200',
  162. 'name' => '企业全称',
  163. 'default' => '',
  164. 'desc' => '企业全称',
  165. 'match' => 'option',
  166. //'update' => 'text',
  167. 'show' => 'identity=2,3',
  168. ),
  169. 'company_number' => array
  170. (
  171. 'type' => 'varchar-200',
  172. 'name' => '社会信用代码',
  173. 'default' => '',
  174. 'desc' => '社会信用代码',
  175. 'match' => 'option',
  176. //'update' => 'text',
  177. 'show' => 'identity=2,3',
  178. ),
  179. 'status' => array
  180. (
  181. 'type' => 'int-11',
  182. 'name' => '状态',
  183. 'default' => '1',
  184. 'desc' => '状态',
  185. 'match' => 'is_numeric',
  186. 'update' => 'select',
  187. 'option' => $status,
  188. 'search' => 'select',
  189. 'list' => true,
  190. ),
  191. 'state' => array
  192. (
  193. 'type' => 'tinyint-1',
  194. 'name' => '状态',
  195. 'default' => '1',
  196. 'desc' => '请选择状态',
  197. 'match' => 'is_numeric',
  198. ),
  199. 'cdate' => array
  200. (
  201. 'type' => 'int-11',
  202. 'name' => '录入时间',
  203. 'match' => array('is_numeric', time()),
  204. 'desc' => '',
  205. # 只有insert时才生效
  206. 'insert' => true,
  207. //'search' => 'date',
  208. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  209. ),
  210. ),
  211. 'manage' => array
  212. (
  213. 'delete' => false,
  214. //'edit' => false,
  215. 'insert' => false,
  216. # 列表
  217. 'list_button' => array
  218. (
  219. //'fast_add' => array('账户操作', 'push&project=account&uid={id}'),
  220. ),
  221. ),
  222. );