-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
51 lines (44 loc) · 1.44 KB
/
index.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
<?php
$t1 = microtime(true);
//error_reporting(E_ALL & ~E_NOTICE);
error_reporting(7);
header('Content-language: zh');
header('Content-type: text/html; charset=utf-8');
header('X-Powered-By: JAVA');
header('Pragma: no-cache');
header('Cache-Control: private',false); // required for certain browsers
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s') . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
session_cache_limiter('private,must-revalidate');
session_start();
date_default_timezone_set('Asia/Shanghai');//时区配置
set_time_limit($set_time = 3600);
define('ROOT', __DIR__);
require 'vendor/autoload.php';
require 'function.php';
\System\Lib\DB::instance(\App\Config::$db1);
$pager = app('\System\Lib\Page');
//weixin 验证
//$options = [
// 'debug' => true,
// 'app_id' => 'wxf2d48e37c9ee3c05',
// 'secret' => '678477b3fbb4081b048df279cc38be5e',
// 'token' => 'print',
// // 'aes_key' => null, // 可选
// 'log' => [
// 'level' => 'debug',
// 'file' => ROOT . '/public/easywechat.log', // XXX: 绝对路径!!!!
// ]
//];
//$app = new \EasyWeChat\Foundation\Application($options);
//$app->server->serve()->send();
//exit;
$routes=array(
'chat'=>'Chat',
'member'=>'Member',
'sellManage'=>'SellManage'
);
\System\Lib\Application::start($routes);
$t2 = microtime(true);
//echo '<hr>耗时'.round($t2-$t1,3).'秒';