config.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: Dean <zxxjjforever@163.com>
  8. // +----------------------------------------------------------------------
  9. return [
  10. 'accessKey' => [// 在后台插件配置表单中的键名 ,会是config[text]
  11. 'title' => 'AccessKey', // 表单的label标题
  12. 'type' => 'text',// 表单的类型:text,password,textarea,checkbox,radio,select等
  13. 'value' => '',// 表单的默认值
  14. "rule" => [
  15. "require" => true
  16. ],
  17. "message" => [
  18. "require" => 'AccessKey不能为空'
  19. ],
  20. 'tip' => '<a href="https://portal.qiniu.com/signup?invitation_type=1&invitation_key=1381750588" target="_blank">马上获取</a>,充值使用ThinkCMF七牛专属优惠码<a href="http://www.thinkcmf.com/qiniu/promotion_code.html" target="_blank">507670e8</a>有更多优惠,<a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/507454" target="_blank">查看帮助手册</a>' //表单的帮助提示
  21. ],
  22. 'secretKey' => [// 在后台插件配置表单中的键名 ,会是config[password]
  23. 'title' => 'SecretKey',
  24. 'type' => 'text',
  25. 'value' => '',
  26. "rule" => [
  27. "require" => true
  28. ],
  29. "message" => [
  30. "require" => 'SecretKey不能为空'
  31. ],
  32. 'tip' => '<a href="https://portal.qiniu.com/signup?invitation_type=1&invitation_key=1381750588" target="_blank">马上获取</a>, <a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/507454" target="_blank">查看帮助手册</a>'
  33. ],
  34. 'protocol' => [// 在后台插件配置表单中的键名 ,会是config[select]
  35. 'title' => '域名协议',
  36. 'type' => 'select',
  37. 'options' => [//select 和radio,checkbox的子选项
  38. 'http' => 'http',// 值=>显示
  39. 'https' => 'https',
  40. ],
  41. 'value' => 'http',
  42. "rule" => [
  43. "require" => true
  44. ],
  45. "message" => [
  46. "require" => '域名协议不能为空'
  47. ],
  48. 'tip' => ''
  49. ],
  50. 'domain' => [
  51. 'title' => '空间域名',
  52. 'type' => 'text',
  53. 'value' => '',
  54. "rule" => [
  55. "require" => true
  56. ],
  57. "message" => [
  58. "require" => '空间域名不能为空'
  59. ],
  60. 'tip' => ''
  61. ],
  62. 'bucket' => [
  63. 'title' => '空间名称',
  64. 'type' => 'text',
  65. 'value' => '',
  66. "rule" => [
  67. "require" => true
  68. ],
  69. "message" => [
  70. "require" => '空间名称不能为空'
  71. ],
  72. 'tip' => ''
  73. ],
  74. 'zone' => [// 在后台插件配置表单中的键名 ,会是config[select]
  75. 'title' => '存储区域',
  76. 'type' => 'select',
  77. 'options' => [//select 和radio,checkbox的子选项
  78. 'z0' => '华东',// 值=>显示
  79. 'z1' => '华北',
  80. 'z2' => '华南',
  81. 'na0' => '北美',
  82. 'as0' => '东南亚',
  83. ],
  84. 'value' => 'http',
  85. "rule" => [
  86. "require" => true
  87. ],
  88. "message" => [
  89. "require" => '存储区域不能为空'
  90. ],
  91. 'tip' => ''
  92. ],
  93. 'style_separator' => [
  94. 'title' => '样式分隔符',
  95. 'type' => 'text',
  96. 'value' => '!',
  97. // "rule" => [
  98. // "require" => true
  99. // ],
  100. // "message" => [
  101. // "require" => '样式分隔符不能为空'
  102. // ],
  103. 'tip' => ''
  104. ],
  105. 'styles_watermark' => [
  106. 'title' => '样式-水印',
  107. 'type' => 'explain',
  108. 'value' => 'watermark',
  109. // "rule" => [
  110. // "require" => true
  111. // ],
  112. // "message" => [
  113. // "require" => '样式-水印不能为空'
  114. // ],
  115. 'tip' => '请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置 处理接口<span style="color: red;">(请注意修改水印文字)</span>:<br>imageMogr2/auto-orient/thumbnail/1080x1080>/blur/1x0/quality/75|watermark/2/text/VGhpbmtDTUY=/font/5b6u6L2v6ZuF6buR/fontsize/500/fill/I0ZGRkZGRg==/dissolve/100/gravity/SouthEast/dx/10/dy/10'
  116. ],
  117. 'styles_avatar' => [
  118. 'title' => '样式-头像',
  119. 'type' => 'explain',
  120. 'value' => 'avatar',
  121. // "rule" => [
  122. // "require" => true
  123. // ],
  124. // "message" => [
  125. // "require" => '样式-头像不能为空'
  126. // ],
  127. 'tip' => '请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置 处理接口:<br>imageMogr2/auto-orient/thumbnail/!100x100r/gravity/Center/crop/100x100/quality/100/interlace/0'
  128. ],
  129. 'styles_thumbnail120x120' => [
  130. 'title' => '样式-缩略图120x120',
  131. 'type' => 'explain',
  132. 'value' => 'thumbnail120x120',
  133. // "rule" => [
  134. // "require" => true
  135. // ],
  136. // "message" => [
  137. // "require" => '样式-缩略图120x120不能为空'
  138. // ],
  139. 'tip' => '请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>处理接口:<br>imageMogr2/auto-orient/thumbnail/!120x120r/gravity/Center/crop/120x120/quality/100/interlace/0'
  140. ],
  141. 'styles_thumbnail300x300' => [
  142. 'title' => '样式-缩略图300x300',
  143. 'type' => 'explain',
  144. 'value' => 'thumbnail300x300',
  145. // "rule" => [
  146. // "require" => true
  147. // ],
  148. // "message" => [
  149. // "require" => '样式-缩略图300x300不能为空'
  150. // ],
  151. 'tip' => '请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>处理接口:<br>imageMogr2/auto-orient/thumbnail/!300x300r/gravity/Center/crop/300x300/quality/100/interlace/0'
  152. ],
  153. 'styles_thumbnail640x640' => [
  154. 'title' => '样式-缩略图640x640',
  155. 'type' => 'explain',
  156. 'value' => 'thumbnail640x640',
  157. // "rule" => [
  158. // "require" => true
  159. // ],
  160. // "message" => [
  161. // "require" => '样式-缩略图640x640不能为空'
  162. // ],
  163. 'tip' => '请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>处理接口:<br>imageMogr2/auto-orient/thumbnail/!640x640r/gravity/Center/crop/640x640/quality/100/interlace/0'
  164. ],
  165. 'styles_thumbnail1080x1080' => [
  166. 'title' => '样式-缩略图1080x1080',
  167. 'type' => 'explain',
  168. 'value' => 'thumbnail1080x1080',
  169. // "rule" => [
  170. // "require" => true
  171. // ],
  172. // "message" => [
  173. // "require" => '样式-缩略图1080x1080不能为空'
  174. // ],
  175. 'tip' => '请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>处理接口:<br>imageMogr2/auto-orient/thumbnail/!1080x1080r/gravity/Center/crop/1080x1080/quality/100/interlace/0'
  176. ],
  177. ];