config.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. return [
  3. [
  4. 'name' => 'appId',
  5. 'title' => 'AppID',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => '1',
  9. 'rule' => 'required',
  10. 'msg' => '',
  11. 'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',
  12. 'ok' => '',
  13. 'extend' => '',
  14. ],
  15. [
  16. 'name' => 'secretId',
  17. 'title' => 'SecretId',
  18. 'type' => 'string',
  19. 'content' => [],
  20. 'value' => '1',
  21. 'rule' => 'required',
  22. 'msg' => '',
  23. 'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',
  24. 'ok' => '',
  25. 'extend' => '',
  26. ],
  27. [
  28. 'name' => 'secretKey',
  29. 'title' => 'SecretKey',
  30. 'type' => 'string',
  31. 'content' => [],
  32. 'value' => '1',
  33. 'rule' => 'required',
  34. 'msg' => '',
  35. 'tip' => '请前往腾讯控制台 > 访问管理 > API密钥',
  36. 'ok' => '',
  37. 'extend' => '',
  38. ],
  39. [
  40. 'name' => 'bucket',
  41. 'title' => '存储桶名称',
  42. 'type' => 'string',
  43. 'content' => [],
  44. 'value' => '1',
  45. 'rule' => 'required',
  46. 'msg' => '',
  47. 'tip' => '存储空间名称',
  48. 'ok' => '',
  49. 'extend' => '',
  50. ],
  51. [
  52. 'name' => 'region',
  53. 'title' => '地域名称',
  54. 'type' => 'string',
  55. 'content' => [],
  56. 'value' => 'ap-shanghai',
  57. 'rule' => 'required',
  58. 'msg' => '',
  59. 'tip' => '请输入地域简称,请注意使用英文',
  60. 'ok' => '',
  61. 'extend' => '',
  62. ],
  63. [
  64. 'name' => 'uploadmode',
  65. 'title' => '上传模式',
  66. 'type' => 'select',
  67. 'content' => [
  68. 'client' => '客户端直传(速度快,无备份)',
  69. 'server' => '服务器中转(占用服务器带宽,有备份)',
  70. ],
  71. 'value' => 'client',
  72. 'rule' => '',
  73. 'msg' => '',
  74. 'tip' => '',
  75. 'ok' => '',
  76. 'extend' => '',
  77. ],
  78. [
  79. 'name' => 'serverbackup',
  80. 'title' => '服务器中转模式备份',
  81. 'type' => 'radio',
  82. 'content' => [
  83. 1 => '备份(附件管理将产生2条记录)',
  84. 0 => '不备份',
  85. ],
  86. 'value' => '0',
  87. 'rule' => '',
  88. 'msg' => '',
  89. 'tip' => '服务器中转模式下是否备份文件',
  90. 'ok' => '',
  91. 'extend' => '',
  92. ],
  93. [
  94. 'name' => 'uploadurl',
  95. 'title' => '上传接口地址',
  96. 'type' => 'string',
  97. 'content' => [],
  98. 'value' => '1',
  99. 'rule' => 'required',
  100. 'msg' => '',
  101. 'tip' => '请输入你的上传接口地址',
  102. 'ok' => '',
  103. 'extend' => '',
  104. ],
  105. [
  106. 'name' => 'cdnurl',
  107. 'title' => 'CDN地址',
  108. 'type' => 'string',
  109. 'content' => [],
  110. 'value' => '1',
  111. 'rule' => 'required',
  112. 'msg' => '',
  113. 'tip' => '请配置你的CDN地址或在存储桶基础配置中获取',
  114. 'ok' => '',
  115. 'extend' => '',
  116. ],
  117. [
  118. 'name' => 'savekey',
  119. 'title' => '保存文件名',
  120. 'type' => 'string',
  121. 'content' => [],
  122. 'value' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
  123. 'rule' => 'required',
  124. 'msg' => '',
  125. 'tip' => '',
  126. 'ok' => '',
  127. 'extend' => '',
  128. ],
  129. [
  130. 'name' => 'expire',
  131. 'title' => '上传有效时长',
  132. 'type' => 'string',
  133. 'content' => [],
  134. 'value' => '600',
  135. 'rule' => 'required',
  136. 'msg' => '',
  137. 'tip' => '',
  138. 'ok' => '',
  139. 'extend' => '',
  140. ],
  141. [
  142. 'name' => 'maxsize',
  143. 'title' => '最大可上传',
  144. 'type' => 'string',
  145. 'content' => [],
  146. 'value' => '200M',
  147. 'rule' => 'required',
  148. 'msg' => '',
  149. 'tip' => '',
  150. 'ok' => '',
  151. 'extend' => '',
  152. ],
  153. [
  154. 'name' => 'mimetype',
  155. 'title' => '可上传后缀格式',
  156. 'type' => 'string',
  157. 'content' => [],
  158. 'value' => 'jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx,wav,mp4,mp3,pdf,svga',
  159. 'rule' => 'required',
  160. 'msg' => '',
  161. 'tip' => '',
  162. 'ok' => '',
  163. 'extend' => '',
  164. ],
  165. [
  166. 'name' => 'multiple',
  167. 'title' => '多文件上传',
  168. 'type' => 'bool',
  169. 'content' => [],
  170. 'value' => '1',
  171. 'rule' => 'required',
  172. 'msg' => '',
  173. 'tip' => '',
  174. 'ok' => '',
  175. 'extend' => '',
  176. ],
  177. [
  178. 'name' => 'thumbstyle',
  179. 'title' => '缩略图样式',
  180. 'type' => 'string',
  181. 'content' => [],
  182. 'value' => '',
  183. 'rule' => '',
  184. 'msg' => '',
  185. 'tip' => '用于附件管理缩略图样式,可使用:?imageMogr2/thumbnail/120x90',
  186. 'ok' => '',
  187. 'extend' => '',
  188. ],
  189. [
  190. 'name' => 'chunking',
  191. 'title' => '分片上传',
  192. 'type' => 'radio',
  193. 'content' => [
  194. 1 => '开启',
  195. 0 => '关闭',
  196. ],
  197. 'value' => '0',
  198. 'rule' => 'required',
  199. 'msg' => '',
  200. 'tip' => '',
  201. 'ok' => '',
  202. 'extend' => '',
  203. ],
  204. [
  205. 'name' => 'chunksize',
  206. 'title' => '分片大小',
  207. 'type' => 'number',
  208. 'content' => [],
  209. 'value' => '4194304',
  210. 'rule' => 'required',
  211. 'msg' => '',
  212. 'tip' => '',
  213. 'ok' => '',
  214. 'extend' => '',
  215. ],
  216. [
  217. 'name' => 'syncdelete',
  218. 'title' => '附件删除时是否同步删除文件',
  219. 'type' => 'bool',
  220. 'content' => [],
  221. 'value' => '0',
  222. 'rule' => 'required',
  223. 'msg' => '',
  224. 'tip' => '',
  225. 'ok' => '',
  226. 'extend' => '',
  227. ],
  228. ];