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.
47 lines
1.9 KiB
47 lines
1.9 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
|
|
|
|
define('TCM_DOMAIN', 'http://tcm.pengda.checkcopy.com');
|
|
define('CSS_URL', '//tcm.pengda.checkcopy.com');
|
|
|
|
// 小程序获取openid
|
|
define('MP_APPID',"wxb840b419525a63e2"); // 公众号APPID
|
|
define('MP_SECRET',"85b9058789a45b6077e8380365ff4bbc"); // 公众号秘钥
|
|
|
|
define('MP_GET_OPENID_HREF',"https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&grant_type=authorization_code&js_code=%s");
|
|
|
|
define('JWT_KEY','3f8aef32b8b77c6e');
|
|
|
|
define('CONTACT_US_IMG_URL', TCM_DOMAIN.'/images/contact_us.png');
|
|
|
|
$GLOBALS['notice_mail_list'] = array(
|
|
'wangpd5@163.com' => array(
|
|
'host' => 'smtp.163.com',
|
|
'password' => 'GTKEOWXEGEUOERNR'
|
|
),
|
|
'1026652509@qq.com' => array(
|
|
'host' => 'smtp.qq.com',
|
|
'password' => 'ausuogizwarnbfej'
|
|
),
|
|
);
|
|
define('RQ_USER_CASE_DATA', 'rq_user_case_data_%s_%d');
|
|
define('RQ_USER_CASE_HTML_URL', TCM_DOMAIN . '/export_pdf?key=%s');
|
|
define('USER_CASE_PDF_PATH', DATACENTER_ROOT.'/tcm_pdf/%d/');
|
|
define('USER_CASE_PDF_URL', TCM_DOMAIN.'/case_pdf/%d/%s.pdf');
|
|
|
|
define('CODE_LOGIN_EXIPRE', 40002);
|
|
|
|
|
|
|