Commit fa3bd44c authored by liuyang's avatar liuyang

APK抓包>从频道1开始依次抓取

#BYLSERVER-1693
Close BYLSERVER-1693
parent f2bf28c5
...@@ -204,11 +204,17 @@ class Task : IAppBaseCallback { ...@@ -204,11 +204,17 @@ class Task : IAppBaseCallback {
private fun step() { private fun step() {
Log.i(TAG, "step channel ${this.channelIndex}") Log.i(TAG, "step channel ${this.channelIndex}")
var playUrlItems = analysisCapture()
// 如果没有抓取到地址,再次尝试
if (playUrlItems.size < 0) {
capture(this.apkInfo.captureDelay)
playUrlItems = analysisCapture()
}
// 截图保存 // 截图保存
val screenShots = saveScreenShot() val screenShots = saveScreenShot()
if (screenShots.size > 0) if (screenShots.size > 0)
uploadImages.addAll(screenShots) uploadImages.addAll(screenShots)
val playUrlItems = analysisCapture()
val channels = this.reportJson.optJSONArray("channels") val channels = this.reportJson.optJSONArray("channels")
val channelJson = JSONObject() val channelJson = JSONObject()
......
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