|
@@ -1,223 +0,0 @@
|
|
|
-.class public L${packageName}/wxapi/WXPayEntryActivity;
|
|
|
-.super Landroid/app/Activity;
|
|
|
-.source "WXPayEntryActivity.java"
|
|
|
-
|
|
|
-# interfaces
|
|
|
-.implements Lcom/tencent/mm/opensdk/openapi/IWXAPIEventHandler;
|
|
|
-
|
|
|
-
|
|
|
-# static fields
|
|
|
-.field private static final TAG:Ljava/lang/String;
|
|
|
-
|
|
|
-
|
|
|
-# instance fields
|
|
|
-.field private api:Lcom/tencent/mm/opensdk/openapi/IWXAPI;
|
|
|
-
|
|
|
-
|
|
|
-# direct methods
|
|
|
-.method static constructor <clinit>()V
|
|
|
- .locals 1
|
|
|
-
|
|
|
- .line 20
|
|
|
- const-class v0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;
|
|
|
-
|
|
|
- invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
-
|
|
|
- move-result-object v0
|
|
|
-
|
|
|
- sput-object v0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->TAG:Ljava/lang/String;
|
|
|
-
|
|
|
- return-void
|
|
|
-.end method
|
|
|
-
|
|
|
-.method public constructor <init>()V
|
|
|
- .locals 0
|
|
|
-
|
|
|
- .line 19
|
|
|
- invoke-direct {p0}, Landroid/app/Activity;-><init>()V
|
|
|
-
|
|
|
- return-void
|
|
|
-.end method
|
|
|
-
|
|
|
-.method private sendPayResult(I)V
|
|
|
- .locals 3
|
|
|
- .param p1, "code" # I
|
|
|
-
|
|
|
- .line 52
|
|
|
- invoke-static {}, Lcom/jmhy/sdk/utils/thirdPlatform/WechatPlatform;->getPayListener()Lcom/jmhy/sdk/utils/thirdPlatform/PayListener;
|
|
|
-
|
|
|
- move-result-object v0
|
|
|
-
|
|
|
- .line 53
|
|
|
- .local v0, "listener":Lcom/jmhy/sdk/utils/thirdPlatform/PayListener;
|
|
|
- if-nez v0, :cond_0
|
|
|
-
|
|
|
- .line 54
|
|
|
- sget-object v1, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->TAG:Ljava/lang/String;
|
|
|
-
|
|
|
- const-string v2, "onReq PayListener is null"
|
|
|
-
|
|
|
- invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
-
|
|
|
- .line 55
|
|
|
- return-void
|
|
|
-
|
|
|
- .line 58
|
|
|
- :cond_0
|
|
|
- const/4 v1, -0x2
|
|
|
-
|
|
|
- if-eq p1, v1, :cond_2
|
|
|
-
|
|
|
- if-eqz p1, :cond_1
|
|
|
-
|
|
|
- .line 66
|
|
|
- invoke-interface {v0}, Lcom/jmhy/sdk/utils/thirdPlatform/PayListener;->onFailure()V
|
|
|
-
|
|
|
- goto :goto_0
|
|
|
-
|
|
|
- .line 60
|
|
|
- :cond_1
|
|
|
- invoke-interface {v0}, Lcom/jmhy/sdk/utils/thirdPlatform/PayListener;->onSuccess()V
|
|
|
-
|
|
|
- .line 61
|
|
|
- goto :goto_0
|
|
|
-
|
|
|
- .line 63
|
|
|
- :cond_2
|
|
|
- invoke-interface {v0}, Lcom/jmhy/sdk/utils/thirdPlatform/PayListener;->onCancel()V
|
|
|
-
|
|
|
- .line 64
|
|
|
- nop
|
|
|
-
|
|
|
- .line 68
|
|
|
- :goto_0
|
|
|
- return-void
|
|
|
-.end method
|
|
|
-
|
|
|
-
|
|
|
-# virtual methods
|
|
|
-.method public onCreate(Landroid/os/Bundle;)V
|
|
|
- .locals 2
|
|
|
- .param p1, "savedInstanceState" # Landroid/os/Bundle;
|
|
|
-
|
|
|
- .line 26
|
|
|
- invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
|
|
|
-
|
|
|
- .line 28
|
|
|
- sget-object v0, Lcom/jmhy/sdk/utils/thirdPlatform/WechatPlatform;->WECHAT_APP_ID:Ljava/lang/String;
|
|
|
-
|
|
|
- invoke-static {p0, v0}, Lcom/tencent/mm/opensdk/openapi/WXAPIFactory;->createWXAPI(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/mm/opensdk/openapi/IWXAPI;
|
|
|
-
|
|
|
- move-result-object v0
|
|
|
-
|
|
|
- iput-object v0, p0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->api:Lcom/tencent/mm/opensdk/openapi/IWXAPI;
|
|
|
-
|
|
|
- .line 29
|
|
|
- iget-object v0, p0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->api:Lcom/tencent/mm/opensdk/openapi/IWXAPI;
|
|
|
-
|
|
|
- invoke-virtual {p0}, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->getIntent()Landroid/content/Intent;
|
|
|
-
|
|
|
- move-result-object v1
|
|
|
-
|
|
|
- invoke-interface {v0, v1, p0}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->handleIntent(Landroid/content/Intent;Lcom/tencent/mm/opensdk/openapi/IWXAPIEventHandler;)Z
|
|
|
-
|
|
|
- .line 30
|
|
|
- return-void
|
|
|
-.end method
|
|
|
-
|
|
|
-.method protected onNewIntent(Landroid/content/Intent;)V
|
|
|
- .locals 1
|
|
|
- .param p1, "intent" # Landroid/content/Intent;
|
|
|
-
|
|
|
- .line 34
|
|
|
- invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V
|
|
|
-
|
|
|
- .line 35
|
|
|
- invoke-virtual {p0, p1}, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->setIntent(Landroid/content/Intent;)V
|
|
|
-
|
|
|
- .line 36
|
|
|
- iget-object v0, p0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->api:Lcom/tencent/mm/opensdk/openapi/IWXAPI;
|
|
|
-
|
|
|
- invoke-interface {v0, p1, p0}, Lcom/tencent/mm/opensdk/openapi/IWXAPI;->handleIntent(Landroid/content/Intent;Lcom/tencent/mm/opensdk/openapi/IWXAPIEventHandler;)Z
|
|
|
-
|
|
|
- .line 37
|
|
|
- return-void
|
|
|
-.end method
|
|
|
-
|
|
|
-.method public onReq(Lcom/tencent/mm/opensdk/modelbase/BaseReq;)V
|
|
|
- .locals 3
|
|
|
- .param p1, "req" # Lcom/tencent/mm/opensdk/modelbase/BaseReq;
|
|
|
-
|
|
|
- .line 41
|
|
|
- sget-object v0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->TAG:Ljava/lang/String;
|
|
|
-
|
|
|
- new-instance v1, Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
-
|
|
|
- const-string v2, "onReq req="
|
|
|
-
|
|
|
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
-
|
|
|
- move-result-object v2
|
|
|
-
|
|
|
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
-
|
|
|
- move-result-object v1
|
|
|
-
|
|
|
- invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
-
|
|
|
- .line 42
|
|
|
- return-void
|
|
|
-.end method
|
|
|
-
|
|
|
-.method public onResp(Lcom/tencent/mm/opensdk/modelbase/BaseResp;)V
|
|
|
- .locals 3
|
|
|
- .param p1, "resp" # Lcom/tencent/mm/opensdk/modelbase/BaseResp;
|
|
|
-
|
|
|
- .line 46
|
|
|
- sget-object v0, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->TAG:Ljava/lang/String;
|
|
|
-
|
|
|
- new-instance v1, Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
-
|
|
|
- const-string v2, "onResp errCode = "
|
|
|
-
|
|
|
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- iget v2, p1, Lcom/tencent/mm/opensdk/modelbase/BaseResp;->errCode:I
|
|
|
-
|
|
|
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- const-string v2, ",resp.getType()="
|
|
|
-
|
|
|
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- invoke-virtual {p1}, Lcom/tencent/mm/opensdk/modelbase/BaseResp;->getType()I
|
|
|
-
|
|
|
- move-result v2
|
|
|
-
|
|
|
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
-
|
|
|
- invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
-
|
|
|
- move-result-object v1
|
|
|
-
|
|
|
- invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
-
|
|
|
- .line 47
|
|
|
- iget v0, p1, Lcom/tencent/mm/opensdk/modelbase/BaseResp;->errCode:I
|
|
|
-
|
|
|
- invoke-direct {p0, v0}, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->sendPayResult(I)V
|
|
|
-
|
|
|
- .line 48
|
|
|
- invoke-virtual {p0}, Lcom/jmhy/sdk/template/wxapi/WXPayEntryActivity;->finish()V
|
|
|
-
|
|
|
- .line 49
|
|
|
- return-void
|
|
|
-.end method
|