You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.2 KiB
26 lines
1.2 KiB
<?php
|
|
|
|
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
|
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
|
header("Pragma: no-cache");
|
|
header("Content-Type:text/html;charset=utf-8");
|
|
header("Access-Control-Allow-Credentials: true");
|
|
header("Access-Control-Allow-Origin:*"); // 指定允许其他域名访问
|
|
header('Access-Control-Allow-Headers:Origin,X-Requested-With,Content-type,Accept'); // 响应头设置
|
|
header('Access-Control-Allow-Methods:GET, POST'); // 响应类型
|
|
|
|
date_default_timezone_set("Asia/Shanghai");
|
|
|
|
define('LOG_PATH_BASE', DATACENTER_ROOT.'/logs/');
|
|
define('LOG_TRACK_SAVE_PATH', LOG_PATH_BASE.'track/%s/%s.log'); // 监控日志的路径,如2014-02-14/1(检测类型).log
|
|
|
|
// 小程序获取openid
|
|
define('MP_APPID',"wxb840b419525a63e2"); // 公众号APPID
|
|
define('MP_SECRET',"85b9058789a45b6077e8380365ff4bbc"); // 公众号秘钥
|
|
define('MP_GET_OPENID_HREF',"https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&grant_type=authorization_code&code=%s");
|
|
|
|
define('JWT_KEY','3f8aef32b8b77c6e');
|
|
|
|
define('CONTACT_US_IMG_URL','');
|
|
|
|
|
|
|