Commit ab1749ea by 杨昕

testg

parent 6408475f
Pipeline #10704 passed with stages
in 43 seconds
...@@ -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);
} }
} }
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