Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
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
杨昕
media-resource
Commits
ab1749ea
Commit
ab1749ea
authored
Aug 17, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testg
parent
6408475f
Pipeline
#10704
passed with stages
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
ModuleModel.php
app/Model/ModuleModel.php
+3
-15
No files found.
app/Model/ModuleModel.php
View file @
ab1749ea
...
@@ -12,25 +12,13 @@ class ModuleModel extends Eloquent
...
@@ -12,25 +12,13 @@ class ModuleModel extends Eloquent
{
{
public
static
function
getModuleList
(
$user
,
$category_id
){
public
static
function
getModuleList
(
$user
,
$category_id
){
if
(
empty
(
$result
[
'data'
])
){
if
(
$user
[
'name'
]
==
'offcn'
){
$module
=
file_get_contents
(
public_path
(
'
default
.json'
));
$module
=
file_get_contents
(
public_path
(
'
module
.json'
));
}
else
{
}
else
{
$module
=
file_get_contents
(
public_path
(
'media_category.json'
));
if
(
$user
[
'name'
]
==
'offcn'
){
$module
=
file_get_contents
(
public_path
(
'module.json'
));
}
else
{
$module
=
file_get_contents
(
public_path
(
'media_category.json'
));
}
}
}
// if ($user['name'] == 'offcn' ){
// $module = file_get_contents(public_path('module.json'));
// }else{
// $module = file_get_contents(public_path('media_category.json'));
// }
return
json_decode
(
$module
,
true
);
return
json_decode
(
$module
,
true
);
}
}
}
}
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