[Java] 纯文本查看 复制代码
.class Lcom/yoyo/poker/MM/GamePokerActivity$3;
.super Ljava/lang/Object;
.source "GamePokerActivity.java"
# interfaces
.implements Lcn/cmgame/billing/api/GameInterface$IPayCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/yoyo/poker/MM/GamePokerActivity;->doBilling_YD(Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
# direct methods
.method constructor <init>(Lcom/yoyo/poker/MM/GamePokerActivity;)V
.locals 0
.prologue
.line 1
iput-object p1, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
.line 202
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResult(ILjava/lang/String;Ljava/lang/Object;)V
.locals 8
.param p1, "resultCode" # I
.param p2, "billingIndex" # Ljava/lang/String;
.param p3, "obj" # Ljava/lang/Object;
.prologue
const/4 v7, 0x1
const/4 v6, 0x0
.line 205
const-string v2, ""
.line 206
.local v2, "result":Ljava/lang/String;
packed-switch p1, :pswitch_data_0
.line 230
const-string v2, "购买取消!"
.line 231
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
invoke-virtual {v3, v6}, Lcom/yoyo/poker/MM/GamePokerActivity;->customsPass(Z)V
.line 232
invoke-static {p2, v6}, Lcn/cmgame/billing/api/GameInterface;->setActivateFlag(Ljava/lang/String;Z)V
.line 235
:goto_0
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
invoke-static {v3, v2, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v3
invoke-virtual {v3}, Landroid/widget/Toast;->show()V
.line 237
return-void
.line 208
:pswitch_0
invoke-static {p2, v7}, Lcn/cmgame/billing/api/GameInterface;->setActivateFlag(Ljava/lang/String;Z)V
.line 209
invoke-static {}, Lcom/yoyo/poker/MM/ddz;->getInstence()Lcom/yoyo/poker/MM/ddz;
move-result-object v3
iput-boolean v7, v3, Lcom/yoyo/poker/MM/ddz;->MMCode0:Z
.line 210
const/4 v0, 0x0
.local v0, "i":I
:goto_1
invoke-static {}, Lcom/yoyo/poker/MM/ddz;->getInstence()Lcom/yoyo/poker/MM/ddz;
move-result-object v3
iget-object v3, v3, Lcom/yoyo/poker/MM/ddz;->MMCode_:[Ljava/lang/String;
array-length v3, v3
if-lt v0, v3, :cond_0
.line 222
const-string v2, "购买成功,请稍后!"
.line 223
goto :goto_0
.line 212
:cond_0
invoke-static {}, Lcom/yoyo/poker/MM/ddz;->getInstence()Lcom/yoyo/poker/MM/ddz;
move-result-object v3
iget-object v3, v3, Lcom/yoyo/poker/MM/ddz;->MMCode_:[Ljava/lang/String;
aget-object v3, v3, v0
const-string v4, ","
invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
.line 213
.local v1, "q":[Ljava/lang/String;
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
iget-object v3, v3, Lcom/yoyo/poker/MM/GamePokerActivity;->billId_:Ljava/lang/String;
if-eqz v3, :cond_2
.line 215
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
iget-object v3, v3, Lcom/yoyo/poker/MM/GamePokerActivity;->billId_:Ljava/lang/String;
aget-object v4, v1, v6
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_2
.line 217
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
iget-object v3, v3, Lcom/yoyo/poker/MM/GamePokerActivity;->billId_:Ljava/lang/String;
const-string v4, "007"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
invoke-virtual {v3, v7}, Lcom/yoyo/poker/MM/GamePokerActivity;->customsPass(Z)V
.line 218
:cond_1
invoke-static {}, Lcom/yoyo/poker/MM/GameView;->getInstance()Lcom/yoyo/poker/MM/GameView;
move-result-object v3
new-instance v4, Ljava/lang/StringBuilder;
const-string v5, "d JB"
invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
const/4 v5, 0x2
aget-object v5, v1, v5
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Lcom/yoyo/poker/MM/GameView;->SND(Ljava/lang/String;)V
.line 210
:cond_2
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 225
.end local v0 # "i":I
.end local v1 # "q":[Ljava/lang/String;
:pswitch_1
const-string v2, "购买失败!"
.line 226
iget-object v3, p0, Lcom/yoyo/poker/MM/GamePokerActivity$3;->this$0:Lcom/yoyo/poker/MM/GamePokerActivity;
invoke-virtual {v3, v6}, Lcom/yoyo/poker/MM/GamePokerActivity;->customsPass(Z)V
.line 227
invoke-static {p2, v6}, Lcn/cmgame/billing/api/GameInterface;->setActivateFlag(Ljava/lang/String;Z)V
goto :goto_0
.line 206
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
.end packed-switch
.end method