1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-27 21:10:24 +08:00
2021-04-08 19:58:30 +08:00

21 lines
362 B
PHP

<?php
namespace App\Services\Logic\Article;
use App\Caches\ArticleRelatedList as ArticleRelatedListCache;
use App\Services\Logic\Service as LogicService;
class RelatedList extends LogicService
{
public function handle($id)
{
$cache = new ArticleRelatedListCache();
$result = $cache->get($id);
return $result ?: [];
}
}