Commit 9553a145 authored by zhuwei's avatar zhuwei

注释

parent e4d8a757
...@@ -174,30 +174,13 @@ class ImageDepot extends Basic ...@@ -174,30 +174,13 @@ class ImageDepot extends Basic
} }
public function getUserMacAddress($mac_address){
echo 'Mac地址:'.$mac_address;
}
public function ceshi() public function ceshi()
{ {
$systemDiskInfo = $this->systemDiskInfo(); echo 'test';
} }
/**
* 系统磁盘使用详情
* @return string
*/
public function systemDiskInfo(){
//硬盘
$dt = round(@disk_total_space(".") / (1024 * 1024 * 1024), 3); //总
$df = round(@disk_free_space(".") / (1024 * 1024 * 1024), 3); //可用
$du = $dt - $df; //已用
$hdPercent = (floatval($dt) != 0) ? round($du / $dt * 100, 2) : 0;
$about = '总空间' . $dt.'G 已用' . $du.'G 空闲' . $df.'G 使用率' . $hdPercent.'%';
return $about;
}
} }
......
...@@ -349,7 +349,6 @@ Route::group('index', [ ...@@ -349,7 +349,6 @@ Route::group('index', [
'getImageDepotById' => ['index/ImageDepot/getImageDepotById', ['method' => 'get | post']],//根据ID获取记录 'getImageDepotById' => ['index/ImageDepot/getImageDepotById', ['method' => 'get | post']],//根据ID获取记录
'delImageDepot' => ['index/ImageDepot/delImageDepot', ['method' => 'get | post']],//删除 'delImageDepot' => ['index/ImageDepot/delImageDepot', ['method' => 'get | post']],//删除
'ceshi' => ['index/ImageDepot/ceshi', ['method' => 'get | post']],// 'ceshi' => ['index/ImageDepot/ceshi', ['method' => 'get | post']],//
'getUserMacAddress/:mac_address' => ['index/ImageDepot/getUserMacAddress', ['method' => 'get | post']],//
//运营数相关接口 //运营数相关接口
'operationChatUserNum' => ['index/OperationData/chatUserNum', ['method' => 'get | post']], 'operationChatUserNum' => ['index/OperationData/chatUserNum', ['method' => 'get | post']],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment