config.php
4.0 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
<?php
return [
[
'name' => 'qq',
'title' => 'QQ',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'scope' => 'get_user_info',
],
'value' => [
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'get_user_info',
],
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'wechat',
'title' => '微信公众号',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'callback' => '',
'scope' => 'snsapi_base',
],
'value' => [
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'snsapi_userinfo',
],
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'wechatweb',
'title' => '微信网站应用',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'callback' => '',
'scope' => 'snsapi_login',
],
'value' => [
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'snsapi_login',
],
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'weibo',
'title' => '微博',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'scope' => 'get_user_info',
],
'value' => [
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'get_user_info',
],
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'bindaccount',
'title' => '账号绑定',
'type' => 'radio',
'content' => [
1 => '开启',
0 => '关闭',
],
'value' => '1',
'rule' => 'required',
'msg' => '',
'tip' => '是否开启账号绑定,关闭则自动创建账号',
'ok' => '',
'extend' => '',
],
[
'name' => 'status',
'title' => '第三方登录开关',
'type' => 'checkbox',
'content' => [
'qq' => 'QQ',
'wechat' => '微信',
'weibo' => '微博',
],
'value' => 'qq,wechat,weibo',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '第三方登录开关',
'extend' => '',
],
[
'name' => 'rewrite',
'title' => '伪静态',
'type' => 'array',
'content' => [],
'value' => [
'index/index' => '/third$',
'index/connect' => '/third/connect/[:platform]',
'index/callback' => '/third/callback/[:platform]',
'index/bind' => '/third/bind/[:platform]',
'index/unbind' => '/third/unbind/[:platform]',
],
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => '__tips__',
'title' => '温馨提示',
'type' => 'array',
'content' => [],
'value' => '在微信内<b>微信登录</b>将调用微信公众号授权登录,微信外<b>微信登录</b>将调用微信网站应用授权登录',
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
],
];