first commit
This commit is contained in:
27
pgserver/config/apiBusiness.php
Normal file
27
pgserver/config/apiBusiness.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
//跨域配置
|
||||
'CROSS_DOMAIN' => [
|
||||
'Access-Control-Allow-Origin' => '*',
|
||||
'Access-Control-Allow-Methods' => 'OPTIONS,POST,PUT,GET,DELETE',
|
||||
'Access-Control-Allow-Headers' => 'userId, ApiAuth, Category, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With',
|
||||
'Access-Control-Allow-Credentials' => 'true',
|
||||
],
|
||||
'ADMIN_LIST_DEFAULT' => 10,
|
||||
//后台登录状态维持时间[目前只有登录和解锁会重置登录时间]
|
||||
'ONLINE_TIME' => 43200000,//43200
|
||||
|
||||
//诚驰APP扫码登录
|
||||
'SCAN_AUTH_KEY' => 'Ll0%LpRM#u%CFCur',
|
||||
'SCAN_EXPIRETIME' => 600,
|
||||
];
|
||||
Reference in New Issue
Block a user