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