Files
pgserver3.0/pgserver/config/apiBusiness.php
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

27 lines
1.3 KiB
PHP

<?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,
];