HttpConnect.smali

.class public Lcom/hurizem/untils/HttpConnect;
.super Ljava/lang/Object;
.source "HttpConnect.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;
    }
.end annotation


# static fields
.field static client:Lcom/loopj/android/http/AsyncHttpClient;

.field private static instance:Lcom/hurizem/untils/HttpConnect;


# instance fields
.field dialogUtil:Lcom/hurizem/untils/DialogUtil;

.field private final timeOut:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 38
    new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;

    invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V

    sput-object v0, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    return-void
.end method

.method public constructor <init>()V
    .registers 2

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

    const/16 v0, 0x3a98

    .line 39
    iput v0, p0, Lcom/hurizem/untils/HttpConnect;->timeOut:I

    return-void
.end method

.method public static getInstance()Lcom/hurizem/untils/HttpConnect;
    .registers 1

    .line 44
    sget-object v0, Lcom/hurizem/untils/HttpConnect;->instance:Lcom/hurizem/untils/HttpConnect;

    if-nez v0, :cond_b

    .line 45
    new-instance v0, Lcom/hurizem/untils/HttpConnect;

    invoke-direct {v0}, Lcom/hurizem/untils/HttpConnect;-><init>()V

    sput-object v0, Lcom/hurizem/untils/HttpConnect;->instance:Lcom/hurizem/untils/HttpConnect;

    .line 47
    :cond_b
    sget-object v0, Lcom/hurizem/untils/HttpConnect;->instance:Lcom/hurizem/untils/HttpConnect;

    return-object v0
.end method

