Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
9553a145
Commit
9553a145
authored
Dec 27, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释
parent
e4d8a757
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
19 deletions
+1
-19
ImageDepot.php
application/index/controller/ImageDepot.php
+1
-18
route.php
application/route.php
+0
-1
No files found.
application/index/controller/ImageDepot.php
View file @
9553a145
...
@@ -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
;
}
}
}
...
...
application/route.php
View file @
9553a145
...
@@ -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'
]],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment