ward789 发表于 2022-5-11 16:27

内购手游问题

我把eq改成ne游戏里面提升参数错误,求大神指点


.class public final enum Lcom/alipay/sdk/app/k;
.super Ljava/lang/Enum;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
      "Ljava/lang/Enum<",
      "Lcom/alipay/sdk/app/k;",
      ">;"
    }
.end annotation


# static fields
.field public static final enum a:Lcom/alipay/sdk/app/k;

.field public static final enum b:Lcom/alipay/sdk/app/k;

.field public static final enum c:Lcom/alipay/sdk/app/k;

.field public static final enum d:Lcom/alipay/sdk/app/k;

.field public static final enum e:Lcom/alipay/sdk/app/k;

.field public static final enum f:Lcom/alipay/sdk/app/k;

.field public static final enum g:Lcom/alipay/sdk/app/k;

.field private static final synthetic j:[Lcom/alipay/sdk/app/k;


# instance fields
.field private h:I

.field private i:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 11

    .line 4
    new-instance v0, Lcom/alipay/sdk/app/k;

    const-string v1, "SUCCEEDED"

    const-string v2, "\u5904\u7406\u6210\u529f"

    const/4 v3, 0x0

    const/16 v4, 0x2328

    invoke-direct {v0, v1, v3, v4, v2}, Lcom/alipay/sdk/app/k;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lcom/alipay/sdk/app/k;->a:Lcom/alipay/sdk/app/k;

    .line 6
    new-instance v0, Lcom/alipay/sdk/app/k;

    const-string v1, "FAILED"

    const-string v2, "\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5"

    const/4 v4, 0x1

    const/16 v5, 0xfa0

    invoke-direct {v0, v1, v4, v5, v2}, Lcom/alipay/sdk/app/k;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lcom/alipay/sdk/app/k;->b:Lcom/alipay/sdk/app/k;

    .line 8
    new-instance v0, Lcom/alipay/sdk/app/k;

    const-string v1, "CANCELED"

    const-string v2, "\u7528\u6237\u53d6\u6d88"

    const/4 v5, 0x2

    const/16 v6, 0x1771

    invoke-direct {v0, v1, v5, v6, v2}, Lcom/alipay/sdk/app/k;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lcom/alipay/sdk/app/k;->c:Lcom/alipay/sdk/app/k;

    .line 10
    new-instance v0, Lcom/alipay/sdk/app/k;

    const-string v2, "\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38"

    const/4 v6, 0x3

    const/16 v7, 0x1772

    invoke-direct {v0, v1, v6, v7, v2}, Lcom/alipay/sdk/app/k;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lcom/alipay/sdk/app/k;->d:Lcom/alipay/sdk/app/k;
   
    .line 12
    new-instance v0, Lcom/alipay/sdk/app/k;

    const-string v1, "DOUBLE_REQUEST"

    const-string v2, "\u91cd\u590d\u8bf7\u6c42"

    const/4 v8, 0x5

    const/16 v9, 0x1388

    invoke-direct {v0, v1, v8, v9, v2}, Lcom/alipay/sdk/app/k;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lcom/alipay/sdk/app/k;->f:Lcom/alipay/sdk/app/k;

    .line 16
    new-instance v0, Lcom/alipay/sdk/app/k;

    const-string v1, "PAY_WAITTING"

    const-string v2, "\u652f\u4ed8\u7ed3\u679c\u786e\u8ba4\u4e2d"

    const/4 v9, 0x6

    const/16 v10, 0x1f40

    invoke-direct {v0, v1, v9, v10, v2}, Lcom/alipay/sdk/app/k;-><init>(Ljava/lang/String;IILjava/lang/String;)V

    sput-object v0, Lcom/alipay/sdk/app/k;->g:Lcom/alipay/sdk/app/k;

    .line 3
    const/4 v0, 0x7

    new-array v0, v0, [Lcom/alipay/sdk/app/k;

    sget-object v1, Lcom/alipay/sdk/app/k;->a:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v3

    sget-object v1, Lcom/alipay/sdk/app/k;->b:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v4

    sget-object v1, Lcom/alipay/sdk/app/k;->c:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v5

    sget-object v1, Lcom/alipay/sdk/app/k;->d:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v6

    sget-object v1, Lcom/alipay/sdk/app/k;->e:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v7

    sget-object v1, Lcom/alipay/sdk/app/k;->f:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v8

    sget-object v1, Lcom/alipay/sdk/app/k;->g:Lcom/alipay/sdk/app/k;

    aput-object v1, v0, v9

    sput-object v0, Lcom/alipay/sdk/app/k;->j:[Lcom/alipay/sdk/app/k;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;IILjava/lang/String;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
      value = {
            "(I",
            "Ljava/lang/String;",
            ")V"
      }
    .end annotation

    .line 22
    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    .line 23
    iput p3, p0, Lcom/alipay/sdk/app/k;->h:I

    .line 24
    iput-object p4, p0, Lcom/alipay/sdk/app/k;->i:Ljava/lang/String;

    .line 25
    return-void
.end method

.method public static b(I)Lcom/alipay/sdk/app/k;
    .locals 1

    .line 44
    const/16 v0, 0xfa1

    if-eq p0, v0, :cond_3

    const/16 v0, 0x1388

    if-eq p0, v0, :cond_2

    const/16 v0, 0x1f40

    if-eq p0, v0, :cond_1

    const/16 v0, 0x2328

    if-eq p0, v0, :cond_0

    packed-switch p0, :pswitch_data_0

    .line 58
    sget-object p0, Lcom/alipay/sdk/app/k;->b:Lcom/alipay/sdk/app/k;

    return-object p0

    .line 50
    :pswitch_0
    sget-object p0, Lcom/alipay/sdk/app/k;->d:Lcom/alipay/sdk/app/k;

    return-object p0

    .line 48
    :pswitch_1
    sget-object p0, Lcom/alipay/sdk/app/k;->c:Lcom/alipay/sdk/app/k;

    return-object p0

    .line 46
    :cond_0
    sget-object p0, Lcom/alipay/sdk/app/k;->a:Lcom/alipay/sdk/app/k;

    return-object p0

    .line 54
    :cond_1
    sget-object p0, Lcom/alipay/sdk/app/k;->g:Lcom/alipay/sdk/app/k;

    return-object p0

    .line 56
    :cond_2
    sget-object p0, Lcom/alipay/sdk/app/k;->f:Lcom/alipay/sdk/app/k;

    return-object p0

    .line 52
    :cond_3
    sget-object p0, Lcom/alipay/sdk/app/k;->e:Lcom/alipay/sdk/app/k;

    return-object p0

    :pswitch_data_0
    .packed-switch 0x1771
      :pswitch_1
      :pswitch_0
    .end packed-switch
.end method

.method public static valueOf(Ljava/lang/String;)Lcom/alipay/sdk/app/k;
    .locals 1

    .line 3
    const-class v0, Lcom/alipay/sdk/app/k;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object p0

    check-cast p0, Lcom/alipay/sdk/app/k;

    return-object p0
.end method

.method public static values()[Lcom/alipay/sdk/app/k;
    .locals 1

    .line 3
    sget-object v0, Lcom/alipay/sdk/app/k;->j:[Lcom/alipay/sdk/app/k;

    invoke-virtual {v0}, [Lcom/alipay/sdk/app/k;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lcom/alipay/sdk/app/k;

    return-object v0
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 32
    iget v0, p0, Lcom/alipay/sdk/app/k;->h:I

    return v0
.end method

.method public a(I)V
    .locals 0

    .line 28
    iput p1, p0, Lcom/alipay/sdk/app/k;->h:I

    .line 29
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 36
    iput-object p1, p0, Lcom/alipay/sdk/app/k;->i:Ljava/lang/String;

    .line 37
    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 40
    iget-object v0, p0, Lcom/alipay/sdk/app/k;->i:Ljava/lang/String;

    return-object v0
.end method

笨笨家的唯一 发表于 2022-5-12 09:15

你可以先转成java好分析一点;public final class EnumC0000k extends Enum<EnumC0000k> {

    /* renamed from: a */
    public static final EnumC0000k f0a = new EnumC0000k("SUCCEEDED", 0, 9000, "处理成功");

    /* renamed from: b */
    public static final EnumC0000k f1b = new EnumC0000k("FAILED", 1, 4000, "系统繁忙,请稍后再试");

    /* renamed from: c */
    public static final EnumC0000k f2c = new EnumC0000k("CANCELED", 2, 6001, "用户取消");

    /* renamed from: d */
    public static final EnumC0000k f3d = new EnumC0000k("CANCELED", 3, 6002, "网络连接异常");

    /* renamed from: e */
    public static final EnumC0000k f4e = null;

    /* renamed from: f */
    public static final EnumC0000k f5f = new EnumC0000k("DOUBLE_REQUEST", 5, 5000, "重复请求");

    /* renamed from: g */
    public static final EnumC0000k f6g = new EnumC0000k("PAY_WAITTING", 6, 8000, "支付结果确认中");

    /* renamed from: j */
    private static final /* synthetic */ EnumC0000k[] f7j;

    /* renamed from: h */
    private int f8h;

    /* renamed from: i */
    private String f9i;

    public static EnumC0000k valueOf(String str) {
      return (EnumC0000k) Enum.valueOf(EnumC0000k.class, str);
    }

    public static EnumC0000k[] values() {
      return (EnumC0000k[]) f7j.clone();
    }

    static {
      EnumC0000k[] kVarArr = new EnumC0000k;
      kVarArr = f0a;
      kVarArr = f1b;
      kVarArr = f2c;
      kVarArr = f3d;
      kVarArr = f4e;
      kVarArr = f5f;
      kVarArr = f6g;
      f7j = kVarArr;
    }

    private EnumC0000k(String str, int i, int i2, String str2) {
      this.f8h = i2;
      this.f9i = str2;
    }

    /* renamed from: a */
    public void mo2a(int i) {
      this.f8h = i;
    }

    /* renamed from: a */
    public int mo1a() {
      return this.f8h;
    }

    /* renamed from: a */
    public void mo3a(String str) {
      this.f9i = str;
    }

    /* renamed from: b */
    public String mo4b() {
      return this.f9i;
    }

    /* renamed from: b */
    public static EnumC0000k m0b(int i) {
      if (i == 4001) {
            return f4e;
      }
      if (i == 5000) {
            return f5f;
      }
      if (i == 8000) {
            return f6g;
      }
      if (i == 9000) {
            return f0a;
      }
      switch (i) {
            case 6001:
                return f2c;
            case 6002:
                return f3d;
            default:
                return f1b;
      }
    }
}
然后,这里应该只是一部分支付结果判定代码,但是可能不是关键处,这里只有m0b(b)进行了一个参数跳转,你要找到底是哪个函数调用了这个m0b,然后在看它(手游)还有一些什么代码用于判断是否支付成功的

lyflj 发表于 2022-5-28 21:07

笨笨家的唯一 发表于 2022-5-12 09:15
你可以先转成java好分析一点;public final class EnumC0000k extends Enum {

...

大佬说的到位   我这几天一直在学但是不得要领   就是这个主要的发送返回不知道怎么找

笨笨家的唯一 发表于 2022-6-9 21:06

这个就多看看别人的教程,多学学了,我也是初学者,很多都不懂
页: [1]
查看完整版本: 内购手游问题