.class Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;
.super Ljava/lang/Object;
.source "FeedBackActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/setting/activity/FeedBackActivity;->c(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/moji/mjweather/setting/activity/FeedBackActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/setting/activity/FeedBackActivity;Ljava/lang/String;)V
    .locals 0

    .line 1014
    iput-object p1, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->b:Lcom/moji/mjweather/setting/activity/FeedBackActivity;

    iput-object p2, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 1017
    iget-object v0, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->b:Lcom/moji/mjweather/setting/activity/FeedBackActivity;

    invoke-static {v0}, Lcom/moji/statistics/datause/DataUsageHelper;->a(Landroid/content/Context;)Ljava/io/File;

    .line 1018
    iget-object v0, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->b:Lcom/moji/mjweather/setting/activity/FeedBackActivity;

    invoke-static {v0}, Lcom/moji/mjweather/helper/UIHelper;->c(Landroid/content/Context;)Ljava/io/File;

    move-result-object v0

    .line 1019
    new-instance v1, Lcom/moji/mjweather/setting/qiniuyun/QiNiuUrlRequest;

    invoke-direct {v1}, Lcom/moji/mjweather/setting/qiniuyun/QiNiuUrlRequest;-><init>()V

    invoke-virtual {v1}, Lcom/moji/mjweather/setting/qiniuyun/QiNiuUrlRequest;->f()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    const-string v2, ""

    .line 1021
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 1023
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string v1, "up"

    .line 1024
    invoke-virtual {v3, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "up"

    .line 1025
    invoke-virtual {v3, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    if-eqz v1, :cond_0

    const-string v3, "acc"

    .line 1026
    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string v3, "acc"

    .line 1027
    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    if-eqz v1, :cond_0

    const-string v3, "main"

    .line 1028
    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string v3, "main"

    .line 1029
    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 1030
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-lez v3, :cond_0

    const/4 v3, 0x0

    .line 1031
    invoke-virtual {v1, v3}, Lorg/json/JSONArray;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-object v2, v1

    goto :goto_0

    :catch_0
    move-exception v1

    .line 1037
    invoke-static {}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->a()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1040
    :cond_0
    :goto_0
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 1041
    new-instance v1, Lcom/moji/http/upload/UploadQNLogFile;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "http://"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->a:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v2, v0, v3, v4}, Lcom/moji/http/upload/UploadQNLogFile;-><init>(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/moji/http/upload/UploadQNLogFile;->f()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1042
    iget-object v1, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->b:Lcom/moji/mjweather/setting/activity/FeedBackActivity;

    new-instance v2, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11$1;

    invoke-direct {v2, p0, v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11$1;-><init>(Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_1

    .line 1053
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$11;->b:Lcom/moji/mjweather/setting/activity/FeedBackActivity;

    const-string v1, "\u65e5\u5fd7\u4e0a\u4f20\u5931\u8d25"

    invoke-static {v0, v1}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->c(Lcom/moji/mjweather/setting/activity/FeedBackActivity;Ljava/lang/String;)V

    :goto_1
    return-void
.end method
