|
@@ -91,31 +91,12 @@ extension MCHttpUtil{
|
|
|
print("解析失败:\(error)")
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//
|
|
|
-// //获取上传进度
|
|
|
-// upload.uploadProgress(queue: DispatchQueue.global(qos: .utility)){progress in
|
|
|
-// print("图片上传进度:\(progress.fractionCompleted)")
|
|
|
-// }
|
|
|
|
|
|
case .failure(let encodingError)://打印连接失败原因
|
|
|
print(encodingError)
|
|
|
error!("\(encodingError)")
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-// RxAlamofire.upload(multipartFormData: { multipartFormData in
|
|
|
-//
|
|
|
-// let dateFormatter = DateFormatter()
|
|
|
-// dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
|
|
|
-// let date = Date()
|
|
|
-// let dateString = dateFormatter.string(from: date)
|
|
|
-// multipartFormData.append(imageDate, withName: "file",fileName: "\(dateString).jpeg",mimeType: "image/jpeg")
|
|
|
-//
|
|
|
-// }, to: requestUrl,headers: headers,
|
|
|
}
|
|
|
|
|
|
}
|