Commit ab1749ea by 杨昕

testg

parent 6408475f
Pipeline #10704 passed with stages
in 43 seconds
......@@ -12,23 +12,11 @@ class ModuleModel extends Eloquent
{
public static function getModuleList($user,$category_id){
if (empty($result['data'])){
$module = file_get_contents(public_path('default.json'));
}else{
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);
......
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