config.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. return [
  3. [
  4. 'name' => 'appId',
  5. 'title' => 'AppID',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => '1256103507',
  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' => 'AKIDOYU9Yk0NmuYx82qV1FCzZu0yreIghnTs',
  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' => 'NXQCsQzLT9akdHBzbx1iAMsLejZ0EB1e',
  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' => 'huxiukeji-bansheng-1256103507',
  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-nanjing',
  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' => 'uploadurl',
  80. 'title' => '上传接口地址',
  81. 'type' => 'string',
  82. 'content' => [],
  83. 'value' => 'https://huxiukeji-bansheng-1256103507.cos.ap-nanjing.myqcloud.com',
  84. 'rule' => 'required',
  85. 'msg' => '',
  86. 'tip' => '请输入你的上传接口地址',
  87. 'ok' => '',
  88. 'extend' => '',
  89. ],
  90. [
  91. 'name' => 'cdnurl',
  92. 'title' => 'CDN地址',
  93. 'type' => 'string',
  94. 'content' => [],
  95. 'value' => 'https://huxiukeji-bansheng-1256103507.file.myqcloud.com',
  96. 'rule' => 'required',
  97. 'msg' => '',
  98. 'tip' => '请配置你的CDN地址或在存储桶基础配置中获取',
  99. 'ok' => '',
  100. 'extend' => '',
  101. ],
  102. [
  103. 'name' => 'savekey',
  104. 'title' => '保存文件名',
  105. 'type' => 'string',
  106. 'content' => [],
  107. 'value' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
  108. 'rule' => 'required',
  109. 'msg' => '',
  110. 'tip' => '',
  111. 'ok' => '',
  112. 'extend' => '',
  113. ],
  114. [
  115. 'name' => 'expire',
  116. 'title' => '上传有效时长',
  117. 'type' => 'string',
  118. 'content' => [],
  119. 'value' => '600',
  120. 'rule' => 'required',
  121. 'msg' => '',
  122. 'tip' => '',
  123. 'ok' => '',
  124. 'extend' => '',
  125. ],
  126. [
  127. 'name' => 'maxsize',
  128. 'title' => '最大可上传',
  129. 'type' => 'string',
  130. 'content' => [],
  131. 'value' => '10M',
  132. 'rule' => 'required',
  133. 'msg' => '',
  134. 'tip' => '',
  135. 'ok' => '',
  136. 'extend' => '',
  137. ],
  138. [
  139. 'name' => 'mimetype',
  140. 'title' => '可上传后缀格式',
  141. 'type' => 'string',
  142. 'content' => [],
  143. 'value' => 'jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx,pcm,wav,speex,amr',
  144. 'rule' => 'required',
  145. 'msg' => '',
  146. 'tip' => '',
  147. 'ok' => '',
  148. 'extend' => '',
  149. ],
  150. [
  151. 'name' => 'multiple',
  152. 'title' => '多文件上传',
  153. 'type' => 'bool',
  154. 'content' => [],
  155. 'value' => '0',
  156. 'rule' => 'required',
  157. 'msg' => '',
  158. 'tip' => '',
  159. 'ok' => '',
  160. 'extend' => '',
  161. ],
  162. [
  163. 'name' => 'thumbstyle',
  164. 'title' => '缩略图样式',
  165. 'type' => 'string',
  166. 'content' => [],
  167. 'value' => '',
  168. 'rule' => '',
  169. 'msg' => '',
  170. 'tip' => '用于附件管理缩略图样式,可使用:?imageMogr2/thumbnail/120x90',
  171. 'ok' => '',
  172. 'extend' => '',
  173. ],
  174. [
  175. 'name' => 'chunking',
  176. 'title' => '分片上传',
  177. 'type' => 'radio',
  178. 'content' => [
  179. 1 => '开启',
  180. 0 => '关闭',
  181. ],
  182. 'value' => '1',
  183. 'rule' => 'required',
  184. 'msg' => '',
  185. 'tip' => '',
  186. 'ok' => '',
  187. 'extend' => '',
  188. ],
  189. [
  190. 'name' => 'chunksize',
  191. 'title' => '分片大小',
  192. 'type' => 'number',
  193. 'content' => [],
  194. 'value' => '4194304',
  195. 'rule' => 'required',
  196. 'msg' => '',
  197. 'tip' => '',
  198. 'ok' => '',
  199. 'extend' => '',
  200. ],
  201. [
  202. 'name' => 'syncdelete',
  203. 'title' => '附件删除时是否同步删除文件',
  204. 'type' => 'bool',
  205. 'content' => [],
  206. 'value' => '0',
  207. 'rule' => 'required',
  208. 'msg' => '',
  209. 'tip' => '',
  210. 'ok' => '',
  211. 'extend' => '',
  212. ],
  213. ];