1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 19:44:02 +08:00
2020-05-16 19:49:58 +08:00

26 lines
483 B
PHP

<?php
namespace App\Services\Frontend\Course;
use App\Caches\CourseRelatedList as CourseRelatedListCache;
use App\Services\Frontend\CourseTrait;
use App\Services\Frontend\Service as FrontendService;
class RelatedList extends FrontendService
{
use CourseTrait;
public function handle($id)
{
$course = $this->checkCourse($id);
$cache = new CourseRelatedListCache();
$result = $cache->get($course->id);
return $result ?: [];
}
}