Commit f51145bf authored by wangjj's avatar wangjj

获取推荐免费或付费课程

parent 8f69b203
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/5/31
* Time: 16:49
*/
use internalApi\xue\Course;
require __DIR__.'/_init.php';
Course::setDebug(true);
print_r(Course::getRecommendCourseShow());
\ No newline at end of file
...@@ -35,4 +35,16 @@ class Course extends Client ...@@ -35,4 +35,16 @@ class Course extends Client
return self::call('course.getSectionInfo', compact('sectionId')); return self::call('course.getSectionInfo', compact('sectionId'));
} }
/**
* 获取推荐免费或付费课程
* @param int $fee 0是免费 1是付费
* @param $num
* @return mixed
*/
public static function getRecommendCourseShow($fee=0,$num=1)
{
return self::call('course.getRecommendCourseShow', compact('fee','num'));
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment