This commit is contained in:
mkm 2023-10-18 18:33:35 +08:00
parent ddd75f8a00
commit db496ef1e9

View File

@ -33,9 +33,15 @@ class IndexController
return view('index/view', ['name' => 'webman']);
}
public function json(Request $request)
public function demo1(Request $request)
{
return json(['code' => 0, 'msg' => 'ok']);
$data=[
['type'=>1,'uri'=>'https://goview.lihaink.cn/#/chart/preview/118'],
['type'=>1,'uri'=>'https://goview.lihaink.cn/#/chart/preview/115'],
['type'=>1,'uri'=>'https://www.baidu.com'],
['type'=>2,'uri'=>'https://worker-task.lihaink.cn/uploads/video/20231018/202310181533500589b3255.mp4'],
];
return json(['code' => 0, 'msg' => 'ok','data'=>$data]);
}
public function push(Request $request){