[Java] 纯文本查看 复制代码
001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 | .... .... .... invoke-static{v1, v2}, Lcom/skynetpay/lib/e/g;->b(Ljava/lang/String;Ljava/lang/CharSequence;)V .line329 iget-booleanv1, p0, Lcom/skynetpay/android/payment/frame/PaymentPlugin;->r:Z goto:cond_0 /始终走:cond_0 .line330 const-string v1,"PaymentPlugin" const-string v2,"\u4e0a\u4e00\u7b14\u4ea4\u6613\u672a\u5b8c\u6210\uff0c\u4e0d\u80fd\u8fdb\u884c\u4e0b\u4e00\u7b14\u4ea4\u6613!" invoke-static{v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I .line479 :goto_0 return-void .... .... .... invoke-direct {p0, p2, v0}, Lcom/skynetpay/android/payment/frame/PaymentPlugin;->enqueuePurchase(Ljava/lang/String;Lcom/skynetpay/lib/plugin/PluginResultHandler;)I move-result v5 .line339 sget-booleanv1, Lcom/skynetpay/lib/config/a;->c:Z goto:cond_1 //始终走:cond_1 .line340 const-string v1,"PaymentPlugin" new-instance v2, Ljava/lang/StringBuilder; .... .... .... invoke-virtual {v2, p2}, 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 v2 invoke-static{v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I .line344 :cond_1 //让程序走:cond_1 invoke-virtual {p0, p2}, Lcom/skynetpay/android/payment/frame/PaymentPlugin;->findItemByIdentifier(Ljava/lang/String;)Lcom/skynetpay/android/payment/frame/bean/Item; move-result-object v6 .line345 goto:cond_3 //goto .line346 new-instance v1, Lcom/skynetpay/lib/plugin/PluginResult; sget-object v2, Lcom/skynetpay/lib/plugin/PluginResult$Status;->ERROR:Lcom/skynetpay/lib/plugin/PluginResult$Status; const-string v3,"payment_item_not_found" .... .... .... invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-static{v1, v2}, Lcom/skynetpay/lib/e/g;->b(Ljava/lang/String;Ljava/lang/CharSequence;)V goto/16:goto_0 .line356 :cond_3 ///让程序始终走:cond_3流程 iget-booleanv1, v6, Lcom/skynetpay/android/payment/frame/bean/Item;->isOwned:Z /这里的那句跳转代码删除 new-instance v1, Lcom/skynetpay/lib/plugin/PluginResult; sget-object v2, Lcom/skynetpay/lib/plugin/PluginResult$Status;->OK:Lcom/skynetpay/lib/plugin/PluginResult$Status; const-string v3,"product_already_owned" .line358 invoke-virtual {p0, v3}, Lcom/skynetpay/android/payment/frame/PaymentPlugin;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v3 invoke-direct {v1, v2, v3}, Lcom/skynetpay/lib/plugin/PluginResult;-><init>(Lcom/skynetpay/lib/plugin/PluginResult$Status;Ljava/lang/String;)V .line359 invoke-virtual {v1}, Lcom/skynetpay/lib/plugin/PluginResult;->getMessage()Ljava/lang/String; move-result-object v2 注释这句不让toast弹出 #invoke-virtual {p0, v2}, Lcom/skynetpay/android/payment/frame/PaymentPlugin;->makeToast(Ljava/lang/CharSequence;)V |
[Java] 纯文本查看 复制代码
1 2 3 4 5 6 7 8 | .methodpublicfinalq()Landroid/app/Activity; .locals1 .prologue const/4v0,0x0 return-object v0 .end method |
原帖地址在: