config.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?php
  2. return array (
  3. 0 =>
  4. array (
  5. 'name' => 'accessKeyId',
  6. 'title' => 'AccessKey ID',
  7. 'type' => 'string',
  8. 'content' =>
  9. array (
  10. ),
  11. 'value' => 'LTAIH2H5ow3XxjX6',
  12. 'rule' => 'required',
  13. 'msg' => '',
  14. 'tip' => '',
  15. 'ok' => '',
  16. 'extend' => '',
  17. ),
  18. 1 =>
  19. array (
  20. 'name' => 'accessKeySecret',
  21. 'title' => 'AccessKey Secret',
  22. 'type' => 'string',
  23. 'content' =>
  24. array (
  25. ),
  26. 'value' => '47OgCZgItbW9SrkhyUeIz9Quene4ww',
  27. 'rule' => 'required',
  28. 'msg' => '',
  29. 'tip' => '',
  30. 'ok' => '',
  31. 'extend' => '',
  32. ),
  33. 2 =>
  34. array (
  35. 'name' => 'bucket',
  36. 'title' => 'Bucket名称',
  37. 'type' => 'string',
  38. 'content' =>
  39. array (
  40. ),
  41. 'value' => '6dbcn',
  42. 'rule' => 'required;bucket',
  43. 'msg' => '',
  44. 'tip' => '阿里云OSS的空间名',
  45. 'ok' => '',
  46. 'extend' => 'data-rule-bucket="[/^[0-9a-z_\\-]{3,63}$/, \'请输入正确的Bucket名称\']"',
  47. ),
  48. 3 =>
  49. array (
  50. 'name' => 'endpoint',
  51. 'title' => 'Endpoint',
  52. 'type' => 'string',
  53. 'content' =>
  54. array (
  55. ),
  56. 'value' => 'oss-cn-beijing.aliyuncs.com',
  57. 'rule' => 'required;endpoint',
  58. 'msg' => '',
  59. 'tip' => '请填写从阿里云存储获取的Endpoint',
  60. 'ok' => '',
  61. 'extend' => 'data-rule-endpoint="[/^(?!http(s)?:\\/\\/).*$/, \'不能以http(s)://开头\']"',
  62. ),
  63. 4 =>
  64. array (
  65. 'name' => 'cdnurl',
  66. 'title' => 'CDN地址',
  67. 'type' => 'string',
  68. 'content' =>
  69. array (
  70. ),
  71. 'value' => 'https://6dbcn.oss-cn-beijing.aliyuncs.com',
  72. 'rule' => 'required;cdnurl',
  73. 'msg' => '',
  74. 'tip' => '请填写CDN地址,必须以http(s)://开头',
  75. 'ok' => '',
  76. 'extend' => 'data-rule-cdnurl="[/^http(s)?:\\/\\/.*$/, \'必需以http(s)://开头\']"',
  77. ),
  78. 5 =>
  79. array (
  80. 'name' => 'uploadmode',
  81. 'title' => '上传模式',
  82. 'type' => 'select',
  83. 'content' =>
  84. array (
  85. 'server' => '服务器中转(占用服务器带宽,可备份)',
  86. ),
  87. 'value' => 'server',
  88. 'rule' => '',
  89. 'msg' => '',
  90. 'tip' => '',
  91. 'ok' => '',
  92. 'extend' => '',
  93. ),
  94. 6 =>
  95. array (
  96. 'name' => 'serverbackup',
  97. 'title' => '服务器中转模式备份',
  98. 'type' => 'radio',
  99. 'content' =>
  100. array (
  101. 1 => '备份(附件管理将产生2条记录)',
  102. 0 => '不备份',
  103. ),
  104. 'value' => '0',
  105. 'rule' => '',
  106. 'msg' => '',
  107. 'tip' => '服务器中转模式下是否备份文件',
  108. 'ok' => '',
  109. 'extend' => '',
  110. ),
  111. 7 =>
  112. array (
  113. 'name' => 'savekey',
  114. 'title' => '保存文件名',
  115. 'type' => 'string',
  116. 'content' =>
  117. array (
  118. ),
  119. 'value' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
  120. 'rule' => 'required',
  121. 'msg' => '',
  122. 'tip' => '',
  123. 'ok' => '',
  124. 'extend' => '',
  125. ),
  126. 8 =>
  127. array (
  128. 'name' => 'expire',
  129. 'title' => '上传有效时长',
  130. 'type' => 'string',
  131. 'content' =>
  132. array (
  133. ),
  134. 'value' => '600',
  135. 'rule' => 'required',
  136. 'msg' => '',
  137. 'tip' => '用户停留页面上传有效时长,单位秒',
  138. 'ok' => '',
  139. 'extend' => '',
  140. ),
  141. 9 =>
  142. array (
  143. 'name' => 'maxsize',
  144. 'title' => '最大可上传',
  145. 'type' => 'string',
  146. 'content' =>
  147. array (
  148. ),
  149. 'value' => '10M',
  150. 'rule' => 'required',
  151. 'msg' => '',
  152. 'tip' => '',
  153. 'ok' => '',
  154. 'extend' => '',
  155. ),
  156. 10 =>
  157. array (
  158. 'name' => 'mimetype',
  159. 'title' => '可上传后缀格式',
  160. 'type' => 'string',
  161. 'content' =>
  162. array (
  163. ),
  164. 'value' => 'jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx,mp4',
  165. 'rule' => 'required',
  166. 'msg' => '',
  167. 'tip' => '',
  168. 'ok' => '',
  169. 'extend' => '',
  170. ),
  171. 11 =>
  172. array (
  173. 'name' => 'multiple',
  174. 'title' => '多文件上传',
  175. 'type' => 'bool',
  176. 'content' =>
  177. array (
  178. ),
  179. 'value' => '0',
  180. 'rule' => 'required',
  181. 'msg' => '',
  182. 'tip' => '',
  183. 'ok' => '',
  184. 'extend' => '',
  185. ),
  186. 12 =>
  187. array (
  188. 'name' => 'thumbstyle',
  189. 'title' => '缩略图样式',
  190. 'type' => 'string',
  191. 'content' =>
  192. array (
  193. ),
  194. 'value' => '',
  195. 'rule' => '',
  196. 'msg' => '',
  197. 'tip' => '用于后台列表缩略图样式,可使用:?x-oss-process=image/resize,m_lfit,w_120,h_90',
  198. 'ok' => '',
  199. 'extend' => '',
  200. ),
  201. 13 =>
  202. array (
  203. 'name' => 'chunking',
  204. 'title' => '分片上传',
  205. 'type' => 'radio',
  206. 'content' =>
  207. array (
  208. 1 => '开启',
  209. 0 => '关闭',
  210. ),
  211. 'value' => '0',
  212. 'rule' => 'required',
  213. 'msg' => '',
  214. 'tip' => '',
  215. 'ok' => '',
  216. 'extend' => '',
  217. ),
  218. 14 =>
  219. array (
  220. 'name' => 'chunksize',
  221. 'title' => '分片大小',
  222. 'type' => 'number',
  223. 'content' =>
  224. array (
  225. ),
  226. 'value' => '4194304',
  227. 'rule' => 'required',
  228. 'msg' => '',
  229. 'tip' => '',
  230. 'ok' => '',
  231. 'extend' => '',
  232. ),
  233. 15 =>
  234. array (
  235. 'name' => 'syncdelete',
  236. 'title' => '附件删除时是否同步删除文件',
  237. 'type' => 'bool',
  238. 'content' =>
  239. array (
  240. ),
  241. 'value' => '1',
  242. 'rule' => 'required',
  243. 'msg' => '',
  244. 'tip' => '',
  245. 'ok' => '',
  246. 'extend' => '',
  247. ),
  248. 16 =>
  249. array (
  250. 'name' => 'apiupload',
  251. 'title' => 'API接口使用云存储',
  252. 'type' => 'bool',
  253. 'content' =>
  254. array (
  255. ),
  256. 'value' => '0',
  257. 'rule' => 'required',
  258. 'msg' => '',
  259. 'tip' => '',
  260. 'ok' => '',
  261. 'extend' => '',
  262. ),
  263. 17 =>
  264. array (
  265. 'name' => 'noneedlogin',
  266. 'title' => '免登录上传',
  267. 'type' => 'checkbox',
  268. 'content' =>
  269. array (
  270. 'api' => 'API',
  271. 'index' => '前台',
  272. 'admin' => '后台',
  273. ),
  274. 'value' => '',
  275. 'rule' => '',
  276. 'msg' => '',
  277. 'tip' => '',
  278. 'ok' => '',
  279. 'extend' => '',
  280. ),
  281. );