Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
workbiu-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gxx
workbiu-admin
Commits
34df34d5
Commit
34df34d5
authored
Dec 12, 2017
by
gxx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-master' of 120.27.221.179:gxx123/workbiu-admin into dev-master
parents
d8e77991
d3a8f3e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
FileController.php
app/Http/Controllers/FileController.php
+4
-2
web.php
routes/web.php
+4
-0
No files found.
app/Http/Controllers/FileController.php
View file @
34df34d5
...
...
@@ -38,7 +38,8 @@ class FileController extends Controller
$result
=
$this
->
mFile
->
groupSpace
(
$group_id
);
$mbyte
=
ceil
(
$result
/
1048576
)
;
$finalspace
=
array
(
"usespace"
=>
$mbyte
);
$space
=
10
-
$mbyte
;
$finalspace
=
array
(
"space"
=>
$space
,
"usespace"
=>
$mbyte
);
$finalspace
=
json_encode
(
$finalspace
);
return
$finalspace
;
}
...
...
@@ -48,7 +49,8 @@ class FileController extends Controller
$group_id
=
$request
->
group_id
;
$result
=
$this
->
mFile
->
groupSpace
(
$group_id
);
$mbyte
=
$result
/
1048576
;
$finalspace
=
array
(
"usespace"
=>
$mbyte
);
$space
=
10
-
$mbyte
;
$finalspace
=
array
(
"space"
=>
$space
,
"usespace"
=>
$mbyte
);
$finalspace
=
json_encode
(
$finalspace
);
return
$finalspace
;
}
...
...
routes/web.php
View file @
34df34d5
...
...
@@ -116,7 +116,11 @@ Route::get('/',function (){return view('login');})->name('admin.login');
Route
::
get
(
'get_all'
,
'FileController@getAll'
)
->
name
(
'file.getAll'
);
Route
::
delete
(
'delete_file'
,
'FileController@delete'
)
->
name
(
'file.delete'
);
Route
::
get
(
'group_space'
,
'FileController@groupSpace'
)
->
name
(
'file.groupSpace'
);
<<<<<<<
HEAD
Route
::
get
(
'oss_space'
,
'FileController@ossSpace'
)
->
name
(
'file.ossSpace'
);
=======
Route
::
get
(
'oss_space'
,
'FileController@ossSpace'
)
->
name
(
'file.ossspace'
);
>>>>>>>
b17167244102ea0cfb09e3d1f3cb459cddf1c995
});
...
...
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