.class final Lcom/tuyoo/gamecenter/android/third/YDJD$2;
.super Ljava/lang/Object;
.source "YDJD.java"# interfaces
.implements Lcn/cmgame/billing/api/GameInterface$IPayCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/tuyoo/gamecenter/android/third/YDJD;->pay(Ljava/lang/String;Ljava/lang/String;)V
.end annotation.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
# instance fields
.field final synthetic val$orderId:Ljava/lang/String;
# direct methods
.method constructor <init>(Ljava/lang/String;)V
.locals 0
.prologue
.line 111
iput-object p1, p0, Lcom/tuyoo/gamecenter/android/third/YDJD$2;->val$orderId:Ljava/lang/String; 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 7
.param p1, "resultCode" # I
.param p2, "billingIndex" # Ljava/lang/String;
.param p3, "obj" # Ljava/lang/Object;
.prologue
const/4 v6, 0x0 .line 114
const-string v1, ""
.line 115
.local v1, "result":Ljava/lang/String;
invoke-static {}, Lcom/tuyoo/gamesdk/api/TuYoo;->oneKeyMobileBind()V .line 116
packed-switch p1, :pswitch_data_0
.line 129
new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "\u8d2d\u4e70\u9053\u5177\uff1a[" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2 invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2 const-string v3, "] \u53d6\u6d88\uff01"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1
.line 130
iget-object v2, p0, Lcom/tuyoo/gamecenter/android/third/YDJD$2;->val$orderId:Ljava/lang/String; # getter for: Lcom/tuyoo/gamecenter/android/third/YDJD;->_paytype:Ljava/lang/String;
invoke-static {}, Lcom/tuyoo/gamecenter/android/third/YDJD;->access$200()Ljava/lang/String;
move-result-object v3 const-string v4, "charge cancel"
const/4 v5, 0x1 invoke-static {v2, v3, v4, v5}, Lcom/tuyoo/gamesdk/util/ActionRecord;->CanelOrder(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
.line 133
:cond_0
:goto_0
# getter for: Lcom/tuyoo/gamecenter/android/third/YDJD;->_act:Landroid/app/Activity;
invoke-static {}, Lcom/tuyoo/gamecenter/android/third/YDJD;->access$300()Landroid/app/Activity; move-result-object v2
invoke-static {v2, v1, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V .line 134
return-void
.line 118
:pswitch_0
new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "\u8d2d\u4e70\u9053\u5177\uff1a[" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2 invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2 const-string v3, "] \u6210\u529f\uff01"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1
.line 119
sget-boolean v2, Lcom/tuyoo/gamesdk/api/TuYoo;->isNewPay:Z if-eqz v2, :cond_0
.line 120
new-instance v0, Lcom/tuyoo/gamesdk/util/QueryOrder; invoke-direct {v0}, Lcom/tuyoo/gamesdk/util/QueryOrder;-><init>()V
.line 121
.local v0, "queryorder":Lcom/tuyoo/gamesdk/util/QueryOrder;
iget-object v2, p0, Lcom/tuyoo/gamecenter/android/third/YDJD$2;->val$orderId:Ljava/lang/String; # getter for: Lcom/tuyoo/gamecenter/android/third/YDJD;->_paytype:Ljava/lang/String;
invoke-static {}, Lcom/tuyoo/gamecenter/android/third/YDJD;->access$200()Ljava/lang/String;
move-result-object v3 invoke-virtual {v0, v2, v3}, Lcom/tuyoo/gamesdk/util/QueryOrder;->queryOrderStatus(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0 .line 125
.end local v0 # "queryorder":Lcom/tuyoo/gamesdk/util/QueryOrder;
:pswitch_1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V const-string v3, "\u8d2d\u4e70\u9053\u5177\uff1a["
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2
const-string v3, "] \u5931\u8d25\uff01" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2 invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1 .line 126
iget-object v2, p0, Lcom/tuyoo/gamecenter/android/third/YDJD$2;->val$orderId:Ljava/lang/String;
# getter for: Lcom/tuyoo/gamecenter/android/third/YDJD;->_paytype:Ljava/lang/String;
invoke-static {}, Lcom/tuyoo/gamecenter/android/third/YDJD;->access$200()Ljava/lang/String; move-result-object v3
const-string v4, "charge failure" invoke-static {v2, v3, v4, v6}, Lcom/tuyoo/gamesdk/util/ActionRecord;->CanelOrder(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
goto :goto_0 .line 116
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
.end packed-switch
.end method
.