| | |
| | | |
| | | #if DEBUG |
| | | //let All_Url = "http://192.168.110.27:56666" //罗易胜 |
| | | let All_Url = "http://192.168.110.85:56666" //正式地址 |
| | | //let All_Url = "http://192.168.110.85:56666" //正式地址 |
| | | let All_Url = "http://192.168.110.80:56666" //正式地址 |
| | | let Game_Url = "https://try.daowepark.com" |
| | | //let Socket_Url = "192.168.110.22" |
| | | #else |
| | |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | |
| | | |
| | | /// 获取全部城市 |
| | | class func queryAllCity()->Observable<BaseResponse<[CityProfileModel]>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/other/base/store/queryAllCity") |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | } |
| | | |
| | | //2.0 |
| | | extension Services{ |
| | | /// 获取平台配置模块详情 |
| | | class func getHomeModule()->Observable<BaseResponse<BannerModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/other/base/homeModule/getHomeModule") |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | |
| | | |
| | | /// 获取世界杯列表 |
| | | /// - Parameters: |
| | | /// - id: 当前门店id |
| | | /// - content: 当前内容 |
| | | /// - gender:报名条件(0=全部,1=男,2=女 |
| | | /// - sort: 热度排序(1=正序,2=降序) |
| | | /// - storeId: 所在赛点 |
| | | class func worldCupList(id:Int,content:String?,gender:Int?,sort:Int?,storeId:Int?)->Observable<BaseResponse<[WorldCupListModel]>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/communityWorldCup/api/worldCup/getWorldCupList") |
| | | .append(key: "id", value: id) |
| | | .append(key: "content", value: content) |
| | | .append(key: "gender", value: gender) |
| | | .append(key: "storeId", value: storeId) |
| | | .append(key: "sort", value: sort) |
| | | .append(key: "lat", value: locationTool.currentLocation?.coordinate.latitude.string) |
| | | .append(key: "lon", value: locationTool.currentLocation?.coordinate.longitude.string) |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | } |
| | |
| | | default:break |
| | | } |
| | | }) |
| | | |
| | | } |
| | | } |