.class public Lcom/moji/mjweather/http/HttpListenerImpl;
.super Ljava/lang/Object;
.source "HttpListenerImpl.java"

# interfaces
.implements Lcom/moji/requestcore/HttpListener;


# static fields
.field private static a:Lcom/moji/mjweather/http/HttpListenerImpl;


# instance fields
.field private b:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


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

    .line 40
    new-instance v0, Lcom/moji/mjweather/http/HttpListenerImpl;

    invoke-direct {v0}, Lcom/moji/mjweather/http/HttpListenerImpl;-><init>()V

    sput-object v0, Lcom/moji/mjweather/http/HttpListenerImpl;->a:Lcom/moji/mjweather/http/HttpListenerImpl;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

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

    return-void
.end method

.method public static a()Lcom/moji/mjweather/http/HttpListenerImpl;
    .locals 1

    .line 47
    sget-object v0, Lcom/moji/mjweather/http/HttpListenerImpl;->a:Lcom/moji/mjweather/http/HttpListenerImpl;

    return-object v0
.end method

.method private a(J)Ljava/lang/String;
    .locals 2

    long-to-float p1, p1

    const/high16 p2, 0x447a0000    # 1000.0f

    div-float/2addr p1, p2

    .line 162
    new-instance p2, Ljava/math/BigDecimal;

    float-to-double v0, p1

    invoke-direct {p2, v0, v1}, Ljava/math/BigDecimal;-><init>(D)V

    const/4 p1, 0x2

    const/4 v0, 0x4

    .line 163
    invoke-virtual {p2, p1, v0}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p1

    invoke-virtual {p1}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide p1

    .line 164
    invoke-static {p1, p2}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(JI)Ljava/lang/String;
    .locals 4

    mul-int/lit8 p3, p3, 0x4

    const-wide/16 v0, 0x1

    shl-long v2, v0, p3

    sub-long v0, v2, v0

    and-long/2addr p1, v0

    or-long/2addr p1, v2

    .line 188
    invoke-static {p1, p2}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Ljava/util/UUID;)Ljava/lang/String;
    .locals 7

    if-nez p1, :cond_0

    const-string p1, ""

    return-object p1

    .line 177
    :cond_0
    invoke-virtual {p1}, Ljava/util/UUID;->getMostSignificantBits()J

    move-result-wide v0

    .line 178
    invoke-virtual {p1}, Ljava/util/UUID;->getLeastSignificantBits()J

    move-result-wide v2

    .line 179
    new-instance p1, Ljava/lang/StringBuilder;

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

    const/16 v4, 0x20

    shr-long v4, v0, v4

    const/16 v6, 0x8

    invoke-direct {p0, v4, v5, v6}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(JI)Ljava/lang/String;

    move-result-object v4

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

    const/16 v4, 0x10

    shr-long v4, v0, v4

    const/4 v6, 0x4

    .line 180
    invoke-direct {p0, v4, v5, v6}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(JI)Ljava/lang/String;

    move-result-object v4

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

    .line 181
    invoke-direct {p0, v0, v1, v6}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(JI)Ljava/lang/String;

    move-result-object v0

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

    const/16 v0, 0x30

    shr-long v0, v2, v0

    .line 182
    invoke-direct {p0, v0, v1, v6}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(JI)Ljava/lang/String;

    move-result-object v0

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

    const/16 v0, 0xc

    .line 183
    invoke-direct {p0, v2, v3, v0}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(JI)Ljava/lang/String;

    move-result-object v0

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

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

    move-result-object p1

    return-object p1
.end method