.method private getRequestParamsFromHashmap(Lcom/hurizem/net/RequestParam;)Lcom/loopj/android/http/RequestParams;
    .registers 6
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0
        }
        names = {
            "param"
        }
    .end annotation

    .line 202
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getParamsMap()Ljava/util/HashMap;

    move-result-object p1

    .line 203
    new-instance v0, Lcom/loopj/android/http/RequestParams;

    invoke-direct {v0}, Lcom/loopj/android/http/RequestParams;-><init>()V

    .line 204
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_11
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_55

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 205
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/CharSequence;

    const-string v3, "file"

    invoke-static {v2, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3b

    .line 206
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v2, v1}, Lcom/loopj/android/http/RequestParams;->put(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_11

    .line 209
    :cond_3b
    :try_start_3b
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    new-instance v3, Ljava/io/File;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-direct {v3, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v2, v3}, Lcom/loopj/android/http/RequestParams;->put(Ljava/lang/String;Ljava/io/File;)V
    :try_end_4f
    .catch Ljava/io/FileNotFoundException; {:try_start_3b .. :try_end_4f} :catch_50

    goto :goto_11

    :catch_50
    move-exception v1

    .line 211
    invoke-virtual {v1}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_11

    :cond_55
    return-object v0
.end method


# virtual methods
.method public GetHttpConnect(Lcom/hurizem/net/RequestParam;Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;)V
    .registers 14
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x10,
            0x10
        }
        names = {
            "param",
            "listener"
        }
    .end annotation

    .line 227
    sget-object v0, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    if-nez v0, :cond_b

    .line 228
    new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;

    invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V

    sput-object v0, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    .line 231
    :cond_b
    sget-object v0, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    const/16 v1, 0x3a98

    invoke-virtual {v0, v1}, Lcom/loopj/android/http/AsyncHttpClient;->setTimeout(I)V

    .line 232
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 234
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowDialog()Z

    move-result v1

    if-eqz v1, :cond_29

    if-eqz v0, :cond_29

    .line 235
    new-instance v1, Lcom/hurizem/untils/DialogUtil;

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/hurizem/untils/DialogUtil;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/hurizem/untils/HttpConnect;->dialogUtil:Lcom/hurizem/untils/DialogUtil;

    .line 238
    :cond_29
    invoke-static {v0}, Lcom/hurizem/untils/NetWorkUtil;->isNetworkConnected(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_4e

    .line 240
    invoke-direct {p0, p1}, Lcom/hurizem/untils/HttpConnect;->getRequestParamsFromHashmap(Lcom/hurizem/net/RequestParam;)Lcom/loopj/android/http/RequestParams;

    move-result-object v0

    .line 242
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    .line 243
    sget-object v7, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v8

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getUrl()Ljava/lang/String;

    move-result-object v9

    new-instance v10, Lcom/hurizem/untils/HttpConnect$3;

    move-object v1, v10

    move-object v2, p0

    move-object v3, p1

    move-object v6, p2

    invoke-direct/range {v1 .. v6}, Lcom/hurizem/untils/HttpConnect$3;-><init>(Lcom/hurizem/untils/HttpConnect;Lcom/hurizem/net/RequestParam;JLcom/hurizem/untils/HttpConnect$OnCompatResponseListener;)V

    invoke-virtual {v7, v8, v9, v0, v10}, Lcom/loopj/android/http/AsyncHttpClient;->get(Landroid/content/Context;Ljava/lang/String;Lcom/loopj/android/http/RequestParams;Lcom/loopj/android/http/ResponseHandlerInterface;)Lcom/loopj/android/http/RequestHandle;

    goto :goto_8e

    .line 286
    :cond_4e
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "get\u8bf7\u6c42 host\u5730\u5740\uff1a"

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

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getUrl()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/hurizem/untils/DebugLog;->w(Ljava/lang/String;)V

    const-string v0, "\u65e0\u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc"

    .line 287
    invoke-static {v0}, Lcom/hurizem/untils/DebugLog;->w(Ljava/lang/String;)V

    .line 288
    invoke-interface {p2, v0}, Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;->onFailure(Ljava/lang/String;)V

    .line 289
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowToast()Z

    move-result p2

    if-eqz p2, :cond_8e

    .line 290
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowToast()Z

    move-result p2

    if-eqz p2, :cond_8e

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object p2

    if-eqz p2, :cond_8e

    .line 291
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object p1

    const/4 p2, 0x1

    const-string v0, "\u65e0\u6cd5\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5"

    invoke-static {p1, v0, p2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :cond_8e
    :goto_8e
    return-void
.end method

.method public PostHttpConnect(Lcom/hurizem/net/RequestParam;Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;)V
    .registers 15
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x10,
            0x10
        }
        names = {
            "param",
            "listener"
        }
    .end annotation

    .line 56
    new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;

    invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V

    sput-object v0, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    const/16 v1, 0x3a98

    .line 58
    invoke-virtual {v0, v1}, Lcom/loopj/android/http/AsyncHttpClient;->setTimeout(I)V

    .line 59
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 61
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowDialog()Z

    move-result v1

    if-eqz v1, :cond_23

    if-eqz v0, :cond_23

    .line 62
    new-instance v1, Lcom/hurizem/untils/DialogUtil;

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/hurizem/untils/DialogUtil;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/hurizem/untils/HttpConnect;->dialogUtil:Lcom/hurizem/untils/DialogUtil;

    .line 65
    :cond_23
    invoke-static {v0}, Lcom/hurizem/untils/NetWorkUtil;->isNetworkConnected(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_49

    .line 67
    invoke-direct {p0, p1}, Lcom/hurizem/untils/HttpConnect;->getRequestParamsFromHashmap(Lcom/hurizem/net/RequestParam;)Lcom/loopj/android/http/RequestParams;

    move-result-object v0

    .line 69
    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v5

    .line 70
    sget-object v8, Lcom/hurizem/untils/HttpConnect;->client:Lcom/loopj/android/http/AsyncHttpClient;

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getUrl()Ljava/lang/String;

    move-result-object v10

    new-instance v11, Lcom/hurizem/untils/HttpConnect$1;

    move-object v1, v11

    move-object v2, p0

    move-object v3, p1

    move-object v4, v0

    move-object v7, p2

    invoke-direct/range {v1 .. v7}, Lcom/hurizem/untils/HttpConnect$1;-><init>(Lcom/hurizem/untils/HttpConnect;Lcom/hurizem/net/RequestParam;Lcom/loopj/android/http/RequestParams;JLcom/hurizem/untils/HttpConnect$OnCompatResponseListener;)V

    invoke-virtual {v8, v9, v10, v0, v11}, Lcom/loopj/android/http/AsyncHttpClient;->post(Landroid/content/Context;Ljava/lang/String;Lcom/loopj/android/http/RequestParams;Lcom/loopj/android/http/ResponseHandlerInterface;)Lcom/loopj/android/http/RequestHandle;

    goto :goto_7c

    .line 111
    :cond_49
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getUrl()Ljava/lang/String;

    move-result-object v0

    const-string v1, "post\u8bf7\u6c42 host\u5730\u5740\uff1a"

    invoke-static {v1, v0}, Lcom/hurizem/untils/DebugLog;->w(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "\u65e0\u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc"

    .line 112
    invoke-static {v0}, Lcom/hurizem/untils/DebugLog;->w(Ljava/lang/String;)V

    const-string v0, "\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc"

    .line 113
    invoke-interface {p2, v0}, Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;->onFailure(Ljava/lang/String;)V

    .line 114
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowToast()Z

    move-result p2

    if-eqz p2, :cond_7c

    .line 115
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowToast()Z

    move-result p2

    if-eqz p2, :cond_7c

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object p2

    if-eqz p2, :cond_7c

    .line 116
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object p1

    const/4 p2, 0x1

    const-string v0, "\u65e0\u6cd5\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5"

    invoke-static {p1, v0, p2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :cond_7c
    :goto_7c
    return-void
.end method

.method public initOkHttp(Landroid/content/Context;)V
    .registers 6
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0
        }
        names = {
            "context"
        }
    .end annotation

    const/4 p1, 0x0

    .line 298
    invoke-static {p1, p1, p1}, Lcom/zhy/http/okhttp/https/HttpsUtils;->getSslSocketFactory([Ljava/io/InputStream;Ljava/io/InputStream;Ljava/lang/String;)Lcom/zhy/http/okhttp/https/HttpsUtils$SSLParams;

    move-result-object p1

    .line 299
    new-instance v0, Lokhttp3/OkHttpClient$Builder;

    invoke-direct {v0}, Lokhttp3/OkHttpClient$Builder;-><init>()V

    sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    const-wide/16 v2, 0x3a98

    .line 300
    invoke-virtual {v0, v2, v3, v1}, Lokhttp3/OkHttpClient$Builder;->connectTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;

    move-result-object v0

    sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    .line 301
    invoke-virtual {v0, v2, v3, v1}, Lokhttp3/OkHttpClient$Builder;->readTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;

    move-result-object v0

    new-instance v1, Lcom/hurizem/untils/HttpConnect$4;

    invoke-direct {v1, p0}, Lcom/hurizem/untils/HttpConnect$4;-><init>(Lcom/hurizem/untils/HttpConnect;)V

    .line 302
    invoke-virtual {v0, v1}, Lokhttp3/OkHttpClient$Builder;->hostnameVerifier(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder;

    move-result-object v0

    iget-object v1, p1, Lcom/zhy/http/okhttp/https/HttpsUtils$SSLParams;->sSLSocketFactory:Ljavax/net/ssl/SSLSocketFactory;

    iget-object p1, p1, Lcom/zhy/http/okhttp/https/HttpsUtils$SSLParams;->trustManager:Ljavax/net/ssl/X509TrustManager;

    .line 308
    invoke-virtual {v0, v1, p1}, Lokhttp3/OkHttpClient$Builder;->sslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;

    move-result-object p1

    .line 309
    invoke-virtual {p1}, Lokhttp3/OkHttpClient$Builder;->build()Lokhttp3/OkHttpClient;

    move-result-object p1

    .line 310
    invoke-static {p1}, Lcom/zhy/http/okhttp/OkHttpUtils;->initClient(Lokhttp3/OkHttpClient;)Lcom/zhy/http/okhttp/OkHttpUtils;

    return-void
.end method

.method public postJsonConnect(Lcom/hurizem/net/RequestParam;Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;)V
    .registers 11
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x10,
            0x10
        }
        names = {
            "param",
            "listener"
        }
    .end annotation

    .line 129
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 131
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowDialog()Z

    move-result v1

    if-eqz v1, :cond_17

    if-eqz v0, :cond_17

    .line 132
    new-instance v1, Lcom/hurizem/untils/DialogUtil;

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/hurizem/untils/DialogUtil;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/hurizem/untils/HttpConnect;->dialogUtil:Lcom/hurizem/untils/DialogUtil;

    .line 135
    :cond_17
    invoke-static {v0}, Lcom/hurizem/untils/NetWorkUtil;->isNetworkConnected(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_55

    .line 138
    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v4

    const-string v0, "application/x-www-form-urlencoded; charset=utf-8"

    .line 140
    invoke-static {v0}, Lokhttp3/MediaType;->parse(Ljava/lang/String;)Lokhttp3/MediaType;

    move-result-object v0

    .line 141
    invoke-static {}, Lcom/zhy/http/okhttp/OkHttpUtils;->getInstance()Lcom/zhy/http/okhttp/OkHttpUtils;

    invoke-static {}, Lcom/zhy/http/okhttp/OkHttpUtils;->postString()Lcom/zhy/http/okhttp/builder/PostStringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getUrl()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/zhy/http/okhttp/builder/PostStringBuilder;->url(Ljava/lang/String;)Lcom/zhy/http/okhttp/builder/OkHttpRequestBuilder;

    move-result-object v1

    check-cast v1, Lcom/zhy/http/okhttp/builder/PostStringBuilder;

    invoke-virtual {v1, v0}, Lcom/zhy/http/okhttp/builder/PostStringBuilder;->mediaType(Lokhttp3/MediaType;)Lcom/zhy/http/okhttp/builder/PostStringBuilder;

    move-result-object v0

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getJsonStr()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/zhy/http/okhttp/builder/PostStringBuilder;->content(Ljava/lang/String;)Lcom/zhy/http/okhttp/builder/PostStringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/zhy/http/okhttp/builder/PostStringBuilder;->build()Lcom/zhy/http/okhttp/request/RequestCall;

    move-result-object v0

    new-instance v7, Lcom/hurizem/untils/HttpConnect$2;

    move-object v1, v7

    move-object v2, p0

    move-object v3, p1

    move-object v6, p2

    invoke-direct/range {v1 .. v6}, Lcom/hurizem/untils/HttpConnect$2;-><init>(Lcom/hurizem/untils/HttpConnect;Lcom/hurizem/net/RequestParam;JLcom/hurizem/untils/HttpConnect$OnCompatResponseListener;)V

    invoke-virtual {v0, v7}, Lcom/zhy/http/okhttp/request/RequestCall;->execute(Lcom/zhy/http/okhttp/callback/Callback;)V

    goto :goto_97

    .line 178
    :cond_55
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "post\u8bf7\u6c42 host\u5730\u5740\uff1a"

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

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getUrl()Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/hurizem/untils/DebugLog;->w(Ljava/lang/String;)V

    const-string v0, "\u65e0\u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc"

    .line 179
    invoke-static {v0}, Lcom/hurizem/untils/DebugLog;->w(Ljava/lang/String;)V

    const-string v0, "\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc"

    .line 180
    invoke-interface {p2, v0}, Lcom/hurizem/untils/HttpConnect$OnCompatResponseListener;->onFailure(Ljava/lang/String;)V

    .line 181
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowToast()Z

    move-result p2

    if-eqz p2, :cond_97

    .line 182
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->isShowToast()Z

    move-result p2

    if-eqz p2, :cond_97

    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object p2

    if-eqz p2, :cond_97

    .line 183
    invoke-virtual {p1}, Lcom/hurizem/net/RequestParam;->getContext()Landroid/content/Context;

    move-result-object p1

    const/4 p2, 0x1

    const-string v0, "\u65e0\u6cd5\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5"

    invoke-static {p1, v0, p2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :cond_97
    :goto_97
    return-void
.end method