好友
阅读权限10
听众
最后登录1970-1-1
|
飞翔的鸟
发表于 2021-1-12 20:20
本人用MT管理器搜索到了一个APP的关键支付代码,但是删除支付失败代码和替换失败代码都无法会编译,代码如下请大佬指教。
.class final Lcom/qiber/bike/BKMainActivity$6;
.super Landroid/os/Handler;
.source "BKMainActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/qiber/bike/BKMainActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
# direct methods
.method constructor <init>()V
.registers 1
.line 363
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
return-void
.end method
# virtual methods
.method public handleMessage(Landroid/os/Message;)V
.registers 7
.line 366
iget v0, p1, Landroid/os/Message;->what:I
const/4 v1, 0x0
packed-switch v0, :pswitch_data_e6
goto/16 :goto_e4
.line 389
new-instance v0, Lcom/qiber/bike/pay/ali/AuthResult;
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast p1, Ljava/util/Map;
const/4 v2, 0x1
invoke-direct {v0, p1, v2}, Lcom/qiber/bike/pay/ali/AuthResult;-><init>(Ljava/util/Map;Z)V
.line 390
invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getResultStatus()Ljava/lang/String;
move-result-object p1
const-string v3, "9000"
.line 394
invoke-static {p1, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result p1
if-eqz p1, :cond_56
invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getResultCode()Ljava/lang/String;
move-result-object p1
const-string v3, "200"
invoke-static {p1, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result p1
if-nez p1, :cond_56
.line 397
invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;
move-result-object p1
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "授权成功\n"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v4, "authCode:%s"
new-array v2, v2, [Ljava/lang/Object;
.line 398
invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getAuthCode()Ljava/lang/String;
move-result-object v0
aput-object v0, v2, v1
invoke-static {v4, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 397
invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object p1
.line 399
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
goto/16 :goto_e4
.line 402
:cond_56
invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;
move-result-object p1
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "授权失败"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v4, "authCode:%s"
new-array v2, v2, [Ljava/lang/Object;
.line 403
invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/AuthResult;->getAuthCode()Ljava/lang/String;
move-result-object v0
aput-object v0, v2, v1
invoke-static {v4, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 402
invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object p1
.line 403
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
goto :goto_e4
.line 369
:pswitch_81 #0x1, 0x2
new-instance v0, Lcom/qiber/bike/pay/ali/PayResult;
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast p1, Ljava/util/Map;
invoke-direct {v0, p1}, Lcom/qiber/bike/pay/ali/PayResult;-><init>(Ljava/util/Map;)V
.line 373
invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/PayResult;->getResult()Ljava/lang/String;
.line 374
invoke-virtual {v0}, Lcom/qiber/bike/pay/ali/PayResult;->getResultStatus()Ljava/lang/String;
move-result-object p1
const-string v0, "9000"
.line 376
invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_bf
const-string v0, "MMIScene"
const-string v2, "OnPaySuccess"
.line 378
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Ali:"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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 {v0, v2, p1}, Lcom/unity3d/player/UnityPlayer;->UnitySendMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 379
invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;
move-result-object p1
const-string v0, "支付成功"
invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
goto :goto_e4
:cond_bf
const-string v0, "MMIScene"
const-string v2, "OnPayFailed"
.line 382
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Ali:"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
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 {v0, v2, p1}, Lcom/unity3d/player/UnityPlayer;->UnitySendMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 383
invoke-static {}, Lcom/onemore/unity/QibaMainActivity;->getMainActivity()Lcom/onemore/unity/QibaMainActivity;
move-result-object p1
const-string v0, "支付失败"
invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
:goto_e4
return-void
nop
:pswitch_data_e6
.packed-switch 0x1
:pswitch_81 #00000001
:pswitch_81 #00000002
.end packed-switch
.end method
|
|