.method private a(Ljava/lang/String;IJ)V
    .locals 2

    .line 155
    new-instance v0, Ljava/util/HashMap;

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

    const-string v1, "cost"

    .line 156
    invoke-direct {p0, p3, p4}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(J)Ljava/lang/String;

    move-result-object p3

    invoke-interface {v0, v1, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 157
    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object p3

    if-nez p2, :cond_0

    const-string p2, "success"

    goto :goto_0

    :cond_0
    const-string p2, "fail"

    :goto_0
    invoke-static {p3, p1, p2, v0}, Lcom/moji/tdhelper/TDAgent;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V

    return-void
.end method


# virtual methods
.method public a(ILjava/lang/String;JLcom/moji/requestcore/RequestParams;)V
    .locals 10

    .line 57
    invoke-virtual {p5}, Lcom/moji/requestcore/RequestParams;->a()Ljava/lang/String;

    move-result-object v6

    .line 58
    invoke-static {v6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "moji"

    .line 59
    invoke-virtual {v6, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_a

    const-string v0, "http://skinstore.moji001.com"

    .line 60
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://cdn.moji002.com"

    .line 61
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://payload.moji002.com"

    .line 62
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://ad.api.moji.com"

    .line 63
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://register.moji001.com/weather/RegisterAndroidUser"

    .line 65
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://xm.api.moji.com/pb/avatar"

    .line 66
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://v2.weather.moji.com/weather/pb/short/detail"

    .line 67
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://weather.moji.com/weather/pb/detail"

    .line 68
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://v1.weather.moji.com/weather/pb/detail"

    .line 69
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string v0, "http://api.mojichina.com/weather/pb/detail"

    .line 70
    invoke-virtual {v6, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto/16 :goto_6

    :cond_0
    const/4 v0, 0x0

    const/4 v7, 0x1

    .line 76
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1

    :try_start_1
    const-string v0, "property1"

    .line 77
    invoke-virtual {v1, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 78
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "property2"

    .line 79
    invoke-virtual {v1, v0, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_1
    if-ne v7, p1, :cond_2

    .line 82
    invoke-virtual {p5}, Lcom/moji/requestcore/RequestParams;->c()Ljava/lang/String;

    move-result-object p2

    const-string v0, "property3"

    .line 83
    invoke-virtual {v1, v0, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_2
    const-string p2, "property4"

    .line 85
    invoke-static {}, Lcom/moji/tool/DeviceTool;->l()Z

    move-result v0

    if-eqz v0, :cond_3

    const-string v0, "0"

    goto :goto_0

    :cond_3
    const-string v0, "1"

    :goto_0
    invoke-virtual {v1, p2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 87
    iget-object p2, p5, Lcom/moji/requestcore/RequestParams;->b:Ljava/lang/String;

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

    move-result p2

    if-nez p2, :cond_4

    const-string p2, "property5"

    .line 88
    iget-object p5, p5, Lcom/moji/requestcore/RequestParams;->b:Ljava/lang/String;

    invoke-virtual {v1, p2, p5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 91
    :cond_4
    iget-object p2, p0, Lcom/moji/mjweather/http/HttpListenerImpl;->b:Ljava/util/concurrent/ConcurrentHashMap;

    if-eqz p2, :cond_5

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

    move-result p2

    if-nez p2, :cond_5

    .line 92
    iget-object p2, p0, Lcom/moji/mjweather/http/HttpListenerImpl;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {p2, v6}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    .line 93
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p5

    if-nez p5, :cond_5

    const-string p5, "property6"

    .line 94
    invoke-virtual {v1, p5, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2

    :catch_0
    move-exception p2

    goto :goto_1

    :catch_1
    move-exception p2

    move-object v1, v0

    .line 98
    :goto_1
    invoke-virtual {p2}, Lorg/json/JSONException;->printStackTrace()V

    :cond_5
    :goto_2
    move-object v5, v1

    .line 100
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->HTTP_UPDATE:Lcom/moji/statistics/EVENT_TAG;

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

    move-result-wide v2

    sub-long v8, v2, p3

    move-object v2, v6

    move-wide v3, v8

    invoke-virtual/range {v0 .. v5}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;JLorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    const/4 p2, -0x1

    .line 104
    :try_start_2
    invoke-virtual {v6}, Ljava/lang/String;->hashCode()I

    move-result p5

    const v0, -0x62a653d

    if-eq p5, v0, :cond_8

    const v0, 0x35319f7d

    if-eq p5, v0, :cond_7

    const v0, 0x74ea2be0

    if-eq p5, v0, :cond_6

    goto :goto_3

    :cond_6
    const-string p5, "http://v1.weather.moji.com/aqi/json/getAqiPointMap"

    invoke-virtual {v6, p5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p5

    if-eqz p5, :cond_9

    goto :goto_4

    :cond_7
    const-string p5, "http://v1.weather.moji.com/aqi/json/rank"

    invoke-virtual {v6, p5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p5

    if-eqz p5, :cond_9

    const/4 v7, 0x2

    goto :goto_4

    :cond_8
    const-string p5, "http://v1.weather.moji.com/aqi/json/getAqiPage"

    invoke-virtual {v6, p5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p5

    if-eqz p5, :cond_9

    const/4 v7, 0x0

    goto :goto_4

    :cond_9
    :goto_3
    const/4 v7, -0x1

    :goto_4
    packed-switch v7, :pswitch_data_0

    goto :goto_5

    :pswitch_0
    const-string p2, "712AqiRank"

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

    move-result-wide v0

    const/4 p5, 0x0

    sub-long/2addr v0, p3

    invoke-direct {p0, p2, p1, v0, v1}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(Ljava/lang/String;IJ)V

    goto :goto_5

    :pswitch_1
    const-string p2, "712AQiMap"

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

    move-result-wide v0

    const/4 p5, 0x0

    sub-long/2addr v0, p3

    invoke-direct {p0, p2, p1, v0, v1}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(Ljava/lang/String;IJ)V

    goto :goto_5

    :pswitch_2
    const-string p2, "712AQiPage"

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

    move-result-wide v0

    const/4 p5, 0x0

    sub-long/2addr v0, p3

    invoke-direct {p0, p2, p1, v0, v1}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(Ljava/lang/String;IJ)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_5

    :catch_2
    move-exception p1

    .line 116
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_5
    return-void

    :cond_a
    :goto_6
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public a(Lcom/moji/requestcore/RequestParams;)V
    .locals 3

    .line 133
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "identifier"

    invoke-static {}, Lcom/moji/common/MJProperty;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 134
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "app_version"

    invoke-static {}, Lcom/moji/common/MJProperty;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 135
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "os_version"

    invoke-static {}, Lcom/moji/common/MJProperty;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 136
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "device"

    invoke-static {}, Lcom/moji/common/MJProperty;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 137
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "platform"

    invoke-static {}, Lcom/moji/common/MJProperty;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 138
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "pid"

    invoke-static {}, Lcom/moji/common/MJProperty;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 139
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "language"

    invoke-static {}, Lcom/moji/common/MJProperty;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 140
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "uaid"

    invoke-static {}, Lcom/moji/common/MJProperty;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 141
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "uid"

    invoke-static {}, Lcom/moji/common/MJProperty;->h()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 142
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "width"

    invoke-static {}, Lcom/moji/common/MJProperty;->j()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/Number;)V

    .line 143
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "height"

    invoke-static {}, Lcom/moji/common/MJProperty;->k()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/Number;)V

    .line 144
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "package_name"

    invoke-static {}, Lcom/moji/common/MJProperty;->r()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 145
    new-instance v0, Ljava/lang/StringBuilder;

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

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

    move-result-wide v1

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

    const-string v1, "-"

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

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/moji/mjweather/http/HttpListenerImpl;->a(Ljava/util/UUID;)Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "-"

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

    invoke-static {}, Lcom/moji/common/MJProperty;->h()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

    iput-object v0, p1, Lcom/moji/requestcore/RequestParams;->b:Ljava/lang/String;

    .line 146
    invoke-static {}, Lcom/moji/common/MJProperty;->l()Ljava/lang/String;

    move-result-object v0

    .line 147
    invoke-static {}, Lcom/moji/common/MJProperty;->m()Ljava/lang/String;

    move-result-object v1

    .line 148
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

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

    move-result v0

    if-nez v0, :cond_0

    .line 149
    iget-object v0, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v1, "sid"

    invoke-static {}, Lcom/moji/common/MJProperty;->l()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 150
    iget-object p1, p1, Lcom/moji/requestcore/RequestParams;->a:Lcom/google/gson/JsonObject;

    const-string v0, "snsid"

    invoke-static {}, Lcom/moji/common/MJProperty;->m()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJJJ)V
    .locals 13

    .line 52
    new-instance v12, Lcom/moji/statistics/datause/DataUsage;

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

    move-result-wide v10

    move-object v0, v12

    move-object v1, p1

    move-object v2, p2

    move-object/from16 v3, p3

    move-wide/from16 v4, p4

    move-wide/from16 v6, p6

    move-wide/from16 v8, p8

    invoke-direct/range {v0 .. v11}, Lcom/moji/statistics/datause/DataUsage;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJJJ)V

    invoke-static {v12}, Lcom/moji/statistics/datause/DataUsageHelper;->a(Lcom/moji/statistics/datause/DataUsage;)V

    return-void
.end method
