Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BYLAppRobot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuyang
BYLAppRobot
Commits
4e6bf84b
Commit
4e6bf84b
authored
Nov 20, 2018
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APK抓包>从频道1开始依次抓取, ftp上传优化
#BYLSERVER-1693
parent
2d3f8212
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
ImageUploadTask.kt
...rc/main/java/com/duolebo/blyrobot/data/ImageUploadTask.kt
+9
-7
No files found.
app/src/main/java/com/duolebo/blyrobot/data/ImageUploadTask.kt
View file @
4e6bf84b
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment