无故事王国
2023-11-21 58405a369e73cca7bd5ef2cef948e1944907c2c7
WanPai/Network/Services.swift
@@ -406,12 +406,13 @@
        return NetworkRequest.request(params: params, method: .post, progress: false)
    }
    class func queryCourseInfo(id:Int)->Observable<BaseResponse<CourseDetailModel>>{
   class func queryCourseInfo(id:Int,payId:Int? = nil)->Observable<BaseResponse<CourseDetailModel>>{
        let params = ParamsAppender.build(url: All_Url)
            .interface(url: "/course/api/course/queryCourseInfo")
            .append(key: "id", value: id)
            .append(key: "lat", value: locationTool.currentLocation?.coordinate.latitude.string)
            .append(key: "lon", value: locationTool.currentLocation?.coordinate.longitude.string)
         .append(key: "payId", value: payId)
        return NetworkRequest.request(params: params, method: .post, progress: true)
    }
@@ -591,7 +592,7 @@
    }
        /// 课后练习-课后视频列表
    static func exerciseCourseList(courseTypeId:Int?,search:String)->Observable<BaseResponse<[ExerciseVideoModel]>>{
    static func exerciseCourseList(courseTypeId:Int?,search:String? = nil)->Observable<BaseResponse<[ExerciseVideoModel]>>{
        let params = ParamsAppender.build(url: All_Url)
            .interface(url: "/course/api/startCource/afterSourceList")
            .append(key: "courseTypeId", value: courseTypeId)