Commit 4e6bf84b authored by liuyang's avatar liuyang

APK抓包>从频道1开始依次抓取, ftp上传优化

#BYLSERVER-1693
parent 2d3f8212
......@@ -12,13 +12,19 @@ import java.io.File
/**
* 图片上传任务
*/
class ImageUploadTask(private var context: Context) : Thread() {
class ImageUploadTask {
var uploadImages = ArrayList<String>()
var uploadId: String = ""
var reUpload = false
var isRunning = false
private var context: Context
constructor(context: Context) {
this.context = context
}
fun from(task: Task) {
this.uploadImages.clear()
this.uploadImages.addAll(task.uploadImages)
......@@ -46,13 +52,9 @@ class ImageUploadTask(private var context: Context) : Thread() {
return false
}
override fun start() {
fun start() {
this.isRunning = true
super.start()
}
override fun run() {
uploadImage()
Thread { uploadImage() }.start()
}
private fun uploadImage() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment