Merge remote-tracking branch 'origin/master'

This commit is contained in:
zlzw 2022-11-08 17:41:31 +08:00
commit 628d9c7a1b

View File

@ -1,5 +1,7 @@
package com.yunbao.common.bean; package com.yunbao.common.bean;
import android.text.TextUtils;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
/** /**
@ -9,9 +11,9 @@ public class NewLevelModel extends BaseModel {
@SerializedName("id") @SerializedName("id")
private String id; private String id;
@SerializedName("levemin") @SerializedName("levelmin")
private String levemin; private String levemin;
@SerializedName("levemax") @SerializedName("levelmax")
private String levemax; private String levemax;
@SerializedName("thumb") @SerializedName("thumb")
private String thumb; private String thumb;
@ -30,10 +32,16 @@ public class NewLevelModel extends BaseModel {
} }
public int getLeveMin() { public int getLeveMin() {
if (TextUtils.isEmpty(levemin)) {
levemin = "0";
}
return Integer.parseInt(levemin); return Integer.parseInt(levemin);
} }
public int getLeveMax() { public int getLeveMax() {
if (TextUtils.isEmpty(levemax)) {
levemax = "0";
}
return Integer.parseInt(levemax); return Integer.parseInt(levemax);
} }