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

26 lines
475 B
PHP

<?php
namespace App\Services\Frontend\Topic;
use App\Caches\TopicCourseList as TopicCourseListCache;
use App\Services\Frontend\Service as FrontendService;
use App\Services\Frontend\TopicTrait;
class CourseList extends FrontendService
{
use TopicTrait;
public function handle($id)
{
$topic = $this->checkTopicCache($id);
$cache = new TopicCourseListCache();
$result = $cache->get($topic->id);
return $result ?: [];
}
}