Weather/smali/com/ali/auth/third/mtop/rpc/MTOPWrapper.smali
2021-05-10 10:13:34 +02:00

795 lines
22 KiB
Smali

.class public Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
.super Ljava/lang/Object;
.source "MTOPWrapper.java"
# static fields
.field private static INSTANCE:Lcom/ali/auth/third/mtop/rpc/MTOPWrapper; = null
.field private static final MTOP_BIZ_CODE:I = 0x5e
.field private static final TAG:Ljava/lang/String; = "login.MTOPWrapperImpl"
# direct methods
.method public constructor <init>()V
.locals 0
.line 36
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private getBizRpcResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<V:",
"Ljava/lang/Object;",
">(",
"Lmtopsdk/mtop/domain/MtopResponse;",
"Ljava/lang/Class<",
"TV;>;)",
"Lcom/ali/auth/third/core/model/RpcResponse<",
"TV;>;"
}
.end annotation
.line 132
:try_start_0
invoke-direct {p0, p1, p2}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->getvRpcResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
move-result-object p1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
.line 134
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
const/4 p1, 0x0
return-object p1
.end method
.method public static declared-synchronized getInstance()Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
.locals 2
const-class v0, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
monitor-enter v0
.line 43
:try_start_0
sget-object v1, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->INSTANCE:Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
if-nez v1, :cond_0
new-instance v1, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
invoke-direct {v1}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;-><init>()V
sput-object v1, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->INSTANCE:Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
.line 44
:cond_0
sget-object v1, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->INSTANCE:Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v0
return-object v1
:catchall_0
move-exception v1
.line 42
monitor-exit v0
throw v1
.end method
.method private getvRpcResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<V:",
"Ljava/lang/Object;",
">(",
"Lmtopsdk/mtop/domain/MtopResponse;",
"Ljava/lang/Class<",
"TV;>;)",
"Lcom/ali/auth/third/core/model/RpcResponse<",
"TV;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/json/JSONException;
}
.end annotation
.line 141
new-instance v0, Lcom/ali/auth/third/core/model/RpcResponse;
invoke-direct {v0}, Lcom/ali/auth/third/core/model/RpcResponse;-><init>()V
.line 142
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->getBytedata()[B
move-result-object p1
if-eqz p1, :cond_0
.line 144
new-instance v1, Ljava/lang/String;
invoke-direct {v1, p1}, Ljava/lang/String;-><init>([B)V
.line 145
new-instance p1, Lorg/json/JSONObject;
invoke-direct {p1, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
const-string v1, "data"
.line 146
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object p1
if-eqz p1, :cond_0
const-string v1, "code"
.line 148
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v1
iput v1, v0, Lcom/ali/auth/third/core/model/RpcResponse;->code:I
const-string v1, "codeGroup"
.line 149
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/ali/auth/third/core/model/RpcResponse;->codeGroup:Ljava/lang/String;
const-string v1, "message"
.line 150
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/ali/auth/third/core/model/RpcResponse;->message:Ljava/lang/String;
const-string v1, "actionType"
.line 151
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/ali/auth/third/core/model/RpcResponse;->actionType:Ljava/lang/String;
const-string v1, "returnValue"
.line 152
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_0
const-string v1, "returnValue"
.line 153
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {p1, p2}, Lcom/ali/auth/third/core/util/JSONUtils;->parseStringValue(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
iput-object p1, v0, Lcom/ali/auth/third/core/model/RpcResponse;->returnValue:Ljava/lang/Object;
:cond_0
return-object v0
.end method
.method private processMtopResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<V:",
"Ljava/lang/Object;",
">(",
"Lmtopsdk/mtop/domain/MtopResponse;",
"Ljava/lang/Class<",
"TV;>;)",
"Lcom/ali/auth/third/core/model/RpcResponse<",
"TV;>;"
}
.end annotation
if-eqz p1, :cond_1
.line 89
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isApiSuccess()Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
.line 126
:cond_0
invoke-direct {p0, p1, p2}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->getBizRpcResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
move-result-object p1
return-object p1
:cond_1
:goto_0
if-eqz p1, :cond_b
.line 91
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isNetworkError()Z
move-result v0
if-nez v0, :cond_a
.line 94
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isApiLockedResult()Z
move-result v0
if-nez v0, :cond_9
.line 97
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->is41XResult()Z
move-result v0
if-nez v0, :cond_8
.line 100
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isExpiredRequest()Z
move-result v0
if-nez v0, :cond_7
.line 103
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isIllegelSign()Z
move-result v0
if-nez v0, :cond_6
.line 106
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isSystemError()Z
move-result v0
const/16 v1, 0x196
if-nez v0, :cond_5
.line 109
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isSessionInvalid()Z
move-result v0
if-nez v0, :cond_4
.line 112
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isMtopServerError()Z
move-result v0
if-nez v0, :cond_3
.line 115
invoke-virtual {p1}, Lmtopsdk/mtop/domain/MtopResponse;->isMtopSdkError()Z
move-result v0
if-nez v0, :cond_2
.line 119
invoke-direct {p0, p1, p2}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->getBizRpcResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
move-result-object p1
return-object p1
.line 116
:cond_2
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 117
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 113
:cond_3
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 114
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 110
:cond_4
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
const/16 p2, 0x197
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_session_error"
.line 111
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 107
:cond_5
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 108
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 104
:cond_6
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
const/16 p2, 0x193
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 105
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 101
:cond_7
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
const/16 p2, 0x192
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 102
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 98
:cond_8
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
const/16 p2, 0x191
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 99
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 95
:cond_9
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
const/16 p2, 0x190
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 96
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
.line 92
:cond_a
new-instance p1, Lcom/ali/auth/third/core/rpc/protocol/RpcException;
const/4 p2, 0x7
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
sget-object v0, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
const-string v1, "aliusersdk_network_error"
.line 93
invoke-static {v0, v1}, Lcom/ali/auth/third/core/util/ResourceUtils;->getString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, p2, v0}, Lcom/ali/auth/third/core/rpc/protocol/RpcException;-><init>(Ljava/lang/Integer;Ljava/lang/String;)V
throw p1
:cond_b
const/4 p1, 0x0
return-object p1
.end method
# virtual methods
.method public post(Lcom/ali/auth/third/core/model/RpcRequest;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<V:",
"Ljava/lang/Object;",
">(",
"Lcom/ali/auth/third/core/model/RpcRequest;",
"Ljava/lang/Class<",
"TV;>;)",
"Lcom/ali/auth/third/core/model/RpcResponse<",
"TV;>;"
}
.end annotation
const/4 v0, 0x0
.line 52
invoke-virtual {p0, p1, p2, v0}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->post(Lcom/ali/auth/third/core/model/RpcRequest;Ljava/lang/Class;Ljava/lang/String;)Lcom/ali/auth/third/core/model/RpcResponse;
move-result-object p1
return-object p1
.end method
.method public post(Lcom/ali/auth/third/core/model/RpcRequest;Ljava/lang/Class;Ljava/lang/String;)Lcom/ali/auth/third/core/model/RpcResponse;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<V:",
"Ljava/lang/Object;",
">(",
"Lcom/ali/auth/third/core/model/RpcRequest;",
"Ljava/lang/Class<",
"TV;>;",
"Ljava/lang/String;",
")",
"Lcom/ali/auth/third/core/model/RpcResponse<",
"TV;>;"
}
.end annotation
const/4 v0, 0x0
.line 58
:try_start_0
new-instance v1, Lmtopsdk/mtop/domain/MtopRequest;
invoke-direct {v1}, Lmtopsdk/mtop/domain/MtopRequest;-><init>()V
.line 59
iget-object v2, p1, Lcom/ali/auth/third/core/model/RpcRequest;->target:Ljava/lang/String;
invoke-virtual {v1, v2}, Lmtopsdk/mtop/domain/MtopRequest;->setApiName(Ljava/lang/String;)V
.line 60
iget-object v2, p1, Lcom/ali/auth/third/core/model/RpcRequest;->version:Ljava/lang/String;
invoke-virtual {v1, v2}, Lmtopsdk/mtop/domain/MtopRequest;->setVersion(Ljava/lang/String;)V
const/4 v2, 0x0
.line 61
invoke-virtual {v1, v2}, Lmtopsdk/mtop/domain/MtopRequest;->setNeedEcode(Z)V
.line 62
invoke-virtual {v1, v2}, Lmtopsdk/mtop/domain/MtopRequest;->setNeedSession(Z)V
.line 63
new-instance v3, Lorg/json/JSONObject;
invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V
.line 64
:goto_0
iget-object v4, p1, Lcom/ali/auth/third/core/model/RpcRequest;->paramNames:Ljava/util/ArrayList;
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I
move-result v4
if-ge v2, v4, :cond_0
.line 65
iget-object v4, p1, Lcom/ali/auth/third/core/model/RpcRequest;->paramNames:Ljava/util/ArrayList;
invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
iget-object v5, p1, Lcom/ali/auth/third/core/model/RpcRequest;->paramValues:Ljava/util/ArrayList;
invoke-virtual {v5, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v5
invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 67
:cond_0
invoke-virtual {v3}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Lmtopsdk/mtop/domain/MtopRequest;->setData(Ljava/lang/String;)V
.line 68
sget-object p1, Lcom/ali/auth/third/core/context/KernelContext;->context:Landroid/content/Context;
invoke-static {p1}, Lmtopsdk/mtop/intf/Mtop;->instance(Landroid/content/Context;)Lmtopsdk/mtop/intf/Mtop;
move-result-object p1
sget-object v2, Lcom/ali/auth/third/core/MemberSDK;->ttid:Ljava/lang/String;
invoke-virtual {p1, v1, v2}, Lmtopsdk/mtop/intf/Mtop;->build(Lmtopsdk/mtop/domain/MtopRequest;Ljava/lang/String;)Lmtopsdk/mtop/intf/MtopBuilder;
move-result-object p1
sget-object v1, Lmtopsdk/mtop/domain/MethodEnum;->POST:Lmtopsdk/mtop/domain/MethodEnum;
invoke-virtual {p1, v1}, Lmtopsdk/mtop/intf/MtopBuilder;->reqMethod(Lmtopsdk/mtop/domain/MethodEnum;)Lmtopsdk/mtop/intf/MtopBuilder;
move-result-object p1
const/16 v1, 0x5e
invoke-virtual {p1, v1}, Lmtopsdk/mtop/intf/MtopBuilder;->setBizId(I)Lmtopsdk/mtop/intf/MtopBuilder;
move-result-object p1
const/16 v1, 0x2710
invoke-virtual {p1, v1}, Lmtopsdk/mtop/intf/MtopBuilder;->setConnectionTimeoutMilliSecond(I)Lmtopsdk/mtop/intf/MtopBuilder;
move-result-object p1
.line 69
invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_1
.line 70
invoke-virtual {p1, p3}, Lmtopsdk/mtop/intf/MtopBuilder;->setReqUserId(Ljava/lang/String;)Lmtopsdk/mtop/intf/MtopBuilder;
:cond_1
const/4 p3, 0x1
.line 72
invoke-virtual {p1, p3}, Lmtopsdk/mtop/intf/MtopBuilder;->retryTime(I)Lmtopsdk/mtop/intf/MtopBuilder;
.line 73
invoke-virtual {p1}, Lmtopsdk/mtop/intf/MtopBuilder;->syncRequest()Lmtopsdk/mtop/domain/MtopResponse;
move-result-object p1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
:try_start_1
const-string p3, "login.MTOPWrapperImpl"
.line 74
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "receive MtopResponse"
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 v1
invoke-static {p3, v1}, Lcom/ali/auth/third/core/trace/SDKLogger;->d(Ljava/lang/String;Ljava/lang/String;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
goto :goto_2
:catch_0
move-exception p3
move-object v6, p3
move-object p3, p1
move-object p1, v6
goto :goto_1
:catch_1
move-exception p1
move-object p3, v0
:goto_1
const-string v1, "login.MTOPWrapperImpl"
const-string v2, "MtopResponse error"
.line 76
invoke-static {v1, v2, p1}, Lcom/ali/auth/third/core/trace/SDKLogger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
.line 77
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
move-object p1, p3
:goto_2
if-eqz p1, :cond_2
.line 80
invoke-direct {p0, p1, p2}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->processMtopResponse(Lmtopsdk/mtop/domain/MtopResponse;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
move-result-object p1
return-object p1
:cond_2
const-string p1, "login.MTOPWrapperImpl"
const-string p2, "MtopResponse response=null"
.line 83
invoke-static {p1, p2}, Lcom/ali/auth/third/core/trace/SDKLogger;->e(Ljava/lang/String;Ljava/lang/String;)V
return-object v0
.end method
.method public post(Lcom/ali/auth/third/core/model/RpcRequest;)Ljava/lang/String;
.locals 1
.line 48
const-class v0, Lcom/ali/auth/third/core/model/LoginReturnData;
invoke-virtual {p0, p1, v0}, Lcom/ali/auth/third/mtop/rpc/MTOPWrapper;->post(Lcom/ali/auth/third/core/model/RpcRequest;Ljava/lang/Class;)Lcom/ali/auth/third/core/model/RpcResponse;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method