1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 20:06:09 +08:00
2021-03-30 11:05:07 +08:00

26 lines
468 B
PHP

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