.class public Lcn/zymk/comic/model/ChapterListItemBean;
.super Ljava/lang/Object;
.source "ChapterListItemBean.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcn/zymk/comic/model/ChapterListItemBean$ChapterImageBean;
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x1dcf11e7771e8b5fL
# instance fields
.field public appVersion:Ljava/lang/String;
.field public chapter_addr:Ljava/lang/String;
.field public chapter_id:Ljava/lang/String;
.field public chapter_image:Lcn/zymk/comic/model/ChapterListItemBean$ChapterImageBean;
.field public chapter_name:Ljava/lang/String;
.field public chapter_title:Ljava/lang/String;【模板】
.field public chapter_type:I
.field public create_time:J
.field public downFolder:Ljava/lang/String;
.field public download_price:I
.field public end_var:I
.field public isDown:Z
.field public isRead:Z
.field public isRecharge:Z【想办法对这个赋值】
.field public paths:Ljava/lang/String;
.field public position:I
.field public price:I
.field public source_url:Ljava/lang/String;
.field public start_var:I
.field public tempPosition:I
.field public urls:Ljava/lang/String;
.field public webview:Ljava/lang/String;
# direct methods
.method public constructor <init>()V【反射大法】
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, ""【v0寄存器里面包含字符串】
.line 2
iput-object v0, p0, Lcn/zymk/comic/model/ChapterListItemBean;->chapter_title:Ljava/lang/String;【参考上方模板,输入(iput-object)的类型是字符串(String)】
return-void
.end method
smali代码里面有【String】的,应该知道这是字符串类型,不能赋值0或者1,而是赋值const-string vx, "",否则可能会导致崩溃。一般来说1代表真、对、是、true,而0代表假、错、否、false。比如一些app反编译后有isvip方法,赋值1意思就是该用户属于vip会员,0就是该用户不属于会员。知音漫客破解免付费阅读需要对.field public isRecharge:Z赋值1,但是可不能直接.field public isRecharge:Z=1或者.field public isRecharge:Z=true,这个是无法运行的。
构造函数基本框架如下,可以参照目标文件的写法。
[Java] 纯文本查看复制代码
.method public constructor <init>()V
return-void
.end method