.class public Lcom/moji/account/data/UserInfoSQLiteManager;
.super Ljava/lang/Object;
.source "UserInfoSQLiteManager.java"


# static fields
.field private static a:Lcom/moji/account/data/UserInfoSQLiteManager;


# instance fields
.field private b:Lcom/moji/account/data/UserInfoDBHelper;


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

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 2

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

    const/4 v0, 0x0

    .line 22
    iput-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    .line 25
    new-instance v0, Lcom/moji/account/data/UserInfoDBHelper;

    const/4 v1, 0x6

    invoke-direct {v0, p1, v1}, Lcom/moji/account/data/UserInfoDBHelper;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    const-string p1, "UserInfoSQLiteManager"

    const-string v0, "user db version  is 6"

    .line 26
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public static declared-synchronized a(Landroid/content/Context;)Lcom/moji/account/data/UserInfoSQLiteManager;
    .locals 2

    const-class v0, Lcom/moji/account/data/UserInfoSQLiteManager;

    monitor-enter v0

    .line 30
    :try_start_0
    sget-object v1, Lcom/moji/account/data/UserInfoSQLiteManager;->a:Lcom/moji/account/data/UserInfoSQLiteManager;

    if-nez v1, :cond_0

    .line 31
    new-instance v1, Lcom/moji/account/data/UserInfoSQLiteManager;

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p0

    invoke-direct {v1, p0}, Lcom/moji/account/data/UserInfoSQLiteManager;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/moji/account/data/UserInfoSQLiteManager;->a:Lcom/moji/account/data/UserInfoSQLiteManager;

    .line 33
    :cond_0
    sget-object p0, Lcom/moji/account/data/UserInfoSQLiteManager;->a:Lcom/moji/account/data/UserInfoSQLiteManager;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object p0

    :catchall_0
    move-exception p0

    .line 29
    monitor-exit v0

    throw p0
.end method

.method private a(Landroid/database/sqlite/SQLiteDatabase;)V
    .locals 0

    .line 242
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V

    .line 243
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    return-void
.end method

.method private declared-synchronized a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5

    monitor-enter p0

    .line 391
    :try_start_0
    iget-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    invoke-virtual {v0}, Lcom/moji/account/data/UserInfoDBHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 393
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v1, 0x0

    .line 395
    :try_start_1
    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    .line 396
    invoke-virtual {v2, p1, p2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "UserInfo"

    const-string p2, "SnsId=?"

    const/4 v3, 0x1

    .line 397
    new-array v4, v3, [Ljava/lang/String;

    aput-object p3, v4, v1

    invoke-virtual {v0, p1, v2, p2, v4}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p1

    if-lez p1, :cond_0

    const/4 v1, 0x1

    .line 401
    :cond_0
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 405
    :goto_0
    :try_start_2
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    :try_start_3
    const-string p2, "UserInfoSQLiteManager"

    .line 403
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_0

    .line 407
    :goto_1
    monitor-exit p0

    return v1

    .line 405
    :goto_2
    :try_start_4
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 406
    throw p1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catchall_1
    move-exception p1

    .line 390
    monitor-exit p0

    throw p1
.end method

.method private b(Lcom/moji/account/data/UserInfo;)Landroid/content/ContentValues;
    .locals 3

    .line 79
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    const-string v1, "SnsId"

    .line 80
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "UserId"

    .line 81
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->user_id:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "NickName"

    .line 82
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->nick:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 83
    iget-object v1, p1, Lcom/moji/account/data/UserInfo;->account:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "Account"

    .line 84
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->account:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 86
    :cond_0
    iget-object v1, p1, Lcom/moji/account/data/UserInfo;->password:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "password"

    .line 87
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->password:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    const-string v1, "LoginType"

    .line 89
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->login_type:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "FaceImageUrl"

    .line 90
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->face:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Type"

    .line 91
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->type:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Status"

    .line 92
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->status:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "CreateTime"

    .line 93
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->create_time:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "BackgroundUrl"

    .line 94
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->background_url:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Email"

    .line 95
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->email:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Mobile"

    .line 96
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Sex"

    .line 97
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->sex:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Birth"

    .line 98
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->birth:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Sign"

    .line 99
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->sign:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "CityId"

    .line 100
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->city_id:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "FollowedCount"

    .line 101
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->followed_count:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "FollowingCount"

    .line 102
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->following_count:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "OfficalType"

    .line 103
    iget v2, p1, Lcom/moji/account/data/UserInfo;->offical_type:I

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

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    const-string v1, "OfficalTitle"

    .line 104
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->offical_title:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "SnsName"

    .line 105
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->sns_name:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "ExpireTime"

    .line 106
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->expire_time:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "IsExpire"

    .line 107
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->is_expire:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "IsVip"

    .line 108
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->is_vip:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "MemberLevel"

    .line 109
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->member_level:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "StartTime"

    .line 110
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->start_time:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "VipSign"

    .line 111
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->vip_md5:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Remain_Day"

    .line 112
    iget-object v2, p1, Lcom/moji/account/data/UserInfo;->remain_day:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "CityName"

    .line 113
    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->city_name:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    return-object v0
.end method


# virtual methods
.method public declared-synchronized a(Ljava/lang/String;)Lcom/moji/account/data/UserInfo;
    .locals 8

    monitor-enter p0

    .line 118
    :try_start_0
    iget-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    invoke-virtual {v0}, Lcom/moji/account/data/UserInfoDBHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 121
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v1, 0x0

    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 123
    :try_start_1
    new-instance v4, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v4}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    .line 124
    sget-object v5, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->NEED_DELETE:Lcom/moji/preferences/ProcessPrefer$KeyConstant;

    invoke-virtual {v4, v5, v2}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 125
    invoke-virtual {p0, v0, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V

    .line 126
    sget-object v5, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->NEED_DELETE:Lcom/moji/preferences/ProcessPrefer$KeyConstant;

    invoke-virtual {v4, v5, v3}, Lcom/moji/preferences/ProcessPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;Z)V

    :cond_0
    const-string v4, "select * from UserInfo where SnsId=?"

    const-string v5, "UserInfoSQLiteManager"

    .line 129
    new-instance v6, Ljava/lang/StringBuilder;

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

    const-string v7, "query string "

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

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

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

    move-result-object v6

    invoke-static {v5, v6}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 130
    new-array v5, v2, [Ljava/lang/String;

    aput-object p1, v5, v3

    invoke-virtual {v0, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-object v4, v1

    .line 131
    :goto_0
    :try_start_2
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v5

    if-eqz v5, :cond_1

    .line 132
    new-instance v5, Lcom/moji/account/data/UserInfo;

    invoke-direct {v5}, Lcom/moji/account/data/UserInfo;-><init>()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 133
    :try_start_3
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getInt(I)I

    move-result v4

    iput v4, v5, Lcom/moji/account/data/UserInfo;->sqlId:I

    .line 134
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    const/4 v4, 0x2

    .line 135
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->user_id:Ljava/lang/String;

    const/4 v4, 0x3

    .line 136
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->nick:Ljava/lang/String;

    const/4 v4, 0x4

    .line 137
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->account:Ljava/lang/String;

    const/4 v4, 0x5

    .line 138
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->login_type:Ljava/lang/String;

    const/4 v4, 0x6

    .line 139
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->password:Ljava/lang/String;

    const/4 v4, 0x7

    .line 140
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->face:Ljava/lang/String;

    const/16 v4, 0x8

    .line 141
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->type:Ljava/lang/String;

    const/16 v4, 0x9

    .line 142
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->status:Ljava/lang/String;

    const/16 v4, 0xa

    .line 143
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->create_time:Ljava/lang/String;

    const/16 v4, 0xb

    .line 144
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->background_url:Ljava/lang/String;

    const/16 v4, 0xc

    .line 145
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->email:Ljava/lang/String;

    const/16 v4, 0xd

    .line 146
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    const/16 v4, 0xe

    .line 147
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->sex:Ljava/lang/String;

    const/16 v4, 0xf

    .line 148
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->birth:Ljava/lang/String;

    const/16 v4, 0x10

    .line 149
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->sign:Ljava/lang/String;

    const/16 v4, 0x11

    .line 150
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->city_id:Ljava/lang/String;

    const/16 v4, 0x12

    .line 151
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->followed_count:Ljava/lang/String;

    const/16 v4, 0x13

    .line 152
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->following_count:Ljava/lang/String;

    const/16 v4, 0x14

    .line 153
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v4

    iput v4, v5, Lcom/moji/account/data/UserInfo;->offical_type:I

    const/16 v4, 0x15

    .line 154
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->offical_title:Ljava/lang/String;

    const/16 v4, 0x16

    .line 155
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->sns_name:Ljava/lang/String;

    const/16 v4, 0x17

    .line 156
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->city_name:Ljava/lang/String;

    const/16 v4, 0x18

    .line 157
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->expire_time:Ljava/lang/String;

    const/16 v4, 0x19

    .line 158
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->is_expire:Ljava/lang/String;

    const/16 v4, 0x1a

    .line 159
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->is_vip:Ljava/lang/String;

    const/16 v4, 0x1b

    .line 160
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->member_level:Ljava/lang/String;

    const/16 v4, 0x1c

    .line 161
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->start_time:Ljava/lang/String;

    const/16 v4, 0x1d

    .line 162
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->vip_md5:Ljava/lang/String;

    const/16 v4, 0x1e

    .line 163
    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/moji/account/data/UserInfo;->remain_day:Ljava/lang/String;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move-object v4, v5

    goto/16 :goto_0

    :catch_0
    move-exception p1

    goto :goto_1

    .line 165
    :cond_1
    :try_start_4
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V

    .line 166
    invoke-interface {p1}, Landroid/database/Cursor;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 170
    :try_start_5
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    goto :goto_2

    :catch_1
    move-exception p1

    move-object v5, v4

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_4

    :catch_2
    move-exception p1

    move-object v5, v1

    :goto_1
    :try_start_6
    const-string v4, "UserInfoSQLiteManager"

    .line 168
    invoke-static {v4, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    .line 170
    :try_start_7
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    move-object v4, v5

    .line 172
    :goto_2
    new-instance p1, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {p1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    if-eqz v4, :cond_4

    const-string v0, "UserInfoSQLiteManager"

    .line 174
    invoke-virtual {v4}, Lcom/moji/account/data/UserInfo;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v0, v5}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 175
    invoke-virtual {v4}, Lcom/moji/account/data/UserInfo;->isVip()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 176
    invoke-virtual {v4}, Lcom/moji/account/data/UserInfo;->getVipMD5()Ljava/lang/String;

    move-result-object v0

    .line 177
    iget-object v5, v4, Lcom/moji/account/data/UserInfo;->vip_md5:Ljava/lang/String;

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

    move-result v0

    if-nez v0, :cond_2

    .line 179
    invoke-virtual {p1, v3}, Lcom/moji/preferences/ProcessPrefer;->a(Z)V

    move-object v4, v1

    goto :goto_3

    .line 181
    :cond_2
    invoke-virtual {p1, v2}, Lcom/moji/preferences/ProcessPrefer;->a(Z)V

    goto :goto_3

    .line 184
    :cond_3
    invoke-virtual {p1, v3}, Lcom/moji/preferences/ProcessPrefer;->a(Z)V

    goto :goto_3

    .line 187
    :cond_4
    invoke-virtual {p1, v3}, Lcom/moji/preferences/ProcessPrefer;->a(Z)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    .line 189
    :goto_3
    monitor-exit p0

    return-object v4

    .line 170
    :goto_4
    :try_start_8
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 171
    throw p1
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    :catchall_1
    move-exception p1

    .line 117
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V
    .locals 4

    monitor-enter p0

    :try_start_0
    const-string v0, "UserInfo"

    const-string v1, "SnsId=? and password is null"

    const/4 v2, 0x1

    .line 200
    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    aput-object p2, v2, v3

    invoke-virtual {p1, v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p1

    if-lez p1, :cond_0

    const-string p2, "UserInfoSQLiteManager"

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

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

    const-string v1, "\u5220\u9664\u6210\u529f \u5171\u5220\u9664\u4e86 "

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

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

    const-string p1, " \u884c"

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

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

    move-result-object p1

    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    const-string p1, "UserInfoSQLiteManager"

    const-string p2, "\u5220\u9664\u5931\u8d25"

    .line 204
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_1

    :catch_0
    move-exception p1

    :try_start_1
    const-string p2, "UserInfoSQLiteManager"

    .line 208
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 210
    :goto_0
    monitor-exit p0

    return-void

    .line 199
    :goto_1
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Lcom/moji/account/data/UserInfo;)V
    .locals 9

    monitor-enter p0

    if-eqz p1, :cond_6

    .line 42
    :try_start_0
    iget-object v0, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

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

    move-result v0

    if-eqz v0, :cond_0

    goto/16 :goto_5

    .line 45
    :cond_0
    iget-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    invoke-virtual {v0}, Lcom/moji/account/data/UserInfoDBHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 46
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 48
    :try_start_1
    invoke-direct {p0, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->b(Lcom/moji/account/data/UserInfo;)Landroid/content/ContentValues;

    move-result-object v1

    .line 49
    new-instance v2, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v2}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    .line 50
    sget-object v3, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->NEED_DELETE:Lcom/moji/preferences/ProcessPrefer$KeyConstant;

    const/4 v4, 0x1

    invoke-virtual {v2, v3, v4}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z

    move-result v3

    const/4 v5, 0x0

    if-eqz v3, :cond_1

    .line 51
    iget-object v3, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p0, v0, v3}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V

    .line 52
    sget-object v3, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->NEED_DELETE:Lcom/moji/preferences/ProcessPrefer$KeyConstant;

    invoke-virtual {v2, v3, v5}, Lcom/moji/preferences/ProcessPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;Z)V

    :cond_1
    const-string v3, "UserInfo"

    const-string v6, "SnsId=?"

    .line 54
    new-array v7, v4, [Ljava/lang/String;

    iget-object v8, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    aput-object v8, v7, v5

    invoke-virtual {v0, v3, v1, v6, v7}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v3

    if-gtz v3, :cond_2

    const-string v3, "UserInfo"

    const/4 v6, 0x0

    .line 56
    invoke-virtual {v0, v3, v6, v1}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    goto :goto_0

    :cond_2
    if-le v3, v4, :cond_3

    .line 58
    iget-object v1, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-virtual {p0, v0, v1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V

    .line 60
    :cond_3
    :goto_0
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V

    .line 61
    iget-object v1, p1, Lcom/moji/account/data/UserInfo;->mobile:Ljava/lang/String;

    invoke-virtual {v2, v1}, Lcom/moji/preferences/ProcessPrefer;->q(Ljava/lang/String;)V

    .line 62
    invoke-virtual {v2}, Lcom/moji/preferences/ProcessPrefer;->g()Z

    move-result v1

    .line 63
    invoke-virtual {p1}, Lcom/moji/account/data/UserInfo;->isVip()Z

    move-result v3

    .line 64
    invoke-virtual {v2, v3}, Lcom/moji/preferences/ProcessPrefer;->a(Z)V

    if-eqz v3, :cond_4

    .line 66
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v1

    new-instance v2, Lcom/moji/account/data/event/VipUserLoginEvent;

    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-direct {v2, v4, p1}, Lcom/moji/account/data/event/VipUserLoginEvent;-><init>(ZLjava/lang/String;)V

    invoke-virtual {v1, v2}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V

    goto :goto_1

    :cond_4
    if-eqz v1, :cond_5

    .line 68
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v1

    new-instance v2, Lcom/moji/account/data/event/VipUserLoginEvent;

    iget-object p1, p1, Lcom/moji/account/data/UserInfo;->sns_id:Ljava/lang/String;

    invoke-direct {v2, v5, p1}, Lcom/moji/account/data/event/VipUserLoginEvent;-><init>(ZLjava/lang/String;)V

    invoke-virtual {v1, v2}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V

    :cond_5
    :goto_1
    const-string p1, "UserInfoSQLiteManager"

    const-string v1, "save user info successfully"

    .line 70
    invoke-static {p1, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 74
    :goto_2
    :try_start_2
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_3

    :catchall_0
    move-exception p1

    goto :goto_4

    :catch_0
    move-exception p1

    :try_start_3
    const-string v1, "UserInfoSQLiteManager"

    .line 72
    invoke-static {v1, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_2

    .line 76
    :goto_3
    monitor-exit p0

    return-void

    .line 74
    :goto_4
    :try_start_4
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 75
    throw p1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catchall_1
    move-exception p1

    .line 41
    monitor-exit p0

    throw p1

    .line 43
    :cond_6
    :goto_5
    monitor-exit p0

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "NickName"

    .line 265
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public declared-synchronized b(Ljava/lang/String;)Z
    .locals 6

    monitor-enter p0

    .line 219
    :try_start_0
    iget-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    invoke-virtual {v0}, Lcom/moji/account/data/UserInfoDBHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 220
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v1, 0x0

    :try_start_1
    const-string v2, "UserInfo"

    const-string v3, "SnsId=?"

    const/4 v4, 0x1

    .line 222
    new-array v5, v4, [Ljava/lang/String;

    aput-object p1, v5, v1

    invoke-virtual {v0, v2, v3, v5}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p1

    if-lez p1, :cond_0

    const-string v2, "UserInfoSQLiteManager"

    .line 224
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v5, "\u5220\u9664\u6210\u529f \u5171\u5220\u9664\u4e86 "

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

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

    const-string p1, " \u884c"

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

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

    move-result-object p1

    invoke-static {v2, p1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    const-string p1, "UserInfoSQLiteManager"

    const-string v2, "\u5220\u9664\u5931\u8d25"

    .line 227
    invoke-static {p1, v2}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v4, 0x0

    .line 230
    :goto_0
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 236
    :try_start_2
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    move v1, v4

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    :try_start_3
    const-string v2, "UserInfoSQLiteManager"

    .line 233
    invoke-static {v2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 236
    :try_start_4
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    .line 238
    :goto_1
    monitor-exit p0

    return v1

    .line 236
    :goto_2
    :try_start_5
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 237
    throw p1
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    :catchall_1
    move-exception p1

    .line 217
    monitor-exit p0

    throw p1
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "BackgroundUrl"

    .line 276
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public c(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "FaceImageUrl"

    .line 287
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public d(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "Sex"

    .line 309
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public e(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "Birth"

    .line 320
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public f(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "password"

    .line 332
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public g(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "Sign"

    .line 343
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public h(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "CityId"

    .line 354
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public i(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    const-string v0, "CityName"

    .line 365
    invoke-direct {p0, v0, p2, p1}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public declared-synchronized j(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 6

    monitor-enter p0

    .line 419
    :try_start_0
    iget-object v0, p0, Lcom/moji/account/data/UserInfoSQLiteManager;->b:Lcom/moji/account/data/UserInfoDBHelper;

    invoke-virtual {v0}, Lcom/moji/account/data/UserInfoDBHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 421
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v1, 0x0

    .line 423
    :try_start_1
    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    const-string v3, "Mobile"

    .line 424
    invoke-virtual {v2, v3, p2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const-string p2, "UserInfo"

    const-string v3, "SnsId=?"

    const/4 v4, 0x1

    .line 425
    new-array v5, v4, [Ljava/lang/String;

    aput-object p1, v5, v1

    invoke-virtual {v0, p2, v2, v3, v5}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p1

    if-lez p1, :cond_0

    const-string p1, "UserInfoSQLiteManager"

    const-string p2, "\u66f4\u65b0 mobile \u6210\u529f"

    .line 427
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const-string p1, "UserInfoSQLiteManager"

    const-string p2, "\u66f4\u65b0 mobile \u5931\u8d25"

    .line 430
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 432
    :goto_0
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 436
    :goto_1
    :try_start_2
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_2

    :catchall_0
    move-exception p1

    goto :goto_3

    :catch_0
    move-exception p1

    :try_start_3
    const-string p2, "UserInfoSQLiteManager"

    .line 434
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_1

    .line 438
    :goto_2
    monitor-exit p0

    return v1

    .line 436
    :goto_3
    :try_start_4
    invoke-direct {p0, v0}, Lcom/moji/account/data/UserInfoSQLiteManager;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 437
    throw p1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catchall_1
    move-exception p1

    .line 418
    monitor-exit p0

    throw p1
.end method
