stream(function () use ($id) { $key = str_replace('-','/',$id); $svg = RedisClusters::get('svg/'.$key, function () use ($key) { $viewHeight = 60; $svg = ""; $data = RedisClusters::get($key); if(is_array($data)){ $point = []; foreach ($data as $key => $value) { $point[] = ($key*10) . ',' . $viewHeight-($value/20)-3; } $svg .= ' 'image/svg+xml']); /* ———————————————— 原文作者:Summer 转自链接:https://learnku.com/laravel/wikis/25600 版权声明:著作权归作者所有。商业转载请联系作者获得授权,非商业转载请保留以上作者信息和原文链接。 */ } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // } }