Commit d471a54f authored by 谈海涛's avatar 谈海涛

生成订单

parent 652c68ed
...@@ -67,4 +67,18 @@ class Course extends Client ...@@ -67,4 +67,18 @@ class Course extends Client
return self::call('course.getCourseDetails', compact('courseIds')); return self::call('course.getCourseDetails', compact('courseIds'));
} }
/**
* 生成订单记录
*
* @param int $userId 用户id
* @param int $courseId 课程id
* @param string $orderId 订单id
*
* @return bool
*/
public static function addCourseOrder($userId, $courseId, $orderId){
return self::call('course.addCourseOrder', compact('userId','courseId','orderId'));
}
} }
\ 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