config.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. return [
  3. [
  4. 'name' => 'app_id',
  5. 'title' => 'app_id',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => 'asdasd',
  9. 'rule' => 'required',
  10. 'msg' => '',
  11. 'tip' => '',
  12. 'ok' => '',
  13. 'extend' => '',
  14. ],
  15. [
  16. 'name' => 'app_key',
  17. 'title' => 'app_key',
  18. 'type' => 'string',
  19. 'content' => [],
  20. 'value' => 'asdasda',
  21. 'rule' => 'required',
  22. 'msg' => '',
  23. 'tip' => '',
  24. 'ok' => '',
  25. 'extend' => '',
  26. ],
  27. [
  28. 'name' => 'bucket',
  29. 'title' => 'Bucket',
  30. 'type' => 'string',
  31. 'content' => [],
  32. 'value' => 'dasdasda',
  33. 'rule' => 'required',
  34. 'msg' => '',
  35. 'tip' => '阿里云OSS的空间名',
  36. 'ok' => '',
  37. 'extend' => '',
  38. ],
  39. [
  40. 'name' => 'endpoint',
  41. 'title' => 'EndPoint',
  42. 'type' => 'string',
  43. 'content' => [],
  44. 'value' => 'oss-cn-shenzhen.aliyuncs.com',
  45. 'rule' => 'required',
  46. 'msg' => '',
  47. 'tip' => '如果是服务器中转模式,可填写内网域名',
  48. 'ok' => '',
  49. 'extend' => '',
  50. ],
  51. [
  52. 'name' => 'cdnurl',
  53. 'title' => 'CDN地址',
  54. 'type' => 'string',
  55. 'content' => [],
  56. 'value' => 'http://yourbucket.oss-cn-shenzhen.aliyuncs.com',
  57. 'rule' => 'required',
  58. 'msg' => '',
  59. 'tip' => '如果你启用了CDN,请填写CDN地址',
  60. 'ok' => '',
  61. 'extend' => '',
  62. ],
  63. 6 => [
  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' => 'savekey',
  80. 'title' => '保存文件名',
  81. 'type' => 'string',
  82. 'content' => [],
  83. 'value' => '/uploads/{year}{mon}{day}/{filemd5}{.suffix}',
  84. 'rule' => 'required',
  85. 'msg' => '',
  86. 'tip' => '',
  87. 'ok' => '',
  88. 'extend' => '',
  89. ],
  90. [
  91. 'name' => 'expire',
  92. 'title' => '上传有效时长',
  93. 'type' => 'string',
  94. 'content' => [],
  95. 'value' => '600',
  96. 'rule' => 'required',
  97. 'msg' => '',
  98. 'tip' => '',
  99. 'ok' => '',
  100. 'extend' => '',
  101. ],
  102. [
  103. 'name' => 'maxsize',
  104. 'title' => '最大可上传',
  105. 'type' => 'string',
  106. 'content' => [],
  107. 'value' => '10M',
  108. 'rule' => 'required',
  109. 'msg' => '',
  110. 'tip' => '',
  111. 'ok' => '',
  112. 'extend' => '',
  113. ],
  114. [
  115. 'name' => 'mimetype',
  116. 'title' => '可上传后缀格式',
  117. 'type' => 'string',
  118. 'content' => [],
  119. 'value' => '*',
  120. 'rule' => 'required',
  121. 'msg' => '',
  122. 'tip' => '',
  123. 'ok' => '',
  124. 'extend' => '',
  125. ],
  126. [
  127. 'name' => 'multiple',
  128. 'title' => '多文件上传',
  129. 'type' => 'bool',
  130. 'content' => [],
  131. 'value' => '0',
  132. 'rule' => 'required',
  133. 'msg' => '',
  134. 'tip' => '',
  135. 'ok' => '',
  136. 'extend' => '',
  137. ],
  138. [
  139. 'name' => 'chunking',
  140. 'title' => '分片上传',
  141. 'type' => 'bool',
  142. 'content' => [],
  143. 'value' => '0',
  144. 'rule' => 'required',
  145. 'msg' => '',
  146. 'tip' => '',
  147. 'ok' => '',
  148. 'extend' => '',
  149. ],
  150. ];