1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 19:44:02 +08:00
2020-09-17 21:29:29 +08:00

26 lines
439 B
PHP

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