.class Lcom/moji/credit/MyCreditActivity$3;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "MyCreditActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/credit/MyCreditActivity;->k()V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/requestcore/MJHttpCallback<",
        "Lcom/moji/http/cs/entity/DuibaURLResp;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/credit/MyCreditActivity;


# direct methods
.method constructor <init>(Lcom/moji/credit/MyCreditActivity;)V
    .locals 0

    .line 174
    iput-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;-><init>()V

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/http/cs/entity/DuibaURLResp;)V
    .locals 4

    const/4 v0, 0x0

    if-nez p1, :cond_0

    .line 179
    iget-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    invoke-static {p1, v0}, Lcom/moji/credit/MyCreditActivity;->b(Lcom/moji/credit/MyCreditActivity;Z)V

    return-void

    .line 182
    :cond_0
    invoke-virtual {p1}, Lcom/moji/http/cs/entity/DuibaURLResp;->OK()Z

    move-result v1

    if-nez v1, :cond_2

    .line 183
    invoke-static {}, Lcom/moji/credit/MyCreditActivity;->j()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "GetDuibaURL failed :"

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

    invoke-virtual {p1}, Lcom/moji/http/cs/entity/DuibaURLResp;->getResult()Lcom/moji/requestcore/entity/IResult;

    move-result-object v3

    if-nez v3, :cond_1

    const-string p1, "rc null"

    goto :goto_0

    :cond_1
    invoke-virtual {p1}, Lcom/moji/http/cs/entity/DuibaURLResp;->getDesc()Ljava/lang/String;

    move-result-object p1

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

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

    move-result-object p1

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

    .line 184
    iget-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    invoke-static {p1, v0}, Lcom/moji/credit/MyCreditActivity;->b(Lcom/moji/credit/MyCreditActivity;Z)V

    return-void

    .line 187
    :cond_2
    invoke-static {}, Lcom/moji/credit/MyCreditActivity;->j()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "snsID:"

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

    iget-object v3, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    invoke-static {v3}, Lcom/moji/credit/MyCreditActivity;->d(Lcom/moji/credit/MyCreditActivity;)Ljava/lang/String;

    move-result-object v3

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

    const-string v3, " duibaURL:"

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

    iget-object v3, p1, Lcom/moji/http/cs/entity/DuibaURLResp;->url:Ljava/lang/String;

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

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

    move-result-object v2

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

    .line 188
    iget-object v1, p1, Lcom/moji/http/cs/entity/DuibaURLResp;->url:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_3

    .line 189
    iget-object v0, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    iget-object v1, p1, Lcom/moji/http/cs/entity/DuibaURLResp;->url:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/moji/credit/MyCreditActivity;->a(Lcom/moji/credit/MyCreditActivity;Ljava/lang/String;)Ljava/lang/String;

    const/4 v0, 0x1

    goto :goto_1

    .line 192
    :cond_3
    iget-object v1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lcom/moji/credit/MyCreditActivity;->a(Lcom/moji/credit/MyCreditActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 195
    :goto_1
    iget-object v1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    iget-object p1, p1, Lcom/moji/http/cs/entity/DuibaURLResp;->url_red:Ljava/lang/String;

    invoke-static {v1, p1}, Lcom/moji/credit/MyCreditActivity;->b(Lcom/moji/credit/MyCreditActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 196
    iget-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

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

    move-result-wide v1

    invoke-static {p1, v1, v2}, Lcom/moji/credit/MyCreditActivity;->a(Lcom/moji/credit/MyCreditActivity;J)J

    .line 197
    iget-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    invoke-static {p1, v0}, Lcom/moji/credit/MyCreditActivity;->b(Lcom/moji/credit/MyCreditActivity;Z)V

    return-void
.end method

.method protected onFailed(Lcom/moji/requestcore/MJException;)V
    .locals 3

    .line 202
    invoke-static {}, Lcom/moji/credit/MyCreditActivity;->j()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Failure throwable:"

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

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

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

    move-result-object p1

    invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 203
    iget-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/moji/credit/MyCreditActivity;->a(Lcom/moji/credit/MyCreditActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 204
    iget-object p1, p0, Lcom/moji/credit/MyCreditActivity$3;->a:Lcom/moji/credit/MyCreditActivity;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/moji/credit/MyCreditActivity;->b(Lcom/moji/credit/MyCreditActivity;Z)V

    return-void
.end method

.method protected synthetic onSuccess(Ljava/lang/Object;)V
    .locals 0

    .line 174
    check-cast p1, Lcom/moji/http/cs/entity/DuibaURLResp;

    invoke-virtual {p0, p1}, Lcom/moji/credit/MyCreditActivity$3;->a(Lcom/moji/http/cs/entity/DuibaURLResp;)V

    return-void
.end method
