config.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?php
  2. return [
  3. [
  4. 'name' => 'accessKey',
  5. 'title' => 'accessKey',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => 'NftfFB78RUKKGv-_J2zP2kcbPumhb6TOZ4D3cG4k',
  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' => 'KWHbBFkSI_nEQPIvi8a8Mc4keW23NtXqD2gWG_ZY',
  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' => 'qymh123',
  33. 'rule' => 'required',
  34. 'msg' => '',
  35. 'tip' => '存储空间名称',
  36. 'ok' => '',
  37. 'extend' => '',
  38. ],
  39. [
  40. 'name' => 'uploadurl',
  41. 'title' => '上传接口地址',
  42. 'type' => 'select',
  43. 'content' => [
  44. 'https://upload-z0.qiniup.com' => '华东 https://upload-z0.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. ],
  50. 'value' => 'https://upload-z0.qiniup.com',
  51. 'rule' => 'required',
  52. 'msg' => '',
  53. 'tip' => '推荐选择最近的地址',
  54. 'ok' => '',
  55. 'extend' => '',
  56. ],
  57. [
  58. 'name' => 'cdnurl',
  59. 'title' => 'CDN地址',
  60. 'type' => 'string',
  61. 'content' => [],
  62. 'value' => 'http://001.jnjdkj.cn',
  63. 'rule' => 'required',
  64. 'msg' => '',
  65. 'tip' => '未绑定CDN的话可使用七牛分配的测试域名',
  66. 'ok' => '',
  67. 'extend' => '',
  68. ],
  69. [
  70. 'name' => 'uploadmode',
  71. 'title' => '上传模式',
  72. 'type' => 'select',
  73. 'content' => [
  74. 'client' => '客户端直传(速度快,无备份)',
  75. 'server' => '服务器中转(占用服务器带宽,可备份)',
  76. ],
  77. 'value' => 'client',
  78. 'rule' => '',
  79. 'msg' => '',
  80. 'tip' => '启用服务器中转时务必配置操作员和密码',
  81. 'ok' => '',
  82. 'extend' => '',
  83. ],
  84. [
  85. 'name' => 'savekey',
  86. 'title' => '保存文件名',
  87. 'type' => 'string',
  88. 'content' => [],
  89. 'value' => '/uploads/$(year)$(mon)$(day)/$(etag)$(ext)',
  90. 'rule' => 'required',
  91. 'msg' => '',
  92. 'tip' => '',
  93. 'ok' => '',
  94. 'extend' => '',
  95. ],
  96. [
  97. 'name' => 'expire',
  98. 'title' => '上传有效时长',
  99. 'type' => 'string',
  100. 'content' => [],
  101. 'value' => '600',
  102. 'rule' => 'required',
  103. 'msg' => '',
  104. 'tip' => '',
  105. 'ok' => '',
  106. 'extend' => '',
  107. ],
  108. [
  109. 'name' => 'maxsize',
  110. 'title' => '最大可上传',
  111. 'type' => 'string',
  112. 'content' => [],
  113. 'value' => '100M',
  114. 'rule' => 'required',
  115. 'msg' => '',
  116. 'tip' => '',
  117. 'ok' => '',
  118. 'extend' => '',
  119. ],
  120. [
  121. 'name' => 'mimetype',
  122. 'title' => '可上传后缀格式',
  123. 'type' => 'string',
  124. 'content' => [],
  125. 'value' => 'jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx,exe,apk,php,h,cpp,java,dll,lib',
  126. 'rule' => 'required',
  127. 'msg' => '',
  128. 'tip' => '',
  129. 'ok' => '',
  130. 'extend' => '',
  131. ],
  132. [
  133. 'name' => 'multiple',
  134. 'title' => '多文件上传',
  135. 'type' => 'radio',
  136. 'content' => [
  137. 1 => '开启',
  138. 0 => '关闭',
  139. ],
  140. 'value' => '0',
  141. 'rule' => 'required',
  142. 'msg' => '',
  143. 'tip' => '',
  144. 'ok' => '',
  145. 'extend' => '',
  146. ],
  147. [
  148. 'name' => 'thumbstyle',
  149. 'title' => '缩略图样式',
  150. 'type' => 'string',
  151. 'content' => [],
  152. 'value' => '?imageView2/2/w/120/h/90/q/80',
  153. 'rule' => '',
  154. 'msg' => '',
  155. 'tip' => '用于附件管理缩略图样式,可使用:?imageView2/2/w/120/h/90/q/80',
  156. 'ok' => '',
  157. 'extend' => '',
  158. ],
  159. [
  160. 'name' => 'chunking',
  161. 'title' => '分片上传',
  162. 'type' => 'radio',
  163. 'content' => [
  164. 1 => '开启',
  165. 0 => '关闭',
  166. ],
  167. 'value' => '1',
  168. 'rule' => 'required',
  169. 'msg' => '',
  170. 'tip' => '',
  171. 'ok' => '',
  172. 'extend' => '',
  173. ],
  174. [
  175. 'name' => 'chunksize',
  176. 'title' => '分片大小',
  177. 'type' => 'number',
  178. 'content' => [],
  179. 'value' => '4194304',
  180. 'rule' => 'required',
  181. 'msg' => '',
  182. 'tip' => '固定大小,不能修改',
  183. 'ok' => '',
  184. 'extend' => 'readonly',
  185. ],
  186. [
  187. 'name' => 'syncdelete',
  188. 'title' => '附件删除时是否同步删除文件',
  189. 'type' => 'bool',
  190. 'content' => [],
  191. 'value' => '1',
  192. 'rule' => 'required',
  193. 'msg' => '',
  194. 'tip' => '',
  195. 'ok' => '',
  196. 'extend' => '',
  197. ],
  198. [
  199. 'name' => '__tips__',
  200. 'title' => '温馨提示',
  201. 'type' => '',
  202. 'content' => [],
  203. 'value' => '在使用之前请注册七牛账号并进行认证,注册链接:<a href="https://portal.qiniu.com/signup?code=3l79xtos9w9qq" target="_blank">https://portal.qiniu.com/signup?code=3l79xtos9w9qq</a>',
  204. 'rule' => '',
  205. 'msg' => '',
  206. 'tip' => '',
  207. 'ok' => '',
  208. 'extend' => '',
  209. ],
  210. ];