公会援助记录,修行名字颜色问题

back_recharge
duhui 2021-06-09 10:57:25 +08:00
parent d8b4da6473
commit 84969ddd22
1 changed files with 11 additions and 5 deletions

View File

@ -8,10 +8,10 @@ public class GuildHelpLog {
private String targetName;
private int logTime; // time
private int type; // 援助类型
private int helpPracticeLevel;
private int targetPracticeLevel;
private Integer helpPracticeLevel;
private Integer targetPracticeLevel;
public GuildHelpLog(int helpId, int targetId, String helperName, String targetName, int logTime, int type, int helpPracticeLevel, int targetPracticeLevel) {
public GuildHelpLog(int helpId, int targetId, String helperName, String targetName, int logTime, int type, Integer helpPracticeLevel, Integer targetPracticeLevel) {
this.helpId = helpId;
this.targetId = targetId;
this.helperName = helperName;
@ -50,11 +50,17 @@ public class GuildHelpLog {
return type;
}
public int getHelpPracticeLevel() {
public Integer getHelpPracticeLevel() {
if (helpPracticeLevel == null){
helpPracticeLevel = 1;
}
return helpPracticeLevel;
}
public int getTargetPracticeLevel() {
public Integer getTargetPracticeLevel() {
if (targetPracticeLevel == null){
targetPracticeLevel = 1;
}
return targetPracticeLevel;
}
}