1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 20:00:27 +08:00
2020-04-22 21:30:41 +08:00

26 lines
461 B
PHP

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