-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.php
100 lines (91 loc) · 2.68 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/*
* 全局网站配置文件
*/
return [
'IS_DB_DEBUG' => false,
// 数据库(主库)(必须存在,请勿删除)
"DB_MASTER" => array(
"host" => "127.0.0.1",
'user' => 'xxxxx',
"password" => "xxxxx",
"dbName" => "xxxxx"
),
//测试
"DB_MASTER" => array(
"host" => "127.0.0.1",
'user' => 'xxxxx',
"password" => "xxxxx",
"dbName" => "xxxxx"
),
// 只读数据库
"DB_READ" => array(
"host" => "127.0.0.1",
'user' => 'xxxxx',
"password" => "xxxxx",
"dbName" => "xxxxx"
),
// 旧数据库
"DB_OLD" => array(
"host" => "",
'user' => '',
"password" => "",
"dbName" => "",
),
// memcached配置
/* 'MEMCACHE_CONFIG' => array(
'host' => array(
'host' => '',
'port' => '11212'
),
array(
'host' => '',
'port' => '11213'
)
), */
//memcached配置
'MEMCACHE_CONFIG' => array(
array(
'host' => '127.0.0.1',
'port' => '13562'
),
),
//redis配置
'REDIS_CONFIG' => array(
'host' => '',
'port' => '',
'auth' => '',
'connectType' => 'connect' //pconnect && connect
),
/* // 微信配置
'WEIXIN_CONFIG' => array(
'token' => '61e303b6638e23dafc4713c43002b4b4', // 填写你设定的key
'encodingaeskey' => '', // 填写加密用的EncodingAESKey
'appid' => 'wxfd18311ddcb8de73', // 填写高级调用功能的app id
'appsecret' => '8841c34efe9b69f56e3fb12f681b9017'
), // 填写高级调用功能的密钥 */
// 测试
'WEIXIN_CONFIG' => array(
'token' => 'xxxxxxxx', // 填写你设定的key
'encodingaeskey' => 'xxxxxxxxxxxx', // 填写加密用的EncodingAESKey
'appid' => 'xxxxxxxxxxxxx', // 填写高级调用功能的app id
'appsecret' => 'xxxxxxxxxxxxxxxxxxxx',
), // 填写高级调用功能的密钥
//微信支付配置
'WEIXIN_PAY_CONFIG' => array(
'appid' => 'xxxxxxx',
'mchid' => 'xxxxxx', //商户号
'key' => 'xxxxxxxxxxxxxxxx', //key
//证书路径,注意应该填写绝对路径
'SSLCERT_PATH' => '/disk2/ftp/buy/www/cert/apiclient_cert.pem',
'SSLKEY_PATH' => '/disk2/ftp/buy/www/cert/apiclient_key.pem',
//异步通知url,商户根据实际开发过程设定
'NOTIFY_URL' => gethost() . '/Api/Callback/order',
//curl超时设置
'CURL_TIMEOUT' => 30,
),
//支付宝配置参数(待完善)
'MSM_URL' => 'http://211.147.239.62:9050/cgi-bin/sendsms?',
'MSM_ACCOUNT' => 'ytyg@GZAA',
'MSM_PWD' => 'YYG-Hz2-X3W-pJ9',
];