config.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <?php
  2. $video = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'config',
  11. # 显示给用户看的名称
  12. 'lang' => '基本配置',
  13. 'order' => 1,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => '系统ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. ),
  25. 'hr1' => array
  26. (
  27. 'name' => '通用设置',
  28. 'class' => '',//本项必须填写
  29. 'attr' => '',
  30. ),
  31. 'name' => array
  32. (
  33. 'type' => 'varchar-32',
  34. 'name' => '站点名称-用于显示网站的title',
  35. 'default' => '',
  36. 'desc' => '请输入站点名称',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. ),
  40. 'keywords' => array
  41. (
  42. 'type' => 'varchar-500',
  43. 'name' => '站点关键词-多个用逗号隔开',
  44. 'default' => '',
  45. 'desc' => '站点关键词',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. ),
  49. 'info' => array
  50. (
  51. 'type' => 'text-255',
  52. 'name' => '站点介绍-展示网站的介绍',
  53. 'default' => '',
  54. 'desc' => '请输入站点介绍',
  55. 'match' => 'is_string',
  56. 'update' => 'textarea',
  57. ),
  58. 'logo' => array
  59. (
  60. 'type' => 'varchar-150',
  61. 'name' => '站点logo',
  62. 'default' => '',
  63. 'desc' => '站点logo',
  64. 'match' => 'is_string',
  65. 'update' => 'image',
  66. 'key' => '1',
  67. 'place' => '150',
  68. ),
  69. 'xnr_pic' => array
  70. (
  71. 'type' => 'varchar-150',
  72. 'name' => '虚拟人封面图-图片尺寸822*542px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  73. 'default' => '',
  74. 'desc' => '虚拟人封面图',
  75. 'match' => 'is_string',
  76. 'update' => 'image',
  77. 'key' => '1',
  78. 'place' => '822*542',
  79. ),
  80. 'zwz_pic' => array
  81. (
  82. 'type' => 'varchar-150',
  83. 'name' => '造物主封面图-图片尺寸822*542px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  84. 'default' => '',
  85. 'desc' => '造物主封面图',
  86. 'match' => 'is_string',
  87. 'update' => 'image',
  88. 'key' => '1',
  89. 'place' => '822*542',
  90. ),
  91. 'weibo' => array
  92. (
  93. 'type' => 'varchar-500',
  94. 'name' => '微博地址-输入微博的地址',
  95. 'default' => '',
  96. 'desc' => '请输入微博地址',
  97. 'match' => 'option',
  98. 'update' => 'textarea',
  99. ),
  100. 'weixin_qrcode' => array
  101. (
  102. 'type' => 'varchar-150',
  103. 'name' => '微信二维码',
  104. 'default' => '',
  105. 'desc' => '微信二维码',
  106. 'match' => 'option',
  107. 'update' => 'image',
  108. 'key' => '1',
  109. 'place' => '150',
  110. ),
  111. /*
  112. 'email' => array
  113. (
  114. 'type' => 'varchar-500',
  115. 'name' => '联系邮箱',
  116. 'default' => '',
  117. 'desc' => '联系邮箱',
  118. 'match' => 'option',
  119. 'update' => 'text',
  120. ),
  121. */
  122. 'douyin' => array
  123. (
  124. 'type' => 'varchar-100',
  125. 'name' => '抖音账号',
  126. 'default' => '',
  127. 'desc' => '抖音账号',
  128. 'match' => 'option',
  129. 'update' => 'text',
  130. ),
  131. 'douyin_qrcode' => array
  132. (
  133. 'type' => 'varchar-150',
  134. 'name' => '抖音二维码',
  135. 'default' => '',
  136. 'desc' => '抖音二维码',
  137. 'match' => 'option',
  138. 'update' => 'image',
  139. 'key' => '1',
  140. 'place' => '150',
  141. ),
  142. 'bilibili' => array
  143. (
  144. 'type' => 'varchar-600',
  145. 'name' => 'B站地址',
  146. 'default' => '',
  147. 'desc' => 'B站地址',
  148. 'match' => 'option',
  149. 'update' => 'text',
  150. ),
  151. 'ins' => array
  152. (
  153. 'type' => 'varchar-100',
  154. 'name' => 'INS账号',
  155. 'default' => '',
  156. 'desc' => 'INS账号',
  157. 'match' => 'option',
  158. 'update' => 'text',
  159. ),
  160. 'cdate' => array
  161. (
  162. 'type' => 'int-11',
  163. 'name' => '录入时间',
  164. 'match' => array('is_numeric', time()),
  165. 'desc' => '',
  166. # 只有insert时才生效
  167. 'insert' => true,
  168. ),
  169. ),
  170. 'default' => array
  171. (
  172. 'col' => 'name,keywords, info,cdate',
  173. 'value' => array
  174. (
  175. '"虚拟人社区","虚拟人,社区", "虚拟人社区",' . time(),
  176. ),
  177. ),
  178. 'manage' => array
  179. (
  180. # 后台管理不要列表页
  181. 'list' => 'update',
  182. ),
  183. );