This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
77 lines (67 loc) · 1.77 KB
/
config.php
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
<?php
date_default_timezone_set('Asia/Shanghai');
Flight::set('dbconfig', [
// required
'database_type' => 'MySQL',
'database_name' => 'fy_user',
'server' => 'localhost',
'port' => 3306,
'username' => '',
'password' => '',
'charset' => 'utf8',
// driver_option for connection, read more from http://www.php.net/manual/en/pdo.setattribute.php
'option' => [
PDO::ATTR_CASE => PDO::CASE_NATURAL
]
]);
// 2018.8 Discarded
Flight::set('cacheconfig', [
// required
'database_type' => 'Elastic_REST',
'server' => 'localhost',
'port' => 9200,
'username' => '',
'password' => '',
'charset' => 'utf8',
]);
Flight::set('sysconfig',[
'user_type' => 'username',
'user_id' => 'user_id',
'local_auth_table' => 'LocalAuth',
'user_info_table' => 'UserInfo',
'app_table' => 'App',
'role_table' => 'Role',
'perm_table' => 'Permission',
'role_perm_table' => 'Role_Perm',
'user_role_table' => 'User_Role',
'otp_table' => 'OTP',
'sid_table' => 'Session',
'wechat_table' => 'WeChatAuth',
'vip_table' => 'VIP',
// lifetime(s)
'session_life' => 259200,
'token_life' => 86399,
'otp_cell_life' => 599,
'otp_cell_frequency' => 149,
]);
Flight::set('apiconfig',[
// sms api
'sms_api' => "SMS_Aliyun",
'sms_accessid' => "",
'sms_access_secret' => "",
'sms_sign' => "飞扬俱乐部",
'sms_template' => "",
/*
'sms_api' => "SMS_Wangjian",
'sms_accessid' => "",
'sms_access_secret' => "",
'sms_sign' => "飞扬俱乐部",
'sms_template' => "",
*/
// geetest api
'captcha_id' => "",
'captcha_pkey' => "",
// wechat_miniapp api
'wma_appid' => '',
'wma_appsecret' => ''
]);