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

26 lines
495 B
PHP

<?php
namespace App\Services\Frontend\Package;
use App\Caches\PackageCourseList as PackageCourseListCache;
use App\Services\Frontend\PackageTrait;
use App\Services\Frontend\Service as FrontendService;
class CourseList extends FrontendService
{
use PackageTrait;
public function handle($id)
{
$package = $this->checkPackageCache($id);
$cache = new PackageCourseListCache();
$courses = $cache->get($package->id);
return $courses ?: [];
}
}