opt
This commit is contained in:
@@ -12,10 +12,7 @@ import com.zhidao.roadcondition.event.GetImageSuccessEvent
|
||||
import com.zhidao.roadcondition.event.LatLngStickyEventBus
|
||||
import com.zhidao.roadcondition.model.proxy.INFO_TYPE_IMG
|
||||
import com.zhidao.roadcondition.model.proxy.INFO_TYPE_VIDEO
|
||||
import com.zhidao.roadcondition.util.CarNet_Cos_Upload
|
||||
import com.zhidao.roadcondition.util.LocationUtil
|
||||
import com.zhidao.roadcondition.util.deletePicFile
|
||||
import com.zhidao.roadcondition.util.trackNormalEvent
|
||||
import com.zhidao.roadcondition.util.*
|
||||
|
||||
/**
|
||||
* @description cos上传操作
|
||||
@@ -96,23 +93,23 @@ class CosStatusController : CosStatusCallback {
|
||||
}
|
||||
}
|
||||
|
||||
if (!isRetry) {
|
||||
isRetry = true
|
||||
// if (!isRetry) {
|
||||
// isRetry = true
|
||||
// taskAsync(30_000) { //去掉重试
|
||||
// try {
|
||||
// uploadFile(mutableListOf(localPath as String), entity, mType)
|
||||
// uploadFile(mutableListOf(localPath as String), entity, mType, mainInfoId, mFromType, mLongitude, mLatitude)
|
||||
// } catch (e: Exception) {
|
||||
// e.printStackTrace()
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
// } else {
|
||||
if (localPath!!.endsWith("mp4") || localPath!!.contains("Thumbnail")) {
|
||||
CosCallbackMapController.uploadFailed?.invoke()
|
||||
}
|
||||
CosCallbackMapController.unregisterCallback(localPath)
|
||||
InformationUploadController.release(entity?.id)
|
||||
// deletePicFile(localPath)
|
||||
}
|
||||
deletePicFile(localPath)
|
||||
// }
|
||||
}
|
||||
|
||||
override fun uploadCosCompleted(
|
||||
|
||||
Reference in New Issue
Block a user