123 lines
2.8 KiB
Smali
123 lines
2.8 KiB
Smali
.class Lcom/moji/pay/MJPayManage$2;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "MJPayManage.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/pay/MJPayManage;->c(Ljava/lang/String;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/requestcore/MJBaseHttpCallback<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/pay/MJPayManage;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/pay/MJPayManage;)V
|
|
.locals 0
|
|
|
|
.line 139
|
|
iput-object p1, p0, Lcom/moji/pay/MJPayManage$2;->a:Lcom/moji/pay/MJPayManage;
|
|
|
|
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 144
|
|
:try_start_0
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string p1, "alipay_param"
|
|
|
|
.line 145
|
|
invoke-virtual {v0, p1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 147
|
|
iget-object v0, p0, Lcom/moji/pay/MJPayManage$2;->a:Lcom/moji/pay/MJPayManage;
|
|
|
|
const-string v1, "sign"
|
|
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "order_info"
|
|
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, v1, p1}, Lcom/moji/pay/MJPayManage;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 149
|
|
:cond_0
|
|
sget p1, Lcom/moji/pay/R$string;->pay_fail_tryagain:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
const-string v0, "MjPayManage"
|
|
|
|
.line 152
|
|
invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 0
|
|
|
|
.line 158
|
|
sget p1, Lcom/moji/pay/R$string;->pay_fail_tryagain:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic onSuccess(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 139
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/pay/MJPayManage$2;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|