config.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <?php
  2. return [
  3. [
  4. 'name' => 'accessKey',
  5. 'title' => 'accessKey',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => 'cJ8g0dOk0XZY0BedaqB5NmvtVAPmjugzdFma20Kr',
  9. 'rule' => 'required',
  10. 'msg' => '',
  11. 'tip' => '请在个人中心 > 密钥管理中获取 > AK',
  12. 'ok' => '',
  13. 'extend' => '',
  14. ],
  15. [
  16. 'name' => 'secretKey',
  17. 'title' => 'secretKey',
  18. 'type' => 'string',
  19. 'content' => [],
  20. 'value' => 'dVHdqWzyf-bo-h6Ozz04bHouGaonSnwhZl747aae',
  21. 'rule' => 'required',
  22. 'msg' => '',
  23. 'tip' => '请在个人中心 > 密钥管理中获取 > SK',
  24. 'ok' => '',
  25. 'extend' => '',
  26. ],
  27. [
  28. 'name' => 'bucket',
  29. 'title' => 'bucket',
  30. 'type' => 'string',
  31. 'content' => [],
  32. 'value' => 'jianxunshejiao',
  33. 'rule' => 'required;bucket',
  34. 'msg' => '',
  35. 'tip' => '存储空间名称',
  36. 'ok' => '',
  37. 'extend' => 'data-rule-bucket="[/^[0-9a-z_\\-]{3,63}$/, \'请输入正确的Bucket名称\']"',
  38. ],
  39. [
  40. 'name' => 'uploadurl',
  41. 'title' => '上传接口地址',
  42. 'type' => 'select',
  43. 'content' => [
  44. 'https://upload.qiniup.com' => '华东 https://upload.qiniup.com',
  45. 'https://upload-z1.qiniup.com' => '华北 https://upload-z1.qiniup.com',
  46. 'https://upload-z2.qiniup.com' => '华南 https://upload-z2.qiniup.com',
  47. 'https://upload-na0.qiniup.com' => '北美-洛杉矶 https://upload-na0.qiniup.com',
  48. 'https://upload-as0.qiniup.com' => '亚太-新加坡 https://upload-as0.qiniup.com',
  49. 'https://up-cn-east-2.qiniup.com' => '华东 浙江2 https://up-cn-east-2.qiniup.com',
  50. ],
  51. 'value' => 'https://upload.qiniup.com',
  52. 'rule' => 'required',
  53. 'msg' => '',
  54. 'tip' => '推荐选择最近的地址',
  55. 'ok' => '',
  56. 'extend' => '',
  57. ],
  58. [
  59. 'name' => 'cdnurl',
  60. 'title' => 'CDN地址',
  61. 'type' => 'string',
  62. 'content' => [],
  63. 'value' => 'http://oss.jianxun8.com',
  64. 'rule' => 'required;cdnurl',
  65. 'msg' => '',
  66. 'tip' => '未绑定CDN的话可使用七牛分配的测试域名',
  67. 'ok' => '',
  68. 'extend' => 'data-rule-cdnurl="[/^http(s)?:\\/\\/.*$/, \'必需以http(s)://开头\']"',
  69. ],
  70. [
  71. 'name' => 'uploadmode',
  72. 'title' => '上传模式',
  73. 'type' => 'select',
  74. 'content' => [
  75. 'client' => '客户端直传(速度快,无备份)',
  76. 'server' => '服务器中转(占用服务器带宽,可备份)',
  77. ],
  78. 'value' => 'client',
  79. 'rule' => '',
  80. 'msg' => '',
  81. 'tip' => '启用服务器中转时务必配置操作员和密码',
  82. 'ok' => '',
  83. 'extend' => '',
  84. ],
  85. [
  86. 'name' => 'serverbackup',
  87. 'title' => '服务器中转模式备份',
  88. 'type' => 'radio',
  89. 'content' => [
  90. 1 => '备份(附件管理将产生2条记录)',
  91. 0 => '不备份',
  92. ],
  93. 'value' => '0',
  94. 'rule' => '',
  95. 'msg' => '',
  96. 'tip' => '服务器中转模式下是否备份文件',
  97. 'ok' => '',
  98. 'extend' => '',
  99. ],
  100. [
  101. 'name' => 'savekey',
  102. 'title' => '保存文件名',
  103. 'type' => 'string',
  104. 'content' => [],
  105. 'value' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
  106. 'rule' => 'required',
  107. 'msg' => '',
  108. 'tip' => '',
  109. 'ok' => '',
  110. 'extend' => '',
  111. ],
  112. [
  113. 'name' => 'expire',
  114. 'title' => '上传有效时长',
  115. 'type' => 'string',
  116. 'content' => [],
  117. 'value' => '600',
  118. 'rule' => 'required',
  119. 'msg' => '',
  120. 'tip' => '用户停留页面上传有效时长,单位秒',
  121. 'ok' => '',
  122. 'extend' => '',
  123. ],
  124. [
  125. 'name' => 'maxsize',
  126. 'title' => '最大可上传',
  127. 'type' => 'string',
  128. 'content' => [],
  129. 'value' => '200m',
  130. 'rule' => 'required',
  131. 'msg' => '',
  132. 'tip' => '',
  133. 'ok' => '',
  134. 'extend' => '',
  135. ],
  136. [
  137. 'name' => 'mimetype',
  138. 'title' => '可上传后缀格式',
  139. 'type' => 'string',
  140. 'content' => [],
  141. 'value' => 'jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx,wav,mp4,mp3,pdf,svga',
  142. 'rule' => 'required',
  143. 'msg' => '',
  144. 'tip' => '',
  145. 'ok' => '',
  146. 'extend' => '',
  147. ],
  148. [
  149. 'name' => 'multiple',
  150. 'title' => '多文件上传',
  151. 'type' => 'radio',
  152. 'content' => [
  153. 1 => '开启',
  154. 0 => '关闭',
  155. ],
  156. 'value' => '0',
  157. 'rule' => 'required',
  158. 'msg' => '',
  159. 'tip' => '',
  160. 'ok' => '',
  161. 'extend' => '',
  162. ],
  163. [
  164. 'name' => 'thumbstyle',
  165. 'title' => '缩略图样式',
  166. 'type' => 'string',
  167. 'content' => [],
  168. 'value' => '',
  169. 'rule' => '',
  170. 'msg' => '',
  171. 'tip' => '用于后台列表缩略图样式,可使用:?imageView2/2/w/120/h/90/q/80',
  172. 'ok' => '',
  173. 'extend' => '',
  174. ],
  175. [
  176. 'name' => 'chunking',
  177. 'title' => '分片上传',
  178. 'type' => 'radio',
  179. 'content' => [
  180. 1 => '开启',
  181. 0 => '关闭',
  182. ],
  183. 'value' => '0',
  184. 'rule' => 'required',
  185. 'msg' => '',
  186. 'tip' => '',
  187. 'ok' => '',
  188. 'extend' => '',
  189. ],
  190. [
  191. 'name' => 'chunksize',
  192. 'title' => '分片大小',
  193. 'type' => 'number',
  194. 'content' => [],
  195. 'value' => '4194304',
  196. 'rule' => 'required',
  197. 'msg' => '',
  198. 'tip' => '固定大小,不能修改',
  199. 'ok' => '',
  200. 'extend' => 'readonly',
  201. ],
  202. [
  203. 'name' => 'syncdelete',
  204. 'title' => '附件删除时是否同步删除云存储文件',
  205. 'type' => 'bool',
  206. 'content' => [],
  207. 'value' => '0',
  208. 'rule' => 'required',
  209. 'msg' => '',
  210. 'tip' => '',
  211. 'ok' => '',
  212. 'extend' => '',
  213. ],
  214. [
  215. 'name' => 'apiupload',
  216. 'title' => 'API接口使用云存储',
  217. 'type' => 'bool',
  218. 'content' => [],
  219. 'value' => '1',
  220. 'rule' => 'required',
  221. 'msg' => '',
  222. 'tip' => '',
  223. 'ok' => '',
  224. 'extend' => '',
  225. ],
  226. [
  227. 'name' => 'noneedlogin',
  228. 'title' => '免登录上传',
  229. 'type' => 'checkbox',
  230. 'content' => [
  231. 'api' => 'API',
  232. 'index' => '前台',
  233. 'admin' => '后台',
  234. ],
  235. 'value' => 'api,index,admin',
  236. 'rule' => '',
  237. 'msg' => '',
  238. 'tip' => '',
  239. 'ok' => '',
  240. 'extend' => '',
  241. ],
  242. ];