checkCourse($id); $crListCache = new CourseRelatedListCache(); $relatedCourses = $crListCache->get($course->id); if (!$relatedCourses) { return []; } $imgBaseUrl = kg_img_base_url(); foreach ($relatedCourses as &$course) { $course['cover'] = $imgBaseUrl . $course['cover']; } return $relatedCourses; } }