329 lines
8.4 KiB
Smali
329 lines
8.4 KiB
Smali
.class public Lcom/moji/statistics/EventCommBody;
|
|
.super Ljava/lang/Object;
|
|
.source "EventCommBody.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field private static final TAG:Ljava/lang/String; = "EventCommBody"
|
|
|
|
.field public static app_version:Ljava/lang/String; = null
|
|
|
|
.field public static imei:Ljava/lang/String; = null
|
|
|
|
.field public static net:Ljava/lang/String; = ""
|
|
|
|
.field public static pid:Ljava/lang/String; = null
|
|
|
|
.field public static platform:Ljava/lang/String; = "Android"
|
|
|
|
.field private static final serialVersionUID:J = 0x6afbab8a1e7dec9aL
|
|
|
|
.field public static type:Ljava/lang/String; = "1"
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 30
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
.line 31
|
|
sget-object v1, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->VERSION:Lcom/moji/preferences/ProcessPrefer$KeyConstant;
|
|
|
|
const-string v2, ""
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lcom/moji/statistics/EventCommBody;->app_version:Ljava/lang/String;
|
|
|
|
.line 32
|
|
sget-object v1, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->CHANNEL:Lcom/moji/preferences/ProcessPrefer$KeyConstant;
|
|
|
|
const-string v2, "4999"
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/moji/statistics/EventCommBody;->pid:Ljava/lang/String;
|
|
|
|
.line 33
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->A()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/moji/statistics/EventCommBody;->imei:Ljava/lang/String;
|
|
|
|
.line 34
|
|
sget-object v0, Lcom/moji/statistics/EventCommBody;->app_version:Ljava/lang/String;
|
|
|
|
const-string v1, "01"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "2"
|
|
|
|
.line 35
|
|
sput-object v0, Lcom/moji/statistics/EventCommBody;->type:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
.line 36
|
|
:cond_0
|
|
sget-object v0, Lcom/moji/statistics/EventCommBody;->app_version:Ljava/lang/String;
|
|
|
|
const-string v1, "02"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "1"
|
|
|
|
.line 37
|
|
sput-object v0, Lcom/moji/statistics/EventCommBody;->type:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
.line 38
|
|
:cond_1
|
|
sget-object v0, Lcom/moji/statistics/EventCommBody;->app_version:Ljava/lang/String;
|
|
|
|
const-string v1, "99"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v0, "3"
|
|
|
|
.line 39
|
|
sput-object v0, Lcom/moji/statistics/EventCommBody;->type:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v0, "4"
|
|
|
|
.line 41
|
|
sput-object v0, Lcom/moji/statistics/EventCommBody;->type:Ljava/lang/String;
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 18
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getJsonObject()Lorg/json/JSONObject;
|
|
.locals 6
|
|
|
|
.line 46
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
.line 47
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
.line 49
|
|
:try_start_0
|
|
invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->G()Lcom/moji/common/area/AreaInfo;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 50
|
|
iget v3, v2, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v3, -0x1
|
|
|
|
:goto_0
|
|
const-string v4, "locationcity"
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 51
|
|
iget-boolean v2, v2, Lcom/moji/common/area/AreaInfo;->isLocation:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:cond_1
|
|
invoke-virtual {v1, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "uid"
|
|
|
|
.line 52
|
|
invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->r()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "uaid"
|
|
|
|
.line 53
|
|
invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->s()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "platform"
|
|
|
|
.line 54
|
|
sget-object v4, Lcom/moji/statistics/EventCommBody;->platform:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "app_version"
|
|
|
|
.line 55
|
|
sget-object v4, Lcom/moji/statistics/EventCommBody;->app_version:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "net"
|
|
|
|
.line 56
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->J()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "pid"
|
|
|
|
.line 57
|
|
sget-object v4, Lcom/moji/statistics/EventCommBody;->pid:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "identifier"
|
|
|
|
.line 58
|
|
sget-object v4, Lcom/moji/statistics/EventCommBody;->imei:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "cityid"
|
|
|
|
.line 59
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "iccid"
|
|
|
|
.line 60
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->B()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "snsid"
|
|
|
|
.line 61
|
|
invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->j()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v0, "ts"
|
|
|
|
.line 62
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v0, "versionType"
|
|
|
|
.line 63
|
|
sget-object v2, Lcom/moji/statistics/EventCommBody;->type:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v0, "pkg"
|
|
|
|
.line 64
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->L()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const-string v2, "EventCommBody"
|
|
|
|
.line 66
|
|
invoke-static {v2, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 73
|
|
invoke-virtual {p0}, Lcom/moji/statistics/EventCommBody;->getJsonObject()Lorg/json/JSONObject;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|