config.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <?php
  2. $code = array
  3. (
  4. 1 => '用户ID',
  5. 2 => '随机数字',
  6. 3 => '随机数字+字母',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'config',
  12. # 显示给用户看的名称
  13. 'lang' => '基本配置',
  14. 'order' => 1,
  15. # 数据结构
  16. 'struct' => array
  17. (
  18. 'id' => array
  19. (
  20. 'type' => 'int-11',
  21. 'name' => '系统ID',
  22. 'default' => '',
  23. 'desc' => '',
  24. 'match' => 'is_numeric',
  25. ),
  26. 'hr1' => array
  27. (
  28. 'name' => '基本信息',
  29. 'class' => '',//本项必须填写
  30. 'attr' => '',
  31. ),
  32. 'name' => array
  33. (
  34. 'type' => 'varchar-32',
  35. 'name' => '系统名称',
  36. 'default' => '',
  37. 'desc' => '请输入系统名称',
  38. 'match' => 'is_string',
  39. 'update' => 'text',
  40. ),
  41. 'logo' => array
  42. (
  43. 'type' => 'varchar-150',
  44. 'name' => '系统logo-200X200',
  45. 'default' => '',
  46. 'desc' => '请选择系统logo',
  47. 'match' => 'is_string',
  48. //'update' => 'image',
  49. 'key' => '1',
  50. 'place' => '160X160',
  51. ),
  52. 'info' => array
  53. (
  54. 'type' => 'text-255',
  55. 'name' => '系统介绍',
  56. 'default' => '',
  57. 'desc' => '请输入系统介绍',
  58. 'match' => 'option',
  59. 'update' => 'textarea',
  60. ),
  61. 'hr2' => array
  62. (
  63. 'name' => 'SEO信息',
  64. 'class' => '',//本项必须填写
  65. 'attr' => '',
  66. ),
  67. 'title' => array
  68. (
  69. 'type' => 'varchar-50',
  70. 'name' => '系统title',
  71. 'default' => '',
  72. 'desc' => '请输入系统标题',
  73. 'match' => 'is_string',
  74. 'update' => 'text',
  75. ),
  76. 'keyword' => array
  77. (
  78. 'type' => 'varchar-50',
  79. 'name' => '系统keyword',
  80. 'default' => '',
  81. 'desc' => '请输入系统关键词',
  82. 'match' => 'is_string',
  83. 'update' => 'text',
  84. ),
  85. 'description' => array
  86. (
  87. 'type' => 'varchar-150',
  88. 'name' => '系统description',
  89. 'default' => '',
  90. 'desc' => '请输入系统描述',
  91. 'match' => 'is_string',
  92. 'update' => 'textarea',
  93. ),
  94. 'hr3' => array
  95. (
  96. 'name' => '版权与介绍',
  97. 'class' => '',//本项必须填写
  98. 'attr' => '',
  99. ),
  100. 'copyright' => array
  101. (
  102. 'type' => 'varchar-200',
  103. 'name' => '版权信息',
  104. 'default' => '',
  105. 'desc' => '请输入版权信息',
  106. 'match' => 'is_string',
  107. 'update' => 'textarea',
  108. ),
  109. 'icp' => array
  110. (
  111. 'type' => 'varchar-200',
  112. 'name' => 'icp备案信息-填写别的信息也可以的',
  113. 'default' => '',
  114. 'desc' => '请输入icp备案信息',
  115. 'match' => 'is_string',
  116. 'update' => 'textarea',
  117. ),
  118. 'code' => array
  119. (
  120. 'type' => 'text-255',
  121. 'name' => '尾部代码-一般用于填写统计代码',
  122. 'default' => '',
  123. 'desc' => '请输入尾部代码',
  124. 'match' => 'option',
  125. 'update' => 'textarea',
  126. ),
  127. 'hr4' => array
  128. (
  129. 'name' => '其他配置',
  130. 'class' => '',//本项必须填写
  131. 'attr' => '',
  132. ),
  133. 'usercode' => array
  134. (
  135. 'type' => 'int-11',
  136. 'name' => '邀请码生成设置-使用用户ID肯定不会出现重复,使用随机数会出现重复,系统去重时会影响程序执行效率',
  137. 'default' => '1',
  138. 'desc' => '邀请码生成设置',
  139. 'match' => 'is_numeric',
  140. 'option' => $code,
  141. 'update' => 'select',
  142. //'list' => true,
  143. ),
  144. 'code_len' => array
  145. (
  146. 'type' => 'int-11',
  147. 'name' => '邀请码长度',
  148. 'default' => '6',
  149. 'desc' => '邀请码长度',
  150. 'match' => 'is_numeric',
  151. 'update' => 'text',
  152. ),
  153. 'avatar' => array
  154. (
  155. 'type' => 'varchar-150',
  156. 'name' => '用户默认头像-宽度为200*200的图片',
  157. 'default' => '',
  158. 'desc' => '用户默认头像',
  159. 'match' => 'option',
  160. 'update' => 'image',
  161. 'key' => '1',
  162. 'place' => '150',
  163. ),
  164. 'wechat' => array
  165. (
  166. 'type' => 'varchar-100',
  167. 'name' => '在线客服微信号',
  168. 'default' => '',
  169. 'desc' => '在线客服微信号',
  170. 'match' => 'option',
  171. 'update' => 'text',
  172. ),
  173. 'score_name' => array
  174. (
  175. 'type' => 'varchar-200',
  176. 'name' => '积分名称',
  177. 'default' => '',
  178. 'desc' => '积分名称',
  179. 'match' => 'is_string',
  180. 'update' => 'text',
  181. ),
  182. 'score_name_ext' => array
  183. (
  184. 'type' => 'varchar-200',
  185. 'name' => '积分单位',
  186. 'default' => '',
  187. 'desc' => '积分名称',
  188. 'match' => 'is_string',
  189. 'update' => 'text',
  190. ),
  191. 'report_name' => array
  192. (
  193. 'type' => 'varchar-200',
  194. 'name' => '报告名称',
  195. 'default' => '',
  196. 'desc' => '报告名称',
  197. 'match' => 'is_string',
  198. 'update' => 'text',
  199. ),
  200. 'group_name' => array
  201. (
  202. 'type' => 'varchar-200',
  203. 'name' => '战队名称',
  204. 'default' => '',
  205. 'desc' => '战队名称',
  206. 'match' => 'is_string',
  207. 'update' => 'text',
  208. ),
  209. 'exchange' => array
  210. (
  211. 'type' => 'int-11',
  212. 'name' => '积分兑换比例-积分兑换元的比例,输入1则1个积分兑换1元,输入2则2个积分兑换1元',
  213. 'default' => '1',
  214. 'desc' => '积分兑换比例',
  215. 'match' => 'is_string',
  216. 'update' => 'text',
  217. ),
  218. 'exchange_min' => array
  219. (
  220. 'type' => 'int-11',
  221. 'name' => '积分最低兑换数量',
  222. 'default' => '10',
  223. 'desc' => '积分最低兑换数量',
  224. 'match' => 'is_string',
  225. 'update' => 'text',
  226. ),
  227. 'cdate' => array
  228. (
  229. 'type' => 'int-11',
  230. 'name' => '录入时间',
  231. 'match' => array('is_numeric', time()),
  232. 'desc' => '',
  233. # 只有insert时才生效
  234. 'insert' => true,
  235. ),
  236. ),
  237. 'default' => array
  238. (
  239. 'col' => 'name,info,title,keyword,description,copyright,icp,score_name,score_name_ext,report_name,group_name,cdate',
  240. 'value' => array
  241. (
  242. '"嗨赚","做任务赚钱花-嗨赚任务系统","嗨赚任务系统","嗨赚,赚钱,任务系统","做任务赚钱花-嗨赚任务系统","Made With By Dever Hiz","京ICP备15006344号","金币","枚","报告","小队",' . time(),
  243. ),
  244. ),
  245. 'manage' => array
  246. (
  247. # 后台管理不要列表页
  248. 'list' => 'update',
  249. ),
  250. );