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.
28 lines
1022 B
28 lines
1022 B
<?php
|
|
|
|
namespace app\admin\controller;
|
|
|
|
class Test extends AdminBaseController
|
|
{
|
|
public function index()
|
|
{
|
|
$appNumber = env('APP_NUMBER');
|
|
$appRootPath = app()->getRootPath();
|
|
$appAppPath = app()->getAppPath();
|
|
$memoryLimit = ini_get('memory_limit');
|
|
$uploadMax = ini_get('upload_max_filesize');
|
|
$postMax = ini_get('post_max_size');
|
|
$max_execution_time = ini_get('max_execution_time'); //最大执行时间(秒)
|
|
$max_input_time = ini_get('max_input_time'); // 输入解析时间限制
|
|
return json(['code' => '0', 'msg' => 'SUCCESS', 'data' => [
|
|
'memory_limit' => $memoryLimit,
|
|
'upload_max' => $uploadMax,
|
|
'post_max' => $postMax,
|
|
'max_execution_time' => $max_execution_time,
|
|
'max_input_time' => $max_input_time,
|
|
'app_root_path' => $appRootPath,
|
|
'app_path' => $appAppPath,
|
|
'app_number' => $appNumber
|
|
]]);
|
|
}
|
|
}
|