a$3.smali
.class Lcom/qq/e/comm/plugin/x/a$3;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/qq/e/comm/plugin/t/a;
# instance fields
.field final synthetic a:J
.field final synthetic b:Lcom/qq/e/comm/plugin/x/a;
# direct methods
.method constructor <init>(Lcom/qq/e/comm/plugin/x/a;J)V
.registers 4
iput-object p1, p0, Lcom/qq/e/comm/plugin/x/a$3;->b:Lcom/qq/e/comm/plugin/x/a;
iput-wide p2, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/qq/e/comm/plugin/t/a/e;Lcom/qq/e/comm/plugin/t/a/f;)V
.registers 17
:try_start_0
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v0
const/16 v1, 0xc8
if-ne v0, v1, :cond_7b
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->d()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Config response:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lcom/qq/e/comm/util/GDTLogger;->d(Ljava/lang/String;)V
invoke-static {v0}, Lcom/qq/e/comm/util/StringUtil;->isEmpty(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_4f
const-string v0, "SDK Server response empty string, maybe zip or tea format error"
invoke-static {v0}, Lcom/qq/e/comm/util/GDTLogger;->report(Ljava/lang/String;)V
:try_end_2d
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_2d} :catch_96
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_2d} :catch_be
.catchall {:try_start_0 .. :try_end_2d} :catchall_e7
invoke-static {}, Lcom/qq/e/comm/services/RetCodeService;->getInstance()Lcom/qq/e/comm/services/RetCodeService;
move-result-object v9
new-instance v0, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;
const-string v1, "sdk.e.qq.com"
const-string v2, "update"
const-string v3, ""
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v4
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget-wide v10, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
sub-long/2addr v6, v10
long-to-int v5, v6
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
invoke-direct/range {v0 .. v8}, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIII)V
invoke-virtual {v9, v0}, Lcom/qq/e/comm/services/RetCodeService;->send(Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;)V
:goto_4e
return-void
:cond_4f
:try_start_4f
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
iget-object v0, p0, Lcom/qq/e/comm/plugin/x/a$3;->b:Lcom/qq/e/comm/plugin/x/a;
invoke-static {v0, v1}, Lcom/qq/e/comm/plugin/x/a;->a(Lcom/qq/e/comm/plugin/x/a;Lorg/json/JSONObject;)V
:try_end_59
.catch Ljava/io/IOException; {:try_start_4f .. :try_end_59} :catch_96
.catch Lorg/json/JSONException; {:try_start_4f .. :try_end_59} :catch_be
.catchall {:try_start_4f .. :try_end_59} :catchall_e7
:goto_59
invoke-static {}, Lcom/qq/e/comm/services/RetCodeService;->getInstance()Lcom/qq/e/comm/services/RetCodeService;
move-result-object v9
new-instance v0, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;
const-string v1, "sdk.e.qq.com"
const-string v2, "update"
const-string v3, ""
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v4
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget-wide v10, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
sub-long/2addr v6, v10
long-to-int v5, v6
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
invoke-direct/range {v0 .. v8}, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIII)V
invoke-virtual {v9, v0}, Lcom/qq/e/comm/services/RetCodeService;->send(Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;)V
goto :goto_4e
:cond_7b
:try_start_7b
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "SDK server response code error while launch or activate, code:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/qq/e/comm/util/GDTLogger;->e(Ljava/lang/String;)V
:try_end_95
.catch Ljava/io/IOException; {:try_start_7b .. :try_end_95} :catch_96
.catch Lorg/json/JSONException; {:try_start_7b .. :try_end_95} :catch_be
.catchall {:try_start_7b .. :try_end_95} :catchall_e7
goto :goto_59
:catch_96
move-exception v0
:try_start_97
const-string v1, "Config request error"
invoke-static {v1, v0}, Lcom/qq/e/comm/util/GDTLogger;->e(Ljava/lang/String;Ljava/lang/Throwable;)V
:try_end_9c
.catchall {:try_start_97 .. :try_end_9c} :catchall_e7
invoke-static {}, Lcom/qq/e/comm/services/RetCodeService;->getInstance()Lcom/qq/e/comm/services/RetCodeService;
move-result-object v9
new-instance v0, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;
const-string v1, "sdk.e.qq.com"
const-string v2, "update"
const-string v3, ""
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v4
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget-wide v10, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
sub-long/2addr v6, v10
long-to-int v5, v6
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
invoke-direct/range {v0 .. v8}, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIII)V
invoke-virtual {v9, v0}, Lcom/qq/e/comm/services/RetCodeService;->send(Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;)V
goto :goto_4e
:catch_be
move-exception v0
:try_start_bf
const-string v1, "Parse config response exception"
invoke-static {v1, v0}, Lcom/qq/e/comm/util/GDTLogger;->e(Ljava/lang/String;Ljava/lang/Throwable;)V
:try_end_c4
.catchall {:try_start_bf .. :try_end_c4} :catchall_e7
invoke-static {}, Lcom/qq/e/comm/services/RetCodeService;->getInstance()Lcom/qq/e/comm/services/RetCodeService;
move-result-object v9
new-instance v0, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;
const-string v1, "sdk.e.qq.com"
const-string v2, "update"
const-string v3, ""
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v4
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget-wide v10, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
sub-long/2addr v6, v10
long-to-int v5, v6
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
invoke-direct/range {v0 .. v8}, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIII)V
invoke-virtual {v9, v0}, Lcom/qq/e/comm/services/RetCodeService;->send(Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;)V
goto/16 :goto_4e
:catchall_e7
move-exception v0
move-object v9, v0
invoke-static {}, Lcom/qq/e/comm/services/RetCodeService;->getInstance()Lcom/qq/e/comm/services/RetCodeService;
move-result-object v10
new-instance v0, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;
const-string v1, "sdk.e.qq.com"
const-string v2, "update"
const-string v3, ""
invoke-interface/range {p2 .. p2}, Lcom/qq/e/comm/plugin/t/a/f;->e()I
move-result v4
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget-wide v12, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
sub-long/2addr v6, v12
long-to-int v5, v6
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
invoke-direct/range {v0 .. v8}, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIII)V
invoke-virtual {v10, v0}, Lcom/qq/e/comm/services/RetCodeService;->send(Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;)V
throw v9
.end method
.method public a(Ljava/lang/Exception;)V
.registers 16
const/4 v6, 0x0
const-string v0, "Config request error: "
invoke-static {v0, p1}, Lcom/qq/e/comm/util/GDTLogger;->e(Ljava/lang/String;Ljava/lang/Throwable;)V
invoke-static {}, Lcom/qq/e/comm/services/RetCodeService;->getInstance()Lcom/qq/e/comm/services/RetCodeService;
move-result-object v9
new-instance v0, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;
const-string v1, "sdk.e.qq.com"
const-string v2, "update"
const-string v3, ""
const/4 v4, -0x1
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
iget-wide v12, p0, Lcom/qq/e/comm/plugin/x/a$3;->a:J
sub-long/2addr v10, v12
long-to-int v5, v10
const/4 v8, 0x1
move v7, v6
invoke-direct/range {v0 .. v8}, Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIIII)V
invoke-virtual {v9, v0}, Lcom/qq/e/comm/services/RetCodeService;->send(Lcom/qq/e/comm/services/RetCodeService$RetCodeInfo;)V
return-void
.end method