| | |
| | | |
| | | import android.annotation.SuppressLint |
| | | import android.os.Environment |
| | | import cn.flightfeather.thirdapp.bean.* |
| | | import cn.flightfeather.thirdapp.bean.entity.* |
| | | import cn.flightfeather.thirdapp.bean.vo.ProblemlistVo |
| | | import cn.flightfeather.thirdapp.common.net.* |
| | | import cn.flightfeather.thirdapp.httpservice.InspectionService |
| | |
| | | /** |
| | | * 下载问题图片 |
| | | */ |
| | | fun downloadMediaFile(mediaFile:Mediafile, resultCallBack: ResultCallBack<File>) { |
| | | fun downloadMediaFile(mediaFile: Mediafile, resultCallBack: ResultCallBack<File>) { |
| | | val url: String = mediaFile.extension1 + mediaFile.guid + ".jpg" |
| | | retrofitImage.create(MediaFileService::class.java).downloadImage(url) |
| | | .enqueue(object : Callback<ResponseBody> { |