mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-27 04:57:39 +08:00
21 lines
362 B
PHP
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 ?: [];
|
|
}
|
|
|
|
}
|