返回列表 发新帖

[悬赏求助] 新人求教,破解支付手段

[复制链接]

1

主题

7

帖子

15

积分

幼儿园

Rank: 1

金币
7
好评
0
贡献
0
发表在  2019-6-30 14:27:45 来自手机  | 显示全部楼层 | 阅读模式
.class public Lcom/huluxia/sdk/pay/PayCode;
.super Ljava/lang/Object;
.source "PayCode.java"


# instance fields
.field private code:Lcom/huluxia/sdk/Code;

.field private message:Ljava/lang/String;


# direct methods
.method private constructor <init>(Lcom/huluxia/sdk/Code;)V
   .registers 2

   invoke-direct {p0}, Ljava/lang/Object;-><init>()V

   iput-object p1, p0, Lcom/huluxia/sdk/pay/PayCode;->code:Lcom/huluxia/sdk/Code;

   return-void
.end method

.method private constructor <init>(Lcom/huluxia/sdk/Code;Ljava/lang/String;)V
   .registers 3

   invoke-direct {p0}, Ljava/lang/Object;-><init>()V

   iput-object p2, p0, Lcom/huluxia/sdk/pay/PayCode;->message:Ljava/lang/String;

   iput-object p1, p0, Lcom/huluxia/sdk/pay/PayCode;->code:Lcom/huluxia/sdk/Code;

   return-void
.end method

.method public static createClientError(Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;
   .registers 3

   new-instance v0, Lcom/huluxia/sdk/pay/PayCode;

   sget-object v1, Lcom/huluxia/sdk/Code;->ERR_CLIENT:Lcom/huluxia/sdk/Code;

   invoke-direct {v0, v1, p0}, Lcom/huluxia/sdk/pay/PayCode;-><init>(Lcom/huluxia/sdk/Code;Ljava/lang/String;)V

   return-object v0
.end method

.method public static createCode(ILjava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;
   .registers 4

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_DEFINE:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_f

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_DEFINE:Lcom/huluxia/sdk/Code;

   invoke-static {v0, p1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   :goto_e
   return-object v0

   :cond_f
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_CLIENT:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_21

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_CLIENT:Lcom/huluxia/sdk/Code;

   const-string/jumbo v1, "客户端错误"

   invoke-static {v0, v1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_21
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_SERVER:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_33

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_SERVER:Lcom/huluxia/sdk/Code;

   const-string/jumbo v1, "注册服务器错误"

   invoke-static {v0, v1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_33
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_PAY_UNCONFIRM:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_45

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_PAY_UNCONFIRM:Lcom/huluxia/sdk/Code;

   const-string/jumbo v1, "支付结果确认中"

   invoke-static {v0, v1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_45
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_PAY_FAIL:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_57

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_PAY_FAIL:Lcom/huluxia/sdk/Code;

   const-string/jumbo v1, "支付失败"

   invoke-static {v0, v1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_57
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_NEED_IDENTIFY:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_69

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_NEED_IDENTIFY:Lcom/huluxia/sdk/Code;

   const-string/jumbo v1, "必须实名认证后才能支付"

   invoke-static {v0, v1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_69
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_100:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_78

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_100:Lcom/huluxia/sdk/Code;

   invoke-static {v0, p1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_78
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_USER_CANCLE:Lcom/huluxia/sdk/Code;

   invoke-virtual {v0}, Lcom/huluxia/sdk/Code;->Value()I

   move-result v0

   if-ne p0, v0, :cond_87

   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_USER_CANCLE:Lcom/huluxia/sdk/Code;

   invoke-static {v0, p1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto :goto_e

   :cond_87
   sget-object v0, Lcom/huluxia/sdk/Code;->ERR_UNKNOWN:Lcom/huluxia/sdk/Code;

   const-string/jumbo v1, "未知错误"

   invoke-static {v0, v1}, Lcom/huluxia/sdk/pay/PayCode;->createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;

   move-result-object v0

   goto/16 :goto_e
.end method

.method public static createError(Lcom/huluxia/sdk/Code;Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;
   .registers 3

   new-instance v0, Lcom/huluxia/sdk/pay/PayCode;

   invoke-direct {v0, p0, p1}, Lcom/huluxia/sdk/pay/PayCode;-><init>(Lcom/huluxia/sdk/Code;Ljava/lang/String;)V

   return-object v0
.end method

.method public static createServerError(Ljava/lang/String;)Lcom/huluxia/sdk/pay/PayCode;
   .registers 3

   new-instance v0, Lcom/huluxia/sdk/pay/PayCode;

   sget-object v1, Lcom/huluxia/sdk/Code;->ERR_SERVER:Lcom/huluxia/sdk/Code;

   invoke-direct {v0, v1, p0}, Lcom/huluxia/sdk/pay/PayCode;-><init>(Lcom/huluxia/sdk/Code;Ljava/lang/String;)V

   return-object v0
.end method

.method public static createSuccCode()Lcom/huluxia/sdk/pay/PayCode;
   .registers 3

   new-instance v0, Lcom/huluxia/sdk/pay/PayCode;

   sget-object v1, Lcom/huluxia/sdk/Code;->OK:Lcom/huluxia/sdk/Code;

   const-string/jumbo v2, "支付成功"

   invoke-direct {v0, v1, v2}, Lcom/huluxia/sdk/pay/PayCode;-><init>(Lcom/huluxia/sdk/Code;Ljava/lang/String;)V

   return-object v0
.end method


# virtual methods
.method public getCode()Lcom/huluxia/sdk/Code;
   .registers 2

   iget-object v0, p0, Lcom/huluxia/sdk/pay/PayCode;->code:Lcom/huluxia/sdk/Code;

   return-object v0
.end method

.method public getMessage()Ljava/lang/String;
   .registers 2

   iget-object v0, p0, Lcom/huluxia/sdk/pay/PayCode;->message:Ljava/lang/String;

   return-object v0
.end method

.method public isCancle()Z
   .registers 3

   iget-object v0, p0, Lcom/huluxia/sdk/pay/PayCode;->code:Lcom/huluxia/sdk/Code;

   sget-object v1, Lcom/huluxia/sdk/Code;->ERR_USER_CANCLE:Lcom/huluxia/sdk/Code;

   if-ne v0, v1, :cond_8

   const/4 v0, 0x1

   :goto_7
   return v0

   :cond_8
   const/4 v0, 0x0

   goto :goto_7
.end method

.method public isSucc()Z
   .registers 3

   iget-object v0, p0, Lcom/huluxia/sdk/pay/PayCode;->code:Lcom/huluxia/sdk/Code;

   sget-object v1, Lcom/huluxia/sdk/Code;->OK:Lcom/huluxia/sdk/Code;

   if-ne v0, v1, :cond_8

   const/4 v0, 0x1

   :goto_7
   return v0

   :cond_8
   const/4 v0, 0x0

   goto :goto_7
.end method
回复

使用道具 举报

26

主题

893

帖子

3025

积分

大学生

Rank: 5Rank: 5

金币
387
好评
5
贡献
0
发表于 2019-6-30 14:30:23 来自手机  | 显示全部楼层
舒服的沙发
回复

使用道具 举报

21

主题

1591

帖子

5719

积分

硕士生

我爱学习

Rank: 6Rank: 6

金币
1670
好评
15
贡献
1

考神MT论坛帅哥

发表于 2019-6-30 14:40:12 来自手机  | 显示全部楼层
我觉得你应该发软件,椅子也不错
回复

使用道具 举报

2

主题

314

帖子

2519

积分

大学生

Rank: 5Rank: 5

金币
762
好评
4
贡献
0
发表于 2019-6-30 14:45:10 来自手机  | 显示全部楼层
建议发apk
回复

使用道具 举报

42

主题

763

帖子

1758

积分

高中生

Rank: 4

金币
35
好评
3
贡献
1

考神

QQ
发表于 2019-6-30 14:58:12 来自手机  | 显示全部楼层
花里胡哨的
回复

使用道具 举报

18

主题

874

帖子

5218

积分

硕士生

Rank: 6Rank: 6

金币
1690
好评
7
贡献
0

考神

发表于 2019-6-30 15:04:51 来自手机  | 显示全部楼层
在你发的倒数第三行代码里面把0x0改成0x1
回复

使用道具 举报

0

主题

269

帖子

890

积分

高中生

Rank: 4

金币
559
好评
0
贡献
0
发表于 2019-6-30 15:54:00 | 显示全部楼层
连软件都舍不得放上来
回复

使用道具 举报

0

主题

982

帖子

5289

积分

硕士生

Rank: 6Rank: 6

金币
1206
好评
0
贡献
0
发表于 2019-6-30 16:38:36 来自手机  | 显示全部楼层
葫芦侠???
回复

使用道具 举报

18

主题

951

帖子

2497

积分

大学生

两个笑靥

Rank: 5Rank: 5

金币
283
好评
13
贡献
1

考神MT论坛帅哥MT论坛最佳新人MT论坛活跃会员

QQ
发表于 2019-6-30 17:00:16 来自手机  | 显示全部楼层
没软件不好吧
回复

使用道具 举报

0

主题

154

帖子

541

积分

初中生

Rank: 3Rank: 3

金币
125
好评
0
贡献
0
发表于 2019-6-30 17:56:27 | 显示全部楼层
直接代码?
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表