宽窄优行-由【嘉易行】项目成品而来
无故事王国
2023-05-25 dc1998fc1ac124f6b9a0e434ccf91103dd936409
OKProject/Class/Logistics(小件物流)/ViewModels/LositcsViewModel.swift
@@ -36,7 +36,7 @@
    ///  获取价格 
    func queryLogisticsUnitPrice()-> Observable<Result<LogisticsModel?,Error>>{
        return APIManager.shared.provider.rx
            .request(.queryLogisticsUnitPrice(endAddress: endAddress.value, startLonLat: startLonLat.value, type: type.value.parame()))
            .request(.queryLogisticsUnitPrice(endAddress: endAddress.value, startLonLat: startLonLat.value, type: type.value.rawValue))
            .mapThenValidate(LogisticsModel.self)
            .catchError { Single.just(.failure($0)) }
            .asObservable